YouTube transcript
youtube_transcriptExtract a YouTube video's transcript from its captions, including timed segments, joined plain text, and available languages, using a video URL or ID and optional language code.
Instructions
Transcript of a YouTube video from its captions: timed segments, joined plain text, chosen language and the list of available caption languages.
Cost: 1 credit per successful call (failed calls are refunded).
Provide one of: url OR id.
Returns: video_id (string), language (string), language_name (string), is_auto_generated (boolean), available_languages (array), segment_count (integer), text (string), segments (array).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | 11-character video ID. Example: "dQw4w9WgXcQ" | |
| url | No | YouTube video URL (watch, youtu.be, shorts, live or embed link; a bare ID also works). Example: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" | |
| lang | No | Caption language code such as en, de, pt-BR or es-419. Default: the video's original language. Example: "en" |