YouTube transcripts
get_youtube_transcriptsFetch YouTube video transcripts and captions from URLs, IDs, Shorts, channels, or playlists, including title, channel, language, and optional timestamps for summarizing, quoting, or fact-checking.
Instructions
Get the transcript (captions) of YouTube videos, with title, channel, duration, caption language and word count, and optional timestamps. Accepts video URLs or IDs, Shorts, youtu.be links, and channel or playlist URLs (it takes their latest videos). Manual captions in the requested language come first, then auto-generated ones; translation into another language is best effort. Use it to summarise, quote, fact-check or search inside videos. Videos without captions come back with an error status and aren't billed. Cost on your Apify account: $1.50 per 1,000 transcripts ($1.20 on Gold and above).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| videos | Yes | YouTube video URLs or 11-character IDs, Shorts or youtu.be links, or channel/playlist URLs. Up to 10. | |
| language | No | Preferred caption language code, e.g. en, es, de, fr, ja. | en |
| translate_to | No | Optional language code to machine-translate the transcript into (best effort; YouTube rate-limits translation). | |
| max_characters | No | Cut each transcript after this many characters to protect your context window. | |
| include_timestamps | No | Return the transcript as timestamped lines ("[1:23] text") instead of plain text. | |
| max_videos_per_channel | No | For channel or playlist URLs: how many of the latest videos to take. |