# YouTube Video Captions API (V1)

Get YouTube Video Captions (V1) data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by JustOneAPI, pass parameters such as videoId, and retrieve structured data including business status code, returned language code field, returned language name field, video identifier, and response message for content research and account lookup, and integration reference.

Documentation: https://openany.si/market/apis/youtube/youtube-video-captions-api-v1/?offering=3e19ee12-3d38-492d-8fc9-c0a6484a9881
API ID: 3e19ee12-3d38-492d-8fc9-c0a6484a9881
Provider: justoneapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/youtube/get-video-captions/v1
Page update time: 2026-12-03T02:51:20.731Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.015385 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:51:19.470Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "15385",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "YouTube Video Captions API (V1) request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "videoId": {
          "type": "string",
          "description": "The unique identifier for a YouTube video."
        },
        "languageCode": {
          "type": "string",
          "description": "Caption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks."
        },
        "format": {
          "type": "string",
          "description": "Caption output format.\n\nAvailable Values:\n- `srt`: SubRip caption format with timeline cues\n- `xml`: Original XML caption format\n- `json3`: YouTube original JSON caption structure\n- `txt`: Plain text without timeline cues",
          "enum": [
            "srt",
            "xml",
            "json3",
            "txt"
          ]
        }
      },
      "required": [
        "videoId"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "data": {
      "type": "object",
      "properties": {
        "captions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "language_code": {
                "type": "string"
              },
              "language_name": {
                "type": "string"
              }
            }
          }
        },
        "video_id": {
          "type": "string"
        }
      }
    },
    "message": {
      "type": "null"
    },
    "recordTime": {
      "type": "null"
    }
  }
}
```

## Request example
Scenario: Official example · Historical response; independent request temp
```bash
curl \
  'https://api.openany.si/v1/agent-apis/justoneapi/api/youtube/get-video-captions/v1?videoId=%3CREPLACE_VIDEOID%3E' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "code": 0,
  "data": {
    "captions": [
      {
        "language_code": "en",
        "language_name": "English"
      }
    ],
    "video_id": "8qAHj1a0H4c"
  },
  "message": null,
  "recordTime": null
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- justoneapi: https://openany.si/market/apis/youtube/youtube-video-captions-api-v1/?offering=3e19ee12-3d38-492d-8fc9-c0a6484a9881

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
