How to bulk download transcripts for a YouTube channel or playlist
With the Actor (one run)
Paste a channel or playlist link and set how many videos you want. Newest videos come first:
curl -sS -X POST \
"https://api.apify.com/v2/acts/codepulsehq~youtube-transcript-api/run-sync-get-dataset-items?token=${APIFY_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"videos": ["https://www.youtube.com/@TED"], "maxVideosPerSource": 25, "includeSegments": false}'
- Accepted links: channel (
youtube.com/@name,/channel/UC...), playlist (youtube.com/playlist?list=...), single videos, or plain video IDs. You can mix them. maxVideosPerSourceis capped at 2,000. It stops a big channel from running up a surprise bill.- Videos without captions come back as
success: falserows with a reason and cost nothing. - For long jobs use the asynchronous
/runsendpoint (therun-syncendpoint returns within 5 minutes). The Python example uses the client library, which waits as long as needed, and saves one Markdown file per video.
Ready-made pages: whole channel and whole playlist.
Do it yourself
- List the videos:
yt-dlp --flat-playlist --print id "https://www.youtube.com/@TED/videos"prints the IDs. Or use the YouTube Data API’splaylistItems.liston the channel’s uploads playlist. - Then fetch each transcript with a library or
yt-dlp --skip-download --write-auto-subs. Run from a server and you’ll hit IP blocks.