Get a YouTube transcript
get_transcriptReturns the captions of a public YouTube video: Markdown with a timestamp every few lines (default), plain text, or SRT or VTT with a start and end time on every caption line. Long transcripts are paged: if more remains, the result ends with the offset to pass next. 1 credit for the first page; later pages of the same transcript are free for 30 minutes. A video without captions returns an error and costs nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | Yes | YouTube video ID (11 characters) or a youtube.com / youtu.be URL, including Shorts | |
| format | No | markdown (default; text with [m:ss] timestamps every few lines), text (plain text, no timestamps), or srt or vtt (subtitle files with a start and end time on every caption line, for exact moments or to save as a file) | |
| offset | No | Character offset to continue a long transcript from; use the offset returned by the previous page | |
| languages | No | Preferred caption languages in order, e.g. ["es","*"]. "*" falls back to the video's own language. Default: the video's own language (what is spoken in it). | |
| max_chars | No | Maximum characters to return in this page (default 40000, max 100000) |