Products/YouTube/YouTube Transcript/Use case
YouTube Transcript Use case
Download bulk YouTube transcripts
Bulk YouTube transcript requests come in two shapes, a known list of video ids from your own database, or an entire channel or playlist you want to process all at once. The API batch endpoint covers the first case, up to 25 videos per call, and the Apify actor covers the second, taking a channelUrl with maxVideos or a playlistUrl in a single run.
- POST /v1/youtube/transcript with a videos list takes up to 25 video ids or URLs per call, one item per input in order.
- The Apify actor's videoUrls, channelUrl with maxVideos, or playlistUrl can process hundreds of videos in a single run, well beyond the API's 25-per-call limit.
- Every item carries text (the full transcript, one string) and, for JSON format, a transcript array of timed segments, so a batch result is ready to write straight into a database or a search index.
- A video with no captions, a private video or a bad link returns a typed error row instead of stopping the batch, and error rows are never billed.
- Pick format once per batch call: json for timed segments, or srt, vtt and txt for subtitle files or plain text, the same four choices available on a single-video call.
2 USD / 1,000 transcripts, pay as you go, with no monthly fee. Videos without captions come back as free NO_TRANSCRIPT rows, never billed.
Example
curl -X POST "https://api.vakitek.co.uk/v1/youtube/transcript" \
-H "X-API-Key: $VAKITEK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"videos": ["dQw4w9WgXcQ", "https://www.youtube.com/watch?v=o-YBDTqX_ZU"], "format": "json"}'Questions
What is the largest batch I can send in one API call?
25 videos per POST request. A larger request returns a 422 response with error INVALID_INPUT and max 25, so split a bigger list into chunks of 25 or fewer.
Can I pull every transcript from a whole channel in bulk?
Yes, on the Apify actor, set channelUrl to the channel and maxVideos to how far back you want to go. The API endpoint itself takes individual videos, single or batched up to 25, not a channel URL.
Does a bulk run get charged for videos with no captions?
No. Those come back as free NO_TRANSCRIPT rows in the same batch, alongside the videos that did return a transcript.
Can a bulk request mix a single video with a whole playlist?
Not in one API call. The batch endpoint takes a flat list of individual video ids or URLs; a channel or playlist as a single input is an Apify actor feature, run separately from the API batch endpoint.
Try YouTube Transcript with 5 USD of free credit.
Sources
- youtube transcript download bulk, keyword search volume: https://youtube-transcript.ai/blog/youtube-transcript-ai
