YouTube transcript of a video
youtube-transcriptYouTube transcript API for AI agents: send a video URL or 11-character id and get its published subtitles as timed JSON segments, plain text, SRT or WebVTT, with title, channel, duration, views and publish date. Choose one of ten subtitle languages or any. No speech-to-text. A video without subtitles in that language is not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | subtitle language; any takes English if the video has it, else the first track | en |
| video | Yes | one video: an 11-character video id, or a watch, shorts, live, embed or youtu.be URL of one video (not a channel, playlist or search) | |
| format | No | json: timed segments in transcript; text, srt or vtt: the transcript as one string | json |