# YouTube video captions

Get existing YouTube captions or their language list. Takes video id, video url, language code and more, all optional. Served by TikHub.

Get existing YouTube captions or their language list. Supply video_id or video_url. Costs $0.008 per successful request, including videos without captions. No AI transcription. If data.status is processing, use data.job_id with tikhub/youtube-web-v2-get-video-captions-result; the request receipt is complete but captions are still processing.

- Tool ID: `tikhub/youtube-web-v2-get-video-captions`
- Name in the catalog: Youtube, Get video captions
- Provider: [TikHub](/providers/tikhub.md)
- Capability: [YouTube transcript](/tools/youtube/transcripts.md)
- Price: $0.008 per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

The provider’s price, with no markup. Billed for measured usage.


```json
{
  "model": "per_call",
  "amountUsd": 0.008
}
```

Pricing source: [https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info](https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info). Official per-success route price USD 0.008; daily upstream discounts may reduce provider cost. No discount invented for the customer. 10/second.

Price verification date: 2026-10-05.

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "video_id": {
      "type": "string",
      "description": "视频ID/Video ID",
      "title": "Video Id",
      "minLength": 1
    },
    "video_url": {
      "type": "string",
      "description": "视频URL/Video URL",
      "title": "Video Url",
      "minLength": 1
    },
    "language_code": {
      "type": "string",
      "description": "语言代码，为空时返回可用字幕列表/Language code, returns available caption list if empty",
      "title": "Language Code"
    },
    "format": {
      "enum": [
        "srt",
        "xml",
        "json3",
        "txt"
      ],
      "type": "string",
      "description": "字幕格式/Caption format",
      "default": "srt",
      "title": "Format"
    }
  },
  "additionalProperties": false,
  "anyOf": [
    {
      "required": [
        "video_id"
      ]
    },
    {
      "required": [
        "video_url"
      ]
    }
  ]
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "tikhub/youtube-web-v2-get-video-captions",
  "input": {
    "video_id": "dQw4w9WgXcQ",
    "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "language_code": "en",
    "format": "srt"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

[Provider documentation](https://api.tikhub.io/#/YouTube-Web-V2-API/get_video_captions_api_v1_youtube_web_v2_get_video_captions_get)

[REST inspection](https://api.agentik.cc/v1/tools/tikhub/youtube-web-v2-get-video-captions) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/tikhub/youtube-web-v2-get-video-captions) · [Agent index](/llms.txt)
