Extract transcript from a YouTube video in multiple formats
json, text, srt, or vtt| Format | Use Case | Timestamps | Output Field |
|---|---|---|---|
json | Programmatic processing, analysis | Yes (offset/duration in ms) | segments |
text | Simple text extraction, search | No | text |
srt | Video subtitles, editing software | Yes (SRT format) | content |
vtt | Web video players (HTML5) | Yes (WebVTT format) | content |
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_INPUT | Invalid video ID or format parameter |
| 401 | INVALID_API_KEY | API key is missing or invalid |
| 404 | TRANSCRIPT_UNAVAILABLE | Video has no transcript/captions |
| 429 | QUOTA_EXCEEDED | Monthly quota exhausted |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests |
TRANSCRIPT_UNAVAILABLE errors gracefully.