# YouTube Transcript Scraper - Subtitles & SRT (`karioski/youtube-transcript-scraper`) Actor

Get YouTube transcripts, subtitles and captions in bulk from videos, Shorts, playlists and whole channels. Pick the language, get plain text, timed segments, SRT or VTT. Ready for AI summaries, RAG and content repurposing. No login, no API key.

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

## Pricing

from $3.00 / 1,000 transcript extracteds

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** downloads the transcripts, subtitles and closed captions of YouTube videos in bulk: single videos, Shorts, whole playlists and entire channels. Choose the language and get plain text, timestamped segments, **SRT** or **VTT** files ready for AI summaries, RAG pipelines, translation, SEO and content repurposing. No YouTube API key and no login needed.

### What can this Actor do?

- Extract transcripts from **videos, Shorts, `youtu.be` links, playlists and channels** (latest N videos).
- **Pick the language**: manual (human) captions are preferred over auto-generated ones when both exist.
- **Four formats at once**: full text, timestamped segments, SRT and VTT subtitle files.
- Video context on every row: title, channel, duration, views and the list of available caption languages.
- Best-effort **auto-translation** of captions into another language.
- Robust bulk runs: one unavailable video never fails the run; it is reported as an error row and not charged.

### Why choose it over other tools?

- **Whole channels and playlists**, not only single URLs.
- **SRT + VTT + segments** in the same run, so no conversion step.
- Flat, transparent price per transcript and nothing for videos without captions.

### What data can I extract?

| Field | Description |
|---|---|
| `videoId / url` | YouTube video ID and link |
| `title / channel / channelId` | Video title and channel |
| `language / originalLanguage / isAutoGenerated / isTranslated` | Caption language, and whether it is auto-generated or translated |
| `availableLanguages` | Every caption language the video offers |
| `text / wordCount` | Full transcript as plain text and its length |
| `segments` | Array of `{ start, duration, text }` with timestamps in seconds |
| `srt / vtt` | Ready-to-use subtitle files (optional) |
| `durationSeconds / viewCount` | Video metadata |

### How to use it

1. Click **Try for free** and open the Actor's input.
2. Paste video, Shorts, playlist or channel URLs into **Start URLs**.
3. Choose the language and the formats you need (segments, SRT, VTT).
4. Click **Start** and download the transcripts as JSON, CSV or Excel when the run finishes.

### Input example

```json
{
  "startUrls": [
    "https://www.youtube.com/@TED",
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideosPerSource": 20,
  "language": "en",
  "includeSegments": true,
  "includeSrt": true
}
```

### Output example

```json
{
  "videoId": "jNQXAC9IVRw",
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "title": "Me at the zoo",
  "channel": "jawed",
  "language": "en",
  "isAutoGenerated": false,
  "wordCount": 38,
  "text": "All right, so here we are in front of the elephants...",
  "segments": [
    {
      "start": 1.2,
      "duration": 2.16,
      "text": "All right, so here we are,"
    }
  ]
}
```

Download the dataset as JSON, CSV, Excel or HTML, or read it with the API.

### How much does it cost?

This Actor uses **pay-per-event** pricing: you pay only for results delivered, and platform usage is included. Prices drop further on higher Apify plans (Silver, Gold).

| What you pay for | Price on paid plans |
|---|---|
| Transcript delivered | $0.004 ($4 per 1,000 videos) |

**Example:** transcripts of a channel's latest 500 videos cost about **$2**.

You can set a **maximum cost per run** in the run options; the Actor stops cleanly when it is reached. Failed items and errors are never charged.

### Use cases

- **AI summaries and RAG**: feed lectures, podcasts and tutorials into ChatGPT, Claude or a vector database.
- **Content repurposing**: turn videos into blog posts, newsletters and social threads.
- **SEO and research**: analyze what competitors say in their videos.
- **Subtitles and translation** workflows with SRT/VTT output.

### Integrations and API

You can run this Actor and get its data in many ways:

- **Apify API and clients** for [JavaScript](https://docs.apify.com/api/client/js) and [Python](https://docs.apify.com/api/client/python): start runs and download results as JSON, CSV, Excel, XML or HTML.
- **Schedules**: run it hourly, daily or weekly to monitor changes.
- **Integrations**: Make, Zapier, n8n, Google Sheets, Slack, Airbyte, webhooks and more.
- **AI agents (MCP)**: add it to Claude, Cursor, VS Code or any MCP client through the [Apify MCP server](https://mcp.apify.com), and your agent can call it as a tool.

### FAQ

#### Which videos have transcripts?

Any video where YouTube shows captions, either uploaded by the creator or auto-generated. Videos without any captions return an error row and are not charged.

#### Can I get transcripts for a whole channel?

Yes. Paste the channel URL (`@handle`, `/channel/...`) and set how many of the latest videos to process.

#### Do I need a YouTube API key or account?

No. The Actor reads publicly available captions without login.

#### Is it legal to scrape this data?

This Actor collects only publicly available data and does not log in to any account. Personal data is protected by laws such as the GDPR in the EU; don't scrape personal data unless you have a legitimate reason. If you're unsure whether your use case is legitimate, consult a lawyer. See also Apify's post on [the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

### Related tools

- [YouTube Scraper](https://apify.com/karioski/youtube-scraper): video metadata, views, likes and subscribers
- [YouTube Comments Scraper](https://apify.com/karioski/youtube-comments-scraper): comments and replies for the same videos
- [Website to Markdown Crawler](https://apify.com/karioski/website-to-markdown-crawler): turn documentation sites into LLM-ready Markdown

Found a bug or missing a feature? Open an issue on the **Issues** tab. We usually reply within 24 hours.

# Actor input Schema

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

YouTube video URLs, video IDs, playlist URLs or channel URLs (e.g. https://www.youtube.com/@channel). Playlists and channels are expanded to their videos.

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

Limit how many videos are taken from each playlist or channel.

## `language` (type: `string`):

ISO code such as en, ar, fr, es, de. If that language has no captions, the first available track is used.

## `translateTo` (type: `string`):

ISO code to machine-translate the captions into (e.g. ar). Leave empty to keep the original language.

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

Return timestamped transcript segments.

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

Return the transcript as an SRT subtitle file.

## `includeVtt` (type: `boolean`):

Return the transcript as a WebVTT subtitle file.

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

Requests normally go direct. If YouTube answers with a bot check, that request is retried through a fresh proxy IP.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideosPerSource": 5,
  "language": "en",
  "includeSegments": true,
  "includeSrt": false,
  "includeVtt": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ],
    "maxVideosPerSource": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("karioski/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 = {
    "startUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
    "maxVideosPerSource": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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