Get YouTube transcript
get_transcriptRetrieve YouTube video transcripts from any URL or video ID. Supports AI transcription for videos without captions and timestamped output for citing specific moments.
Instructions
Get the transcript of a YouTube video. Accepts a video URL (watch, youtu.be, shorts, embed) or an 11-character video ID. Returns the video's spoken language by default. Videos without captions are transcribed with AI speech-to-text. Use format=timestamped when you need to cite or jump to specific moments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code of the caption track to fetch, e.g. 'en' or 'es'. Omit to get the video's original language. | |
| video | Yes | YouTube video URL or 11-character video ID | |
| format | No | 'text' (default): one block of plain text. 'timestamped': one line per segment with [m:ss] times. | |
| max_characters | No | Truncate the transcript to about this many characters. Useful for very long videos. |