About this endpoint
What it does
Uploads a video file and runs object detection using either Azure or Google, based on the requested_service value. The response returns a JSON object whose data field contains the provider-specific result object for the service you selected.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Video file to analyze. Binary upload. |
| azure_region | String | No | Azure region. Example: trial. |
| azure_account_id | String | No | Azure account ID. |
| requested_service | ENUM | Yes | Detection provider to use. Allowed values: azure, google. Example: azure. |
| azure_access_token | String | No | Azure access token. |
| google_credential_file | String | No | Google service account JSON file. Binary upload. Used for Google routes. |
Response
Returns a JSON object with a required 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; both provider objects are open-ended and may include additional properties.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response wrapper object. Contains provider-specific result data. |
| data.azure | Object | No | Present when requested_service is azure. Open-ended object with additional properties. |
| data.google | Object | No | Present when requested_service is google. Open-ended object with additional properties. |