I needed the text of a few YouTube talks for a search index. Copying from the transcript panel by hand does not scale past three videos, so I used an Apify actor I built for this. Below is one real run, the output it returned, and the cases where it returns nothing.

Disclosure: I wrote and sell this actor. Everything below comes from a run I made on 24 November 2026.

The run

Input: two public TED talk links, English captions.

{ "videos": [ "https://www.youtube.com/watch?v=VgOm8nqPlD4", "ACCnhY1fKoI" ], "languages": ["en"], "includeSegments": false } 

The run succeeded in 4 seconds and delivered 2 transcripts. The platform usage for the whole run was $0.00043. That figure is what the run cost in compute on my account. What a user pays is the per-transcript price on the actor page, which is $3.00 per 1,000 transcripts on the free tier and falls to $2.30 per 1,000 on the higher Apify plans (price table as read from the live actor on 25 November 2026).

What a row looks like

This is the first row, with the transcript text cut short:

{ "rowType": "transcript", "videoId": "VgOm8nqPlD4", "title": "Want Someone to Change? Ask This Question | Philip Jameson | TED", "channelName": "TED", "lengthSeconds": 364, "language": "en", "isAutoGenerated": false, "text": "A few years ago, I was speaking with a business leader who was frustrated. ...", "segmentCount": 121, "source": "video" } 

The full text of that video was 5,319 characters. The second talk, 661 seconds long, came back as 7,761 characters in 195 caption segments.

Two fields are worth knowing about:

  • isAutoGenerated is false when a person wrote or uploaded the captions and true when YouTube generated them. If the video has both, the actor prefers the human captions by default.
  • language tells you which caption track you actually got. The actor does not translate. If you ask for de and the video only has English, you do not silently receive a translation.

Run it from code

JavaScript:

import { ApifyClient } from 'apify-client'; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const run = await client.actor('leadharbor/youtube-transcripts').call({ videos: ['https://www.youtube.com/watch?v=jNQXAC9IVRw'], languages: ['en'], }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items[0].text); 

Python:

from apify_client import ApifyClient client = ApifyClient("YOUR_APIFY_TOKEN") run = client.actor("leadharbor/youtube-transcripts").call(run_input={ "videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"], "languages": ["en"], }) for item in client.dataset(run["defaultDatasetId"]).iterate_items(): print(item["videoId"], item["language"], item["segmentCount"]) 

Use your own token. To cap what a run can cost, set a maximum charge in the run options.

Whole channels and RAG chunks

You can pass a channel or a playlist instead of single videos and set a maximum number of videos. For retrieval work there is an option that also cuts each transcript into chunks of a size you choose, so you can send the pieces straight to an embedding model.

What does not work

  • Videos without captions return no transcript. They produce a free error row, so a bad list does not cost you money.
  • Private or removed videos behave the same way.
  • It reads only what a logged-out viewer can see. It does not download video or audio and does not transcribe speech, so a video with no captions stays empty.
  • It is an independent tool. It is not affiliated with or endorsed by YouTube or Google.

Try it

The actor page has the full input list, the price table and an example task you can run in one click: YouTube Transcript Scraper on Apify.

If you run it on a video that should have worked and did not, tell me the video id. I fix reproducible failures.