# YouTube Transcript Scraper — Videos, Channels & Playlists (`rp_openpro.ai/youtube-transcript-scraper`) Actor

Get YouTube transcripts and subtitles without an API key: full text, timestamped segments and SRT for single videos, whole channels or playlists, in the language you choose, with auto-translation. Ready for AI and RAG.

- **URL**: https://apify.com/rp_openpro.ai/youtube-transcript-scraper.md
- **Developed by:** [Rémi Pelloux](https://apify.com/rp_openpro.ai) (community)
- **Categories:** Videos, AI, Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 transcripts

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/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 — Videos, Channels & Playlists

Get the transcript of any YouTube video as clean text, timestamped segments or SRT subtitles. Paste video links, a channel or a playlist, pick your languages, and get one row per video. No API key, no login.

**$1.50 per 1,000 transcripts.** You only pay for videos that come back with a transcript; videos without captions are listed separately for free.

### What you get

- **Full text** of the video, ready to paste into ChatGPT, Claude or a RAG pipeline
- **Timestamped segments** (start, duration, text) to quote or jump to a moment
- **SRT subtitles** if you need a subtitle file
- **Video details**: title, channel, publish date, duration, views
- **Language info**: which language you got, whether it is auto-generated or machine-translated, and every language the video has

### Why this one

- **Whole channels and playlists**: give a @handle or a playlist link and get the latest N videos transcribed in one run.
- **Language control**: list languages in order of preference. Creator-written captions win over auto-generated ones; if your language is missing you can get YouTube's translation into it, or any language rather than nothing.
- **Two ways in**: caption files first, YouTube's "Show transcript" panel as a fallback, and residential IPs only when YouTube limits the cheap ones. That keeps runs fast and cheap.
- **Fair billing**: no charge for videos without a transcript. They go to `FAILED_VIDEOS` in the key-value store with the reason (private, no captions, not in your language…).

### Input

| Field | What it does |
|---|---|
| `videos` | Video links (watch, youtu.be, shorts, live) or 11-character IDs |
| `channels` | Channel URLs, @handles or UC… IDs: the latest videos are taken |
| `playlists` | Playlist links or IDs |
| `maxVideosPerSource` | Videos per channel or playlist (default 20) |
| `languages` | Preferred language codes, in order (default `en`) |
| `allowAutoGenerated` | Accept YouTube's automatic captions (default on) |
| `translateIfMissing` | Machine-translate into your first language when it is missing (default on) |
| `fallbackToAnyLanguage` | Otherwise return whatever language exists (default on) |
| `includeSegments` / `includeSrt` | Add timestamped segments (default on) / an SRT file (default off) |

```json
{
    "videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "channels": ["@mkbhd"],
    "maxVideosPerSource": 10,
    "languages": ["en", "fr"]
}
```

### Output

```json
{
    "videoId": "dQw4w9WgXcQ",
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "title": "Rick Astley - Never Gonna Give You Up (Official Video)",
    "channelName": "Rick Astley",
    "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
    "publishedAt": "2009-10-24",
    "durationSec": 213,
    "viewCount": 1700000000,
    "language": "en",
    "isAutoGenerated": false,
    "isTranslated": false,
    "availableLanguages": [{ "languageCode": "en", "languageName": "English", "isAutoGenerated": false }],
    "wordCount": 412,
    "segmentCount": 61,
    "text": "We're no strangers to love You know the rules and so do I ...",
    "segments": [{ "start": 18.64, "duration": 3.24, "text": "We're no strangers to love" }],
    "transcriptSource": "captions",
    "scrapedAt": "2026-11-27T09:00:00.000Z"
}
```

### Instant API: one request, data in the response

Get the transcript of a video while your app or AI agent waits for it. There's no run to start and no start fee: send a request to the actor's server URL and the answer comes back in the response. That makes it a good fit for apps, AI agents (through the Apify MCP server) and n8n, Make or Zapier HTTP steps.

```bash
curl -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  "https://<server-url>/transcript?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&lang=en"
```

Copy `<server-url>` from the actor's **Server** tab. `GET /` lists the endpoints and parameters.

- `url`: the video URL or id, up to 10 per request (repeat `url` or separate with commas).
- `lang`: the languages you prefer, e.g. `en` or `fr,en`. Plus `translate`, `anyLanguage`, `autoGenerated`, `segments`, `srt` and `country`, which work like the input fields.

The answer is `{"ok": true, "count": 1, "charged": 1, "results": [...]}`. The rows have the same fields as the dataset rows of a normal run. Videos without a transcript are listed in `failed` and not charged.

Each transcript returned costs the same as a result in a normal run. Use a normal run for whole channels and playlists.

### Pricing

Pay per transcript delivered (event **`result`**), plus Apify's tiny Actor Start fee.

| Apify plan | Per transcript | Per 1,000 |
|---|---|---|
| Free | $0.0015 | **$1.50** |
| Bronze | $0.0014 | **$1.40** |
| Silver | $0.0013 | **$1.30** |
| Gold and up | $0.0012 | **$1.20** |

Apify's platform usage (compute and proxies) is included. Set **Max cost per run** to cap any run.

### FAQ

**Does every video have a transcript?** No. A video needs creator captions or YouTube's automatic captions (most spoken videos in common languages have them). Music without lyrics, very new uploads and some live streams often have none; those are free and listed in `FAILED_VIDEOS`.

**Can I get a language the video doesn't have?** Yes, with `translateIfMissing`: YouTube machine-translates an existing track. The row says `isTranslated: true` and `translatedFrom`.

**Private or age-restricted videos?** Private and members-only videos can't be read without a login, so they are skipped.

**Use with AI?** Use the `text` field as context, or `segments` to cite timestamps. Call the actor from the Apify API, MCP or Make/Zapier/n8n integrations.

### Related actors

- [YouTube Channel Email Finder](https://apify.com/rp_openpro.ai/youtube-channel-email-finder): creators' public business emails, subscribers and socials, by keyword
- [YouTube Scraper — Search, Channels, Shorts & Comments](https://apify.com/rp_openpro.ai/youtube-scraper-search-channels-comments): find videos by search, list a channel, scrape comments
- [Google News & Trends Scraper](https://apify.com/rp_openpro.ai/google-news-trends-scraper)
- [TikTok Ultimate Scraper](https://apify.com/rp_openpro.ai/tiktok-ultimate-scraper)

This actor reads public YouTube data only. Respect creators' rights when you reuse transcripts.

# Actor input Schema

## `videos` (type: `array`):

watch?v=, youtu.be, /shorts/ or /live/ links, or bare 11-character video IDs.

## `channels` (type: `array`):

Channel URLs, @handles or UC… IDs. Takes the latest videos of each channel, up to the limit below.

## `playlists` (type: `array`):

Playlist URLs (with list=) or playlist IDs.

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

How many videos to take from each channel or playlist.

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

Language codes in order of preference, e.g. en, fr, es, pt-BR. Captions written by the creator win over auto-generated ones.

## `allowAutoGenerated` (type: `boolean`):

Use YouTube's automatic captions when the creator did not upload any.

## `translateIfMissing` (type: `boolean`):

If no track exists in your first language, get YouTube's machine translation into it.

## `fallbackToAnyLanguage` (type: `boolean`):

Return the transcript in whatever language exists rather than nothing.

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

Add a segments list with start time, duration and text. The full text is always included.

## `includeSrt` (type: `boolean`):

Add the transcript as an SRT subtitle file in an srt field.

## `country` (type: `string`):

Two-letter country code YouTube sees the request from (affects region-locked videos).

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

Default Apify proxy is fine: the actor switches to residential IPs by itself if YouTube limits datacenter IPs.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideosPerSource": 20,
  "languages": [
    "en"
  ],
  "allowAutoGenerated": true,
  "translateIfMissing": true,
  "fallbackToAnyLanguage": true,
  "includeSegments": true,
  "includeSrt": false,
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `failed` (type: `string`):

No description

# 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 = {
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ],
    "maxVideosPerSource": 20,
    "languages": [
        "en"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rp_openpro.ai/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 = {
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    ],
    "maxVideosPerSource": 20,
    "languages": ["en"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rp_openpro.ai/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 '{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideosPerSource": 20,
  "languages": [
    "en"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rp_openpro.ai/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rp_openpro.ai/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/yB5JaQh9Lo6aKxQ1H/builds/NoeXS4BWfiDpaNO1f/openapi.json
