# YouTube Transcript Scraper - Bulk Videos & Shorts to Text (`eiv/youtube-transcript-scraper`) Actor

Get the transcript of any YouTube video or Short from its URL. Returns the full text with timed segments, language, title and channel. Export as plain text, timestamped text, SRT or VTT subtitles. Bulk URLs, manual and auto-generated captions. You pay only for transcripts delivered.

- **URL**: https://apify.com/eiv/youtube-transcript-scraper.md
- **Developed by:** [Eimantas V](https://apify.com/eiv) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 transcript delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**YouTube Transcript Scraper** gets the transcript of any YouTube video, Short, channel, playlist or search, as plain text, timestamped text, SRT or WebVTT subtitles, with timed segments, chapters and video details. Paste URLs or type search keywords. No login, no API key, no browser, from **$1.00 per 1,000 transcripts**.

```json
{
    "title": "But what is a neural network? | Deep learning chapter 1",
    "channelName": "3Blue1Brown",
    "publishedAt": "2017-10-05",
    "language": "en",
    "isAutoGenerated": false,
    "wordCount": 3357,
    "text": "This is a 3. It's sloppily written and rendered at an extremely low resolution of 28x28 pixels, but your brain has no trouble recognizing it as a 3. ...",
    "segments": [{ "start": 4.22, "duration": 1.18, "text": "This is a 3." }],
    "chapters": [{ "title": "Introduction example", "startSeconds": 0, "endSeconds": 67, "text": null }]
}
```

**200 transcripts from seven channels and a search in under two minutes; 12 transcripts with every option on in 4 seconds.**

### What does YouTube Transcript Scraper do?

It reads the captions YouTube itself shows under every video (the ones the creator uploaded, or YouTube's auto-generated ones) and returns them as clean text, ready for AI summaries, search, subtitles or research. Give it single videos, whole channels, playlists or search keywords: it finds the videos, picks the caption language you prefer and adds the video's details.

- **Every kind of input.** Video and Shorts URLs, youtu.be links, video IDs, channels (URL, @handle or ID), a channel's Shorts or Live tab, playlists, search result URLs with their filters, and plain search keywords.
- **Four formats.** Plain text for AI, `[0:12]` timestamped text, ready SRT or WebVTT subtitle files, plus every caption line with its start and duration.
- **Your languages.** List languages in order of preference; uploaded captions come before auto-generated ones, and you can ask for only one kind.
- **Video details included.** Title, channel, publish date, views, exact likes, comments, length, description, tags, hashtags and chapters, at no extra cost.
- **Chapters for AI and RAG.** Split each transcript by the video's chapters, ready for chunking.
- **Date filters.** Only videos published after or before a day, for channels, playlists and searches alike.
- **Only pay for transcripts.** Videos without captions, private or removed videos and bad links return an error row and are never charged.
- **Built for automation and AI agents.** Run it on a schedule, call it from the API, connect it to Make, Zapier, n8n or Google Sheets, or give it to an AI agent through Apify's MCP server.

### Why it is fast and cheap

It talks to YouTube's own internal API, the one the YouTube apps use, over plain HTTP: no browser, no video download, no speech-to-text. A transcript takes three small requests (video details, the player answer, the caption file), and only the smallest of them goes through a residential proxy, so you get reliable results at a low price.

### What data can you extract from YouTube?

| Field | Example | What it is |
|---|---|---|
| `text` | `This is a 3. It's sloppily written...` | The transcript, in the format you chose |
| `segments` | `[{ "start": 4.22, "duration": 1.18, "text": "This is a 3." }]` | Every caption line with its timing in seconds |
| `language` / `languageName` | `en` / `English (auto-generated)` | The captions returned |
| `isAutoGenerated` | `false` | YouTube speech recognition (true) or uploaded by the creator (false) |
| `availableLanguages` | `[{ "code": "de", "name": "German", "isAutoGenerated": false }]` | Every caption track the video has |
| `wordCount` / `characterCount` | `3357` / `18430` | Size of the transcript |
| `chapters` | `[{ "title": "Introduction example", "startSeconds": 0, "endSeconds": 67 }]` | The video's chapters, optionally with their text |
| `title`, `description`, `keywords`, `hashtags` | `But what is a neural network?` | The video's own texts |
| `channelName`, `channelHandle`, `channelId`, `channelUrl`, `channelSubscriberCount` | `3Blue1Brown`, `@3blue1brown`, `8740000` | The channel |
| `publishedAt` | `2017-10-05` | Publish day |
| `viewCount`, `likeCount`, `commentCount` | `25121406`, `569175`, `9400` | Engagement (likes exact, comments rounded above 1,000) |
| `durationSeconds`, `isShort`, `isLiveContent` | `1120`, `false`, `false` | Length and kind |
| `thumbnailUrl`, `url`, `videoId` | `https://www.youtube.com/watch?v=aircAruvnKk` | Links |
| `input`, `sourceType` | `https://www.youtube.com/@3blue1brown`, `channel` | What you entered that led to this video |

### How to scrape YouTube transcripts

1. Click **Try for free** and paste video, channel or playlist URLs into **YouTube URLs**, one per line, or type keywords into **Search keywords**.
2. Set **Max videos per channel, playlist or search**, and optionally your **Preferred languages** and **Transcript format**.
3. Click **Start**. A single video takes a few seconds; 200 videos under two minutes.
4. Open the **Output** tab, or download the results as JSON, CSV, Excel or HTML.

### How much does it cost to scrape YouTube transcripts?

You pay per transcript delivered, and the price drops on higher Apify plans. Video details, chapters, every format and the residential proxy are included.

| Apify plan | Per 1,000 transcripts |
|---|---|
| Free | $2.00 |
| Starter | $1.50 |
| Scale | $1.25 |
| Business | $1.00 |

- The 20 latest videos of a channel cost **$0.03** on the Starter plan.
- 10,000 transcripts for a research dataset cost **$15** on Starter, **$10** on Business.
- A run also costs **$0.00005** to start. Videos without captions, private, removed or age-restricted videos, bad links and refused requests are never charged.
- The Free plan's $5 monthly credit covers about **2,500 transcripts**.

### Input

```json
{
    "targets": [
        "https://www.youtube.com/watch?v=aircAruvnKk",
        "https://www.youtube.com/@veritasium",
        "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"
    ],
    "searchKeywords": ["how do transformers work"],
    "maxVideosPerSource": 20,
    "languages": ["en", "es"],
    "outputFormat": "text",
    "includeSegments": true,
    "includeDetails": true
}
```

| Field | Default | Notes |
|---|---|---|
| YouTube URLs | one example video | Videos, Shorts, channels (/shorts and /streams tabs too), playlists, search URLs; also video IDs, channel IDs, @handles, playlist IDs |
| Search keywords | none | Transcribes the top results of each search, in YouTube's order |
| Max videos per channel, playlist or search | 20 | Channels newest first; per tab when Shorts or live streams are included |
| Include Shorts / Include past live streams | off | Adds a channel's Shorts / Live tab; keeps Shorts in searches |
| Published after / before | none | A day (2025-01-31) or an age (30 days, 6 months); applies to every video |
| Preferred languages | the video's own language | Codes in order, e.g. en, es, pt-BR |
| Caption type | any | Any (uploaded first), uploaded only, or auto-generated only |
| Fall back to another language | on | Off: no transcript (and no charge) when none of your languages exist |
| Transcript format | plain text | Plain text, timestamped text, SRT or WebVTT |
| Include timed segments | on | Every caption line with its timing |
| Include publish date, likes and chapters | on | Free; turn off for slightly faster runs |
| Split transcript by chapter | off | Each chapter's text in `chapters` |
| Max transcripts | 10,000 | Your cost cap for the run |
| Proxy | residential, United States | Included in the price; YouTube refuses many transcript requests from datacenter addresses and region-locks some videos |

Inputs written for other transcript Actors also work: `urls`, `startUrls`, `videos`, `youtube_url`, `videoUrl`, `channel`, `channel_url`, `language` and `max_videos` are read as the fields above.

### Output

Each transcript is one row in the dataset. The **Overview**, **Transcripts**, **Video details** and **Errors** views show the key columns; every export includes all fields.

```json
{
    "recordType": "transcript",
    "input": "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi",
    "sourceType": "playlist",
    "videoId": "aircAruvnKk",
    "url": "https://www.youtube.com/watch?v=aircAruvnKk",
    "title": "But what is a neural network? | Deep learning chapter 1",
    "channelName": "3Blue1Brown",
    "channelId": "UCYO_jab_esuFRV4b17AJtAw",
    "channelUrl": "https://www.youtube.com/@3blue1brown",
    "channelHandle": "@3blue1brown",
    "channelSubscriberCount": 8740000,
    "publishedAt": "2017-10-05",
    "durationSeconds": 1120,
    "viewCount": 25121406,
    "likeCount": 569175,
    "commentCount": 9400,
    "isShort": false,
    "isLiveContent": false,
    "language": "en",
    "languageName": "English",
    "isAutoGenerated": false,
    "isPreferredLanguage": true,
    "availableLanguages": [{ "code": "ar", "name": "Arabic", "isAutoGenerated": false }],
    "format": "text",
    "text": "This is a 3. It's sloppily written and rendered at an extremely low resolution of 28x28 pixels, but your brain has no trouble recognizing it as a 3. ...",
    "wordCount": 3357,
    "characterCount": 18430,
    "segmentCount": 286,
    "segments": [{ "start": 4.22, "duration": 1.18, "text": "This is a 3." }],
    "chapters": [{ "title": "Introduction example", "startSeconds": 0, "endSeconds": 67, "text": null }],
    "description": "What are the neurons, why are there layers, and what is the math underlying it? ...",
    "keywords": [],
    "hashtags": [],
    "thumbnailUrl": "https://i.ytimg.com/vi/aircAruvnKk/sddefault.jpg",
    "scrapedAt": "2026-11-05T09:03:31.985Z"
}
```

A video or source without a transcript becomes a row with `"recordType": "error"` and an `errorCode`, instead of failing the run:

| `errorCode` | Meaning |
|---|---|
| `NO_CAPTIONS` | The video has no captions at all, neither uploaded nor auto-generated |
| `NO_MATCHING_LANGUAGE` | None of your languages exist and falling back is off |
| `NOT_FOUND` / `PRIVATE` | The video was removed, never existed, or is private |
| `AGE_RESTRICTED` / `MEMBERS_ONLY` | YouTube shows it only to signed-in adults or channel members |
| `NOT_LIVE_YET` | An upcoming premiere or live stream; captions come after it airs |
| `GEO_BLOCKED` | Not available in the proxy's country |
| `CHANNEL_NOT_FOUND` / `NO_RESULTS` | No such channel, or the search found nothing |
| `BLOCKED` / `RATE_LIMITED` | YouTube refused every address tried; run the video again |

Error rows are never charged.

### Tips and limits

- **AI summaries and RAG**: keep the plain-text format, turn on **Split transcript by chapter**, and turn off timed segments if you do not need them.
- **Subtitles**: choose SRT or WebVTT; the `text` field is the whole file, ready to save.
- **Monitoring a channel**: schedule a run with the channel URL and **Published after** set to "1 day" (or "7 days" for a weekly run).
- **Only captions YouTube has.** The Actor reads YouTube's captions; it does not transcribe audio. About 1 in 20 videos (mostly music and very short clips) has none, and those are free error rows.
- **No translations.** YouTube no longer serves its machine translations of captions to apps without a signed-in browser, so you get the languages the video really has (`availableLanguages` lists them).
- **Region-locked videos**: the default proxy is in the United States, which sees almost every video. For videos published for one other country only (`GEO_BLOCKED` rows), set that country in **Proxy**.
- **Comment counts** are rounded the way YouTube shows them above 1,000 (9.4K becomes 9400); likes and views are exact.
- **Hit your spending limit?** The run stops cleanly at your maximum cost per run and keeps everything it collected. Raise the limit in the run options to get more.

### FAQ

#### Is it legal to scrape YouTube transcripts?

This Actor collects only data that YouTube shows publicly, without logging in. Transcripts and descriptions can still contain personal data, which laws such as the GDPR protect, and they are the creators' copyrighted work: use them for analysis, research, accessibility and similar purposes, and ask a lawyer if you are unsure. YouTube is a trademark of Google; this Actor is not affiliated with or endorsed by Google or YouTube.

#### Can I use it through the API or with Make, Zapier and n8n?

Yes. Every run can be started through the [Apify API](https://docs.apify.com/api/v2) and returns the dataset as JSON, CSV or Excel. Schedules, webhooks and integrations for Make, Zapier, n8n and Google Sheets are on the **Integrations** tab.

#### Can AI agents use it?

Yes. Agents connected to [Apify's MCP server](https://mcp.apify.com) (Claude, Cursor, ChatGPT and others) can find and run this Actor as a tool, with the same per-transcript pricing. Ask them to "summarize the last 10 videos of @veritasium" and they get clean text with chapters.

#### Which languages are supported?

Every language YouTube has captions for. Auto-generated captions exist for most videos in about 13 spoken languages (English, Spanish, Portuguese, German, French, Italian, Dutch, Russian, Japanese, Korean, Hindi, Indonesian, Turkish, Vietnamese and more); uploaded captions can be in any language.

#### Why did I get fewer transcripts than videos?

Some videos have no captions or none in your languages (see the error rows, which are free), the date filter dropped some videos, or the run reached your maximum cost per run or its timeout. The log says which, and nothing collected before that is lost.

### Related scrapers

- [YouTube Channel & Video Scraper](https://apify.com/eiv/youtube-channel-scraper): every video of a channel with views, likes and engagement, without transcripts
- [YouTube Search Scraper](https://apify.com/eiv/youtube-search-scraper): videos, Shorts and channels for any keyword, with YouTube's filters
- [YouTube Comments Scraper](https://apify.com/eiv/youtube-comments-scraper): comments and replies of any video
- [RAG Web Browser](https://apify.com/eiv/rag-web-browser): Google search results and any web page as Markdown for AI

### Support

Missing a field, or found a video that does not work? Open an issue on the **Issues** tab with the input you used, and it will be looked at quickly.

# Actor input Schema

## `targets` (type: `array`):

Videos, Shorts, channels, playlists or search result pages, one per line. Also accepted: bare video IDs (dQw4w9WgXcQ), channel IDs (UC...), @handles and playlist IDs (PL...). A channel gives its newest videos; paste its /shorts or /streams URL for those tabs instead.

## `searchKeywords` (type: `array`):

Search YouTube for each keyword and transcribe the top results, in YouTube's own order. To filter the search (upload date, length, sort), paste the URL of a filtered YouTube search under "YouTube URLs" instead.

## `maxVideosPerSource` (type: `integer`):

How many videos to take from each channel tab (newest first), playlist (in its order) or search (in YouTube's order). With Shorts or live streams included, a channel gives up to this many from each tab. Videos you list directly are always all transcribed.

## `includeShorts` (type: `boolean`):

Channels: also list up to the per-source number of Shorts from the Shorts tab. Searches: keep Shorts in the results. Shorts you paste directly are always transcribed.

## `includeLiveStreams` (type: `boolean`):

Channels: also list up to the per-source number of past live streams from the Live tab. Streams are long, so their transcripts are big.

## `publishedAfter` (type: `string`):

Only videos published on or after this day: a date (2025-01-31) or a relative age (30 days, 6 months). Channels stop listing once they reach older videos. Applies to every video, including ones you list directly.

## `publishedBefore` (type: `string`):

Only videos published on or before this day: a date (2025-12-31) or a relative age (1 year).

## `startUrls` (type: `array`):

The same URLs in the list shape other Actors output, so a previous Actor's results (a YouTube search or channel scraper, for example) can be fed straight in. Use this or the field above.

## `languages` (type: `array`):

Caption language codes in order of preference, e.g. en, es, pt-BR. The first one a video has is returned, uploaded captions before auto-generated ones. Leave empty for the video's own original-language track.

## `transcriptType` (type: `string`):

Any: uploaded captions when they exist, otherwise auto-generated ones. Uploaded only: written by the creator. Auto-generated only: YouTube's speech recognition, which follows the spoken words most closely.

## `fallbackToOtherLanguage` (type: `boolean`):

When a video has none of the preferred languages, return its original-language track (marked isPreferredLanguage: false). Off: return an uncharged NO_MATCHING_LANGUAGE row instead.

## `outputFormat` (type: `string`):

What the "text" field holds: plain text (best for AI and search), text with \[0:12] timestamps, or a ready SRT or WebVTT subtitle file.

## `includeSegments` (type: `boolean`):

Adds "segments": every caption line with its start and duration in seconds. Turn off to halve the size of each row when you only need the text.

## `includeDetails` (type: `boolean`):

Reads each video's watch page for its publish date, like and comment counts, channel handle and subscribers, hashtags and chapters. Included in the price; turn off for slightly faster runs.

## `splitByChapters` (type: `boolean`):

Adds each chapter's part of the transcript to "chapters", ready for chunking in AI and RAG pipelines. Needs video details on; videos without chapters get an empty list.

## `maxItems` (type: `integer`):

Stop after this many transcripts in total. You pay per transcript, so this is also your cost cap for the run.

## `proxyConfiguration` (type: `object`):

Used for the transcript requests. YouTube refuses about four in ten of them from datacenter addresses, and region-locks some videos, so the default is residential proxy in the United States; it is included in the price. Pick another country for videos published only there.

## `maxConcurrency` (type: `integer`):

How many videos are transcribed at the same time. Higher is faster for big lists; the price per transcript is the same.

## `requestTimeoutSecs` (type: `integer`):

How long to wait for one response before giving up on it.

## `maxRetries` (type: `integer`):

Retries for failed connections. YouTube's refusals are handled separately, by moving to a fresh address.

## Actor input object example

```json
{
  "targets": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideosPerSource": 20,
  "includeShorts": false,
  "includeLiveStreams": false,
  "transcriptType": "any",
  "fallbackToOtherLanguage": true,
  "outputFormat": "text",
  "includeSegments": true,
  "includeDetails": true,
  "splitByChapters": false,
  "maxItems": 10000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "maxConcurrency": 10,
  "requestTimeoutSecs": 30,
  "maxRetries": 1
}
```

# Actor output Schema

## `results` (type: `string`):

One row per transcript (recordType "transcript"), plus one uncharged row per video or source without one (recordType "error").

## `summary` (type: `string`):

Totals for the run: videos, transcripts, failures by code, why the run stopped, requests and proxy megabytes.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "targets": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("eiv/youtube-transcript-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "targets": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"] }

# Run the Actor and wait for it to finish
run = client.actor("eiv/youtube-transcript-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "targets": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ]
}' |
apify call eiv/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eiv/youtube-transcript-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rMUcuxCStdIbkelkf/builds/IMlkQ4w6T7cX86jPR/openapi.json
