About this endpoint
What it does
Detects faces from an image or video URL and returns a JSON object with a data object. The data object contains either an azure object or a google object depending on the requested service.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | The source URL to analyze. Must be a URI. |
| requested_service | ENUM | Yes | Which service to use: azure or google. |
| azure | Object | No | Azure-specific configuration. Include the fields below when using the Azure route. |
| azure.region | String | No | Azure region. |
| azure.account_id | String | No | Azure account identifier. |
| azure.access_token | String | No | Azure access token. |
| Object | No | Google-specific configuration. Include the fields below when using the Google route. | |
| google.google_language | String | No | Google language setting. |
| google.google_credential_json | Object | No | Google Cloud service account JSON. Required for Google video routes. See schema for nested fields. |
Response
Returns a JSON object with a data object field. The data object may contain an azure object when requested_service is azure, or a google object when requested_service is google.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response wrapper object. May contain service-specific result data. |