Get a YouTube video transcript
youtube_transcriptReturns a YouTube video's captions as JSON: timestamped segments (start, dur, text) and a joined text, plus availableLanguages, the picked language, isAutoGenerated, and the video's title, author and lengthSeconds. Pass a video id or any YouTube video URL; choose a caption language with lang. Ideal for LLM/RAG pipelines, subtitles and content analysis. Returns JSON. Billed like an API request; listing plugins bill one unit per result page they fetch, so keep max_results modest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Preferred caption language code, e.g. 'en'. Omit for the default/first track. A prefix like 'en' matches 'en-US'. | |
| video | Yes | Video id (dQw4w9WgXcQ) or any YouTube video URL. | |
| format | No | Output shape: segments, text. 'segments' returns timestamps; 'text' returns only the joined plaintext. Default: segments. | |
| proxy_country | No | Proxy country the request is sent from (ISO-2, e.g. 'US', 'DE') for the watch page. Defaults to US. |