GET /v1/youtube/web_v2/get_video_captions
Get video captions
stable · 11 credits per success
Get video caption list or caption content for a specific language;Supports multiple caption format outputs;video_id: Video ID (recommended);video_url: Full video URL (optional);language_code: Language code (e.g. en, zh-Hans, a.en), returns available caption list if empty;format: Caption format;- srt: SubRip subtitle format (with timestamps);- xml: Raw XML format;- json3: JSON format (YouTube raw …
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| format | string | query | no | 字幕格式 | srt |
| video_id | string | query | no | 视频ID | dQw4w9WgXcQ |
| video_url | string | query | no | 视频URL | https://www.youtube.com/watch?v=dQw4w9WgXcQ |
| language_code | string | query | no | 语言代码,为空时返回可用字幕列表 | en |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 11 credits. Any failure — including a 200 that fails the quality gate — costs 0.