# YouTube Transcript & Subtitles Scraper: Playlists, Channels (`logicbase_systems/youtube-transcript`) Actor

Bulk YouTube transcript, subtitles and captions scraper. Paste videos, playlists or channels; get text, timestamped segments and SRT with title, channel, date, duration and views. $4 per 1,000 transcripts; failures are free.

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

## Pricing

from $4.00 / 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.

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 & Subtitles Scraper: Playlists, Channels

Get **YouTube transcripts, subtitles and captions in bulk**. Paste video links, **playlists** or whole **channels** and receive the full text, timestamped caption lines and optional **SRT** subtitle text, plus title, channel, publish date, duration and view count. **$4 per 1,000 transcripts**, and videos without captions are never charged.

Typical uses: feeding transcripts to ChatGPT/Claude pipelines and RAG databases, turning videos into articles, keyword and competitor research, and archiving a channel or playlist.

### What you get

For every video:

| Field | Description |
|---|---|
| `text` | The whole transcript as plain text |
| `segments` | Caption lines as `{start, duration, text}` (seconds) |
| `srt` | Same transcript as SRT subtitle text (optional) |
| `title`, `channelName`, `channelId`, `channelUrl` | Who published it |
| `publishDate`, `duration`, `durationSeconds`, `viewCount` | When, how long, how popular |
| `language`, `languageName`, `isAutoGenerated` | Which caption track was used and whether it is human-made or YouTube's automatic one |
| `availableLanguages` | Every caption track the video offers |
| `description`, `keywords`, `thumbnailUrl`, `category` | Extra video details (optional) |
| `status`, `error` | `ok`, or `error` with a clear code and message |

Example output (shortened):

```json
{
  "status": "ok",
  "videoId": "aircAruvnKk",
  "videoUrl": "https://www.youtube.com/watch?v=aircAruvnKk",
  "title": "But what is a neural network? | Deep learning chapter 1",
  "channelName": "3Blue1Brown",
  "publishDate": "2017-10-05T08:11:25-07:00",
  "duration": "18:40",
  "durationSeconds": 1120,
  "viewCount": 25276604,
  "language": "en",
  "languageName": "English",
  "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 ...",
  "segments": [
    { "start": 4.22, "duration": 1.18, "text": "This is a 3." },
    { "start": 6.06, "duration": 4.65, "text": "It's sloppily written and rendered at an extremely low resolution of 28x28 pixels," }
  ],
  "error": null
}
```

### How to use it

1. Add **video URLs or IDs**, **playlist URLs** and/or **channel URLs**. You can mix all three in one run. Duplicate videos are processed once.
2. For playlists and channels, set **Max videos per playlist/channel** (default 20, newest first for channels).
3. Choose your **preferred languages**, for example `en`, then `hi`. For each language the Actor takes the human-made captions first and falls back to YouTube's auto-generated captions.
4. Click **Start**. Results appear in the dataset as the run progresses. Export as JSON, CSV, Excel or via the API.

#### Input example

```json
{
  "videoUrls": ["https://www.youtube.com/watch?v=aircAruvnKk"],
  "playlistUrls": ["https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"],
  "channelUrls": ["https://www.youtube.com/@3blue1brown"],
  "maxVideosPerSource": 10,
  "languages": ["en"],
  "includeSrt": true
}
```

#### Language options

- **Preferred languages**: a list in order of preference. Region variants match (`es` finds `es-419`).
- **Allow auto-generated captions** (on by default): use YouTube's speech-to-text captions when no human-made ones exist. Turn it off if you only want human-made captions.
- **Fall back to any available language** (off by default): return whatever caption exists when none of your languages do. Otherwise you get a `NO_CAPTIONS_IN_LANGUAGE` row that lists the languages the video does have.

### Use cases

- **AI and LLM pipelines:** feed clean transcript text to ChatGPT, Claude, RAG databases or summarisers. Set `includeSegments` off to get compact rows.
- **Research:** collect talks, lectures or interviews from a channel or playlist and search them as text.
- **Content repurposing:** turn videos into blog posts, newsletters, show notes and social posts.
- **SEO and competitor research:** see what competitors say and which topics and keywords their videos cover.
- **Subtitles and archiving:** export SRT files for a channel or playlist.

### Pricing

**Pay per event: $0.004 per transcript delivered ($4 per 1,000).** There is also Apify's standard Actor-start event of $0.00005 per run.

- Videos with no captions, private, deleted or unavailable videos, and any other error are **not charged**. They appear in the dataset with `status: "error"` so you can see exactly what happened.
- Output options (SRT, segments, extra details) cost the same. You are not charged per option.
- Proxy and compute costs are included in the price. The default `proxyStrategy: auto` uses a cheap datacenter proxy first and switches to residential only when YouTube blocks it, so you never pay for proxy traffic yourself.
- To cap spending, set a maximum cost per run in the run options, or use **Max videos in total**. The Actor stops when the limit is reached.

### Integrations

This Actor runs on the Apify platform, so everything Apify offers works with it.

**API (curl):**

```bash
curl -X POST "https://api.apify.com/v2/acts/logicbase_systems~youtube-transcript/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"videoUrls": ["https://www.youtube.com/watch?v=aircAruvnKk"], "languages": ["en"]}'
```

**Python client** (`pip install -U apify-client`, version 3 or newer):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("logicbase_systems/youtube-transcript").call(run_input={
    "videoUrls": ["https://www.youtube.com/watch?v=aircAruvnKk"],
    "languages": ["en"],
})
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item["title"], item["wordCount"])
```

**JavaScript client** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('logicbase_systems/youtube-transcript').call({
    playlistUrls: ['https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi'],
    maxVideosPerSource: 10,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**No-code tools:** use the Apify integrations for **n8n**, **Make** and **Zapier**. Pick this Actor, paste your video, playlist or channel URLs, and send the dataset to Google Sheets, Airtable, Notion, a database or an email.

**AI agents (MCP):** add the Apify MCP server to Claude, Cursor or another MCP client, for example `https://mcp.apify.com?tools=logicbase_systems/youtube-transcript`, and ask your agent to fetch a transcript. Docs: https://docs.apify.com/platform/integrations/mcp

**Schedules and webhooks:** run it on a schedule (for example a daily check of a channel) and call a webhook when it finishes.

### Error codes

| Code | Meaning |
|---|---|
| `NO_CAPTIONS` | The video has no captions at all, manual or automatic |
| `NO_CAPTIONS_IN_LANGUAGE` | Captions exist, but not in your languages (the message lists what is available) |
| `NO_MANUAL_CAPTIONS` | Only auto-generated captions exist and you turned them off |
| `VIDEO_UNAVAILABLE`, `PRIVATE_VIDEO` | Deleted, private, removed or region-blocked |
| `AGE_RESTRICTED` | Age-restricted videos need a signed-in account and are not supported |
| `LIVE_NOT_AVAILABLE` | Live stream or premiere that is not available yet |
| `INVALID_URL` | Not a recognised YouTube video, playlist or channel link |
| `SOURCE_NOT_FOUND` | A playlist or channel URL that could not be read, or has no videos |
| `RATE_LIMITED`, `BLOCKED`, `NETWORK_ERROR`, `YOUTUBE_ERROR` | YouTube or the network refused after several retries with fresh IPs. Run the video again later |

### Good to know (limits)

- **It reads captions that already exist on YouTube.** It does not listen to the audio, so a video without captions gets no transcript.
- **Translation is not supported.** Use the caption languages the video offers.
- **Age-restricted, private and members-only videos are not supported.**
- Caption wording is YouTube's. Auto-generated captions can contain mistakes, and their lines can overlap in time, which is how YouTube delivers them. SRT output trims overlaps so cues do not collide.
- YouTube changes its systems from time to time. If a run starts failing broadly, please report it in the Issues tab with a run link and we will fix it.
- Always check that your use of the data complies with YouTube's terms and the copyright of the videos' owners. This Actor only reads public information.

### FAQ

**Can I get transcripts for a whole channel?** Yes. Add the channel URL and set *Max videos per playlist/channel* (up to 5,000). Choose *Videos*, *Shorts* or *Past live streams* with *Channel tab*.

**Does it work with YouTube Shorts?** Yes, Shorts links work like normal video links.

**Can I use it from code, n8n, Make or an AI agent?** Yes. See *Integrations* below.

**How do I get one transcript for free to try?** Press *Try for free* on this page. New Apify accounts include free monthly platform credit, and a first run on one video costs a fraction of a cent.

**Will it work for any video?** Only videos that have captions (human-made or YouTube's automatic ones). Videos without captions return a free error row.

**How is it different from downloading subtitles by hand?** It handles whole playlists and channels in one run, returns clean JSON/CSV, and retries blocked requests with fresh IPs for you.

**Why did a video return an error row?** Check `error.code` and `error.message` (see the table above). Error rows are free.

**Where do I report a problem or ask for a feature?** In the Issues tab of this Actor.

# Actor input Schema

## `videoUrls` (type: `array`):

YouTube video links (watch, youtu.be, shorts, embed, live) or 11-character video IDs. One per line.

## `playlistUrls` (type: `array`):

YouTube playlist links (contain list=PL...). Up to 'Max videos per playlist/channel' videos are taken from each.

## `channelUrls` (type: `array`):

Channel links such as https://www.youtube.com/@3blue1brown or /channel/UC... . The newest videos are taken first.

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

How many videos to take from each playlist or channel (newest first for channels). Set a low number to control cost.

## `channelTab` (type: `string`):

Which part of a channel to read.

## `maxVideosTotal` (type: `integer`):

Hard cap on videos for the whole run, across all inputs. Leave empty for no cap.

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

Language codes in order of preference, e.g. en, hi, es, pt-BR. For each language a human-made caption is preferred, then the auto-generated one.

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

Use YouTube's automatic (speech-to-text) captions when no human-made caption exists. Turn off to accept human-made captions only.

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

If your languages are missing return whichever caption exists instead of an error.

## `includeText` (type: `boolean`):

Add the whole transcript as one text field.

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

Add a list of {start, duration, text} caption lines, with times in seconds.

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

Add the transcript as an .srt-formatted string, ready to save as a subtitle file.

## `includeVideoDetails` (type: `boolean`):

Add description, keywords, thumbnail and category. Title, channel, publish date, duration and views are always included.

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

How many videos to fetch at the same time. Lower it if you see many rate-limit retries.

## `proxyStrategy` (type: `string`):

Auto (recommended) tries cheap Apify data-center proxy first and switches to residential proxy when YouTube blocks it. Residential is the most reliable. None only works from a home IP, not on Apify.

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

Advanced: your own proxy URLs. Only used when you enter custom proxy URLs, otherwise the strategy above applies.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "maxVideosPerSource": 20,
  "channelTab": "videos",
  "languages": [
    "en"
  ],
  "allowAutoGenerated": true,
  "fallbackToAnyLanguage": false,
  "includeText": true,
  "includeSegments": true,
  "includeSrt": false,
  "includeVideoDetails": false,
  "maxConcurrency": 5,
  "proxyStrategy": "auto"
}
```

# Actor output Schema

## `transcripts` (type: `string`):

No description

## `summary` (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 = {
    "videoUrls": [
        "https://www.youtube.com/watch?v=aircAruvnKk"
    ],
    "languages": [
        "en"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("logicbase_systems/youtube-transcript").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 = {
    "videoUrls": ["https://www.youtube.com/watch?v=aircAruvnKk"],
    "languages": ["en"],
}

# Run the Actor and wait for it to finish
run = client.actor("logicbase_systems/youtube-transcript").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 '{
  "videoUrls": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "languages": [
    "en"
  ]
}' |
apify call logicbase_systems/youtube-transcript --silent --output-dataset

```

## MCP server setup

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

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/khJ32YaKJttA3b1Xf/builds/1txHeqRCQUqdP3ZwY/openapi.json
