Get YouTube transcript
get_youtube_transcriptRetrieve captions or generate a transcript for public YouTube videos by URL or ID, with language and mode options, to enable summaries, notes, and timestamp citations.
Instructions
Retrieve captions or generate a transcript for a public YouTube video. Each submission consumes a transcript unit, including cache hits. Can create a generation job. For summaries, notes or timestamp citations, retrieve the transcript first; this tool does not summarize.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public YouTube URL or 11-character video ID | |
| lang | No | Preferred ISO language code | |
| mode | No | Cache first in every mode. On a miss: native never generates; auto generates only after missing captions; generate requests audio transcription | auto |
| text | No | Plain text for an immediate response. Completed jobs return segments with offsets and durations in milliseconds | |
| waitForCompletion | No | Wait up to twenty minutes for generation. Set false for interactive clients, then poll the returned jobId with get_transcript_status |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| error | No | ||
| jobId | No | ||
| cached | No | ||
| source | No | ||
| status | No | Job state, never an HTTP status. Completed without content means the stored result is unavailable or expired. | |
| content | No | Transcript itself. Check this before jobId; it can coexist with a completed job ID. | |
| progress | No | ||
| requestId | No | ||
| availableLangs | No |