youtube_transcript
Retrieve YouTube transcripts from video captions or AI fallback. Identifies whether the transcript is human-written or machine-generated.
Instructions
Get a YouTube video's transcript. Tries the video's own captions first (free, and most videos have them), then Gemini reading the URL (billed), then yt-dlp if installed. Returns the transcript plus which source produced it, so you can tell a human-written caption track from a machine transcription. Accepts any YouTube URL shape or a bare video id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A YouTube URL (watch, youtu.be, shorts, embed) or a bare 11-character video id. | |
| allowPaid | No | Allow the billed Gemini fallback when captions are missing or unusable. Defaults to true. Set false to get captions or nothing, which is the right choice when cost matters more than coverage. | |
| languages | No | Preferred caption languages as BCP-47 codes, most wanted first, e.g. ["en","fr"]. Defaults to English. | |
| timestamps | No | Prefix each line with [mm:ss]. Only possible from a caption track; a model transcription has no timings. |