About this endpoint
What it does
Accepts a media URL and runs person detection using the selected provider. The request body includes the URL plus requested_service, and the response returns a JSON object with a data object containing provider-specific results.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | Media URL to analyze. Must be a URI. |
| azure | Object | No | Azure-specific configuration. Includes region, account_id, and access_token if provided. |
| 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. Includes google_language and google_credential_json if provided. | |
| google.google_language | String | No | Google language code. |
| google.google_credential_json | Object | No | Google Cloud service account JSON. Required for Google video routes. See schema for nested fields. |
| requested_service | ENUM | Yes | Provider to use. Allowed values: azure, google. |
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 | Provider-specific response payload. May include azure and/or google objects depending on the requested service. |
| data.azure | Object | No | Present when requested_service is azure. |
| data.google | Object | No | Present when requested_service is google. |