About this endpoint
What it does
Detects persons in a media file provided by URL and returns a JSON object with a data object containing either an azure or google result, depending on the requested service.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Media URL to analyze. Must be a URI. |
| azure | Object | No | Azure-specific configuration object. Include the fields below when using Azure. |
| azure.region | String | No | Azure region. |
| azure.account_id | String | No | Azure account ID. |
| azure.access_token | String | No | Azure access token. |
| Object | No | Google-specific configuration object. Include the fields below when using Google. | |
| google.google_language | String | No | Google language code. |
| google.google_credential_json | Object | No | Google Cloud service account JSON. The schema defines nested credential fields, but only one level is documented here; see schema for nested fields. |
| requested_service | ENUM | Yes | Service to use. Allowed values: azure, google. |
Response
Returns a JSON object with a required data object field. The data object may include an azure object when requested_service is azure, or a google object when requested_service is google.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Wrapper object for the detection result. |
| data.azure | Object | No | Present when requested_service is azure. Additional properties are allowed. |
| data.google | Object | No | Present when requested_service is google. Additional properties are allowed. |