Get YouTube Transcript
get_youtube_transcriptFetch publicly available YouTube caption tracks by video URL or ID in a specified language, returning timestamped transcript lines without transcribing audio.
Instructions
Fetches and returns publicly available YouTube caption tracks; it does not transcribe audio. Accepts allowed YouTube URLs or raw video IDs, exact ISO 639-1/BCP-47 language codes such as pt-BR, es-419, and zh-Hans, and formats items into timestamped lines. If the requested track is unavailable, returns an error rather than another language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Optional ISO 639-1/BCP-47 language code, including regional or script subtags such as "pt-BR" or "zh-Hans" | |
| videoIdOrUrl | Yes | The YouTube video URL (e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ or https://youtu.be/dQw4w9WgXcQ) or raw 11-character video ID |