---
title: AI Video Label Detection API
slug: detect-video-labels
url: https://apyhub.com/apyhub/service/detect-video-labels
provider: ApyHub
categories: [Model Kit, Media Kit]
tags: [video-labeling, label-detection, video-analysis, ai-video]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 2
atoms: 500
mcp: true
alias: ai-video-detect-label
---

# AI Video Label Detection API

Analyze a video from a file or URL with Azure or Google. Returns label results for search, moderation, and media cataloguing workflows.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/detect-video-labels/file` | What it does Uploads a file for label detection and routes the request to either Azure or Google ba… | 500 |
| POST | `https://api.eu.apyhub.com/apyhub/detect-video-labels/url` | What it does Detects labels in a video fetched from a URL. You send the video URL and choose which… | 500 |

## Endpoint reference

### Label Detection via file upload

`POST https://api.eu.apyhub.com/apyhub/detect-video-labels/file` · 500 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes |  |
| `azure_region` | body | string | no | Example: `trial`. |
| `azure_account_id` | body | string | no |  |
| `requested_service` | body | string | yes | One of: azure, google. Example: `azure`. |
| `azure_access_token` | body | string | no |  |
| `google_credential_file` | body | string (binary) | no | Service account JSON (Google routes). |

#### Quickstart

Upload a video and choose the target service with the required multipart fields.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/detect-video-labels/file" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/video.mp4" \
  -F "requested_service=azure" \
  -F 'azure_access_token="your-azure_access_token"' \
  -F 'azure_account_id="your-azure_account_id"' \
  -F 'azure_region="your-azure_region"'
```

#### What you'll get back

Returns a JSON object with a required `data` object. That `data` object may include an `azure` object when `requested_service` is `azure`, or a `google` object when `requested_service` is `google`.

```json
{
  "data": {
    "azure": {}
  }
}
```

### Label Detection via URL

`POST https://api.eu.apyhub.com/apyhub/detect-video-labels/url` · 500 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string (uri) | yes | Example: `https://assets.apyhub.com/samples/sample.mp4`. |
| `azure.region` | body | string | no | Example: `trial`. |
| `azure.account_id` | body | string | no | Example: `00000000-0000-0000-0000-000000000000`. |
| `azure.access_token` | body | string | no | Example: `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example`. |
| `google.google_language` | body | string | no | Example: `en-US`. |
| `google.google_credential_json.type` | body | string | no | Example: `service_account`. |
| `google.google_credential_json.auth_uri` | body | string | no | Example: `https://accounts.google.com/o/oauth2/auth`. |
| `google.google_credential_json.client_id` | body | string | no | Example: `123456789`. |
| `google.google_credential_json.token_uri` | body | string | no | Example: `https://oauth2.googleapis.com/token`. |
| `google.google_credential_json.project_id` | body | string | no | Example: `my-gcp-project`. |
| `google.google_credential_json.private_key` | body | string | no | Example: `-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n`. |
| `google.google_credential_json.client_email` | body | string | no | Example: `svc@my-gcp-project.iam.gserviceaccount.com`. |
| `google.google_credential_json.private_key_id` | body | string | no | Example: `abc123`. |
| `google.google_credential_json.universe_domain` | body | string | no | Example: `googleapis.com`. |
| `google.google_credential_json.client_x509_cert_url` | body | string | no | Example: `https://www.googleapis.com/robot/v1/metadata/x509/svc%40project.iam.gserviceacc…`. |
| `google.google_credential_json.auth_provider_x509_cert_url` | body | string | no | Example: `https://www.googleapis.com/oauth2/v1/certs`. |
| `requested_service` | body | string | yes | One of: azure, google. Example: `azure`. |

#### Quickstart

Analyze a video from a public URL by asking the Azure label-detection route for results.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/detect-video-labels/url" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.mp4", "requested_service":"azure", "azure": {
        "access_token": "your-access_token",
        "account_id": "your-account_id",
        "region": "your-region"
    }}'
```

#### What you'll get back

Returns a JSON object with a `data` object field. For `requested_service: "azure"`, `data.azure` may be present and contains the Azure-specific result object.

```json
{
  "data": {
    "azure": {}
  }
}
```

## About

## What it does
Video Label Detection analyzes a video from a file upload or a URL and returns label data from either Azure or Google, depending on the service you request.

Use the `/file` endpoint when you have the video content in hand, or `/url` when the video is already hosted elsewhere. For both routes, you send `requested_service` as `azure` or `google`. Azure requests can include `azure_region`, `azure_account_id`, and `azure_access_token` on the file route, or an `azure` object with `region`, `account_id`, and `access_token` on the URL route. Google requests can include `google_credential_file` on the file route, or a `google` object with `google_language` and `google_credential_json` on the URL route.

The response is wrapped under `data` and includes either an `azure` object or a `google` object, depending on which provider you selected. The schemas do not define fixed label fields, so you should treat the payload as provider-specific label results rather than a rigid document shape.

Use Video Label Detection when you need to classify or index video content for moderation, search, media workflows, or internal review systems without building your own video analysis pipeline.

| Provider (requested_service) | Atoms |
|------------------------------|------:|
| Azure                        |   500 |
| Google                       |  500 |

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/detect-video-labels
