DEV Community

withgrokbot
withgrokbot

Posted on

How to get YouTube transcripts in bulk, with timestamps, no code

Summarising, searching, or training on YouTube content starts with one problem: getting the words out, reliably, at scale.

YouTube has transcripts for most videos. Getting them in bulk is where it breaks. A script that works for ten videos falls over at a hundred — YouTube blocks most datacenter IPs, playlists need expanding, Shorts and live videos use different URL shapes, and a video with no captions should not cost you a run.

This is the no-code flow we use, with the withgrokbot YouTube Transcript actor on Apify. It costs $0.0025 per video, and videos without captions, unavailable videos, and failures are not charged.

Step 1 — Collect your URLs

Paste them into the urls field. It accepts watch links, youtu.be short links, Shorts, live videos, playlists, and even bare video IDs — mix them in one run.

Playlists expand automatically, up to maxItems (default 100).

Step 2 — Set the language

Leave preferredLanguage on en unless you need another language. Regional variants match automatically, so en will find en-GB and en-US captions.

Leave captionPreference on manual. Manual captions are the accurate ones. Fall back to auto only if you need coverage over accuracy — auto captions exist for far more videos, but they are noisier.

Step 3 — Leave the proxy alone

This is the part that breaks DIY scripts. YouTube blocks most datacenter IPs, so a scraper running from a server gets cut off fast.

The actor defaults to US residential proxies for exactly this reason. It is preconfigured to the one setting that actually works. Do not change it unless you know why you are changing it.

Step 4 — Run it

Press Run. Output is plain text plus timestamped segments, ready for an LLM, a summary, or search indexing.

That is the whole flow. No code, no proxy management, no playlist-expansion script to maintain.

What it costs, honestly

$0.0025 per transcript. A hundred videos is $0.25. Failed videos, videos with no captions, and unavailable videos are not charged — you pay for transcripts you actually get.

Try it

https://apify.com/withgrokbot/youtube-transcript


Top comments (0)