API · YouTube
POST /youtube/transcripts/batch
Transcripts of up to 10 YouTube videos in one call.
| Request | POST /v1/youtube/transcripts/batch |
| Operation id | youtube.video.transcript_batch |
| Cost | 15 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Transcripts of up to 10 YouTube videos in one call.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
ids | string[] | yes | 1 to 10 video ids or URLs. |
language | string | no | ISO 639-1 language code (en, es, pt-BR). |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The transcripts, and the videos without one. | YouTubeTranscriptList |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The video, channel, playlist or post does not exist, was removed, or has nothing there. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. | Error |
YouTubeTranscriptList fields
| Field | Type | Description |
|---|---|---|
kind | "youtube#transcriptListResponse" | |
items | YouTubeTranscript[] | |
pageInfo | object | |
missing | object[] | Videos with no transcript to read (no captions, private, missing), and why. |
Errors use one shape everywhere; see Errors for every code and what to do.