# YouTube Transcript Scraper (`sleepmodesystems/youtube-transcript-scraper`) Actor

\[💰 $4.99 / 1K transcripts] YouTube transcripts of any video, channel, playlist or search, with the video's details on every row · any caption language, as text, timestamps, SRT or WebVTT · videos without captions are free · No account, no proxy. Export JSON, CSV or Excel.

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

## Pricing

from $2.49 / 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/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

**\[💰 $4.99 per 1,000 transcripts]** Get the transcript of any YouTube video, or of every video of a channel, playlist or search, with the video's details on every row: a channel's 20 newest videos with their transcripts in ~7 seconds. Videos without captions are free. No account, no API key, no proxy. Export JSON, CSV or Excel.

### What can the YouTube Transcript Scraper do?

The YouTube Transcript Scraper **extracts transcripts from YouTube** (https://www.youtube.com) in a single tool: paste **video links** for single transcripts, or a **channel**, a **playlist** or a **search** for many. Each transcript comes in the **video's own language or the one you choose**, as **plain text, text with timestamps, SRT or WebVTT**, on a row with the video's **exact publish date and time**, views, likes, comment count, length and channel.

<table>
<tr><th>📦 What you can extract</th><th>⚙️ Features &amp; integrations</th></tr>
<tr><td valign="top">

📝 **Transcripts** from YouTube's captions <br>
🌍 **Any caption language** the video has <br>
🎬 **Video details** on every row <br>
⏱️ **Timestamps**, SRT and WebVTT <br>
🤖 **Automatic or creator** captions flagged

</td><td valign="top">

🔎 **Videos, channels, playlists, searches** <br>
🗓️ **Date window** from / to <br>
🔔 **Monitor**: only new videos <br>
⬇️ **Export** to JSON, CSV, Excel or XML <br>
🦾 **API, webhooks**, Node.js & Python clients <br>
🤖 **LLM-ready text** for MCP, Claude, ChatGPT

</td></tr>
</table>

If you feed an AI assistant or a search index, write show notes, blog posts or summaries, research what competitors say, or study a topic across many videos, the YouTube Transcript Scraper gives you the words of every video in one run.

### What data can I scrape from YouTube transcripts?

- 📝 **Transcripts**: *what is said in the video.* The full text from the video's captions, in the video's own language or the one you choose, as plain text, text with timestamps (`[2:05] ...`), SRT or WebVTT; its language code, and whether it comes from YouTube's automatic captions or the creator's own.
- 🎬 **The video on the same row**: *what it is and how it did.* Title as the creator wrote it, link, exact publish date and time, length, exact views, exact likes, exact comment count, category, tags, description and the links in it.
- 👤 **The channel**: name, @handle, link, subscribers, country, joined date, total views and video count.
- ❓ **Why there is no transcript**: every video without one says so in `transcriptStatus` (no captions, or the language you asked for is missing, with the languages it has), and is not charged.

Runs on 2026-11-18: 3 video links in 10.9 seconds, a channel's 20 newest videos in 7.0 seconds and a search's 30 videos ("home espresso review") in 16.4 seconds, with a transcript on all 53 (in English and Arabic, 45 of them YouTube's automatic captions) and `publishedAt` on 100%. On a larger test of 200 search videos, 88% had captions; the rest were returned with the reason, free.

> Need more? This scraper covers transcripts. For comments, creators and lean video rows, use the main actor:
>
> - 🎬 [YouTube Scraper](https://apify.com/sleepmodesystems/youtube-scraper): videos, comments, transcripts and creators in one tool

### How much will scraping YouTube transcripts cost?

The YouTube Transcript Scraper uses **pay-per-event** pricing: you pay for each transcript delivered, and the video's details on its row are included. Videos without captions, or without the language you asked for, are returned with the reason and **not charged**. Platform usage is included.

| Event | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|
| Transcript with the video's details (per 1,000) | $4.99 | $3.99 | $3.29 | $2.49 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

The tiers are Apify's discount tiers; PLATINUM and DIAMOND pay the GOLD price.

#### Cost examples

| What you scrape | Transcripts | FREE | GOLD |
|---|---|---|---|
| 100 video links | up to 100 | $0.50 | $0.25 |
| A channel's whole list (~200 videos) | up to 200 | $1.00 | $0.50 |
| 1,000 videos of several searches | up to 1,000 | $4.99 | $2.49 |

### How do I use the YouTube Transcript Scraper?

<a href="https://console.apify.com/actors/XpsesHqu6LA8Zl1S3/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/youtube-transcript-scraper/youtube-transcript-scraper-how-it-works.png" alt="YouTube Transcript Scraper, how it works: video links, a channel, a playlist or a search in, transcripts with the video's details out" style="width:100%;"></a>

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open the [YouTube Transcript Scraper](https://console.apify.com/actors/XpsesHqu6LA8Zl1S3) in Apify Console.
3. Paste video links, a channel, a playlist or a search in **Videos, channels, playlists or links**.
4. Pick a **Transcript language** (empty = the video's own) and a **Transcript format**.
5. Click **Save & Start**, then download your transcripts as JSON, CSV, Excel or XML, or read them through the API.

### ⬇️ Input

Each link and each search is read on its own, up to the number you set; the language, format, date window and country apply to all of them. A single video link always gives that video; a channel gives its videos newest first, a playlist its videos in order.

<a href="https://console.apify.com/actors/XpsesHqu6LA8Zl1S3/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/youtube-transcript-scraper/youtube-transcript-scraper-input.png" alt="YouTube Transcript Scraper input form in Apify Console: links, search, transcript language and format" style="width:100%;"></a>

#### Transcripts of video links

```json
{ "startUrls": ["https://youtu.be/dQw4w9WgXcQ", "https://www.youtube.com/watch?v=yyUHQIec83I"] }
```

Each video's transcript in its own language, as plain text.

#### A whole channel, as SRT subtitles

```json
{ "startUrls": ["https://www.youtube.com/@TechWorldwithNana"], "maxResults": 0, "transcriptFormat": "srt" }
```

Every video of the channel, newest first, each with its subtitles as an SRT file in the row.

#### A search, in another language, last 30 days

```json
{ "searchQueries": ["receta paella"], "transcriptLanguage": "es", "dateFrom": "30 days", "maxResults": 100 }
```

The search's videos published in the last 30 days, with their Spanish transcripts; videos without Spanish captions list the languages they have and are free.

#### What to paste

| Paste this | You get |
|---|---|
| `https://www.youtube.com/watch?v=…`, `youtu.be/…`, `/shorts/…`, `/live/…`, `/embed/…`, a video id | that video's transcript |
| `https://www.youtube.com/@handle`, `@handle`, `/channel/UC…`, `/c/…`, `/user/…` | the transcripts of the channel's videos |
| `…/@handle/shorts`, `…/@handle/streams` | that tab's transcripts |
| `https://www.youtube.com/playlist?list=…`, a playlist id | the playlist's transcripts |
| `https://www.youtube.com/results?search_query=…`, or words in the search field | the search's transcripts |

#### Fields

| Field | Type | Default | Meaning |
|---|---|---|---|
| `startUrls` | list | | Videos, channels, playlists, searches or links |
| `searchQueries` | list | | Searches, one per line |
| `transcriptLanguage` | text | | A language code (en, es, de, pt...); empty = the video's own |
| `transcriptFormat` | text | text | text, timestamps, srt, vtt |
| `maxResults` | number | 50 | Videos per channel, playlist or search; 0 = all |
| `maxShorts`, `maxLive` | number | 0 | Shorts and live streams per channel or search |
| `dateFrom`, `dateTo` | date | | Published window (dates or spans such as `30 days`) |
| `sortBy` | text | relevance | relevance, popular, newest, oldest |
| `duration`, `features` | text, list | | YouTube's search filters |
| `country` | text | US | Results as shown in that country |
| `onlyNew`, `monitorName` | yes/no, text | no | Only videos earlier runs did not return |
| `minItems` | number | 0 | Fail the run below this many rows |

### ⬆️ Output

<a href="https://console.apify.com/actors/XpsesHqu6LA8Zl1S3/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/youtube-transcript-scraper/youtube-transcript-scraper-output.png" alt="YouTube Transcript Scraper output table: thumbnail, title, transcript status, language, automatic captions and the transcript" style="width:100%;"></a>

One row per video. The Output tab has two views: Transcripts and Video details.

#### 📝 Transcript data sample

```json
{
  "type": "video",
  "id": "yyUHQIec83I",
  "url": "https://www.youtube.com/watch?v=yyUHQIec83I",
  "title": "Golang Tutorial for Beginners | Full Go Course",
  "transcript": "in this full course you are going to learn about one of the youngest programming languages ...",
  "transcriptLanguage": "en",
  "transcriptIsAuto": true,
  "transcriptStatus": "ok",
  "publishedAt": "2021-12-20T07:05:11-08:00",
  "durationSeconds": 12299,
  "viewCount": 2531780,
  "likeCount": 41009,
  "commentCount": 1364,
  "category": "Education",
  "channelName": "TechWorld with Nana",
  "channelHandle": "TechWorldwithNana",
  "channelSubscribers": 1500000,
  "channelCountry": "Austria",
  "source": "https://youtu.be/yyUHQIec83I",
  "rank": 1
}
```

#### Run summary

Each run saves a summary (key-value store, `SUMMARY`): `videos` and `transcripts` returned, `incompleteRows` (videos that came without their full details), `unavailableVideos` (private or removed), `notFound` (links YouTube does not know), `outsideDateWindow`, `duplicatesSkipped` and the run's plan in words.

#### 📝 Notes and limits

- Transcripts come from the video's captions, the creator's or YouTube's automatic ones (`transcriptIsAuto`). A video without captions gets `transcriptStatus` saying so and is free.
- A video's captions are listed in the languages the video has; YouTube's machine translation into other languages is not offered.
- A search returns what YouTube shows for it, often 400 to 500 videos, in an order that changes between visits.

### What can you do with YouTube transcripts?

#### 🤖 [YouTube Transcripts for an AI Knowledge Base](https://apify.com/sleepmodesystems/youtube-transcript-scraper/examples/youtube-channel-transcripts-for-ai)

Turn a channel into text for an AI assistant, a search index or summaries. **Recipe:** 1. Paste the channel. 2. Keep **Transcript format** on plain text and set how many videos (0 = all). 3. Export the Transcripts view, or schedule it weekly with **Only new videos** to keep the knowledge base current.

#### 🎞️ Subtitles for a list of videos

Get SRT or WebVTT subtitles for videos you edit, translate or republish. **Recipe:** 1. Paste the video links. 2. Set **Transcript format** to SRT or WebVTT and the language you need. 3. Export: each row holds the file's text.

#### 🔍 What competitors say on YouTube

Research the claims, products and words a market uses. **Recipe:** 1. Type your topic in **Or search YouTube for**, or paste competitors' channels. 2. Set **Published from** to `6 months`. 3. Search the transcripts for your keywords and compare by `viewCount`.

### YouTube transcript scrapers compared

| | YouTube Transcript Scraper | johnvc YouTube Transcripts | starvibe Video Transcript | pintostudio Transcript Scraper |
|---|---|---|---|---|
| Price per 1,000 transcripts | $4.99 | $2.75 | $5.00 | $10.00 |
| Whole channels | ✅ | ✅ | ✅ | ❌ |
| Playlists | ✅ | ❌ | ❌ | ❌ |
| Searches | ✅ | ❌ | ❌ | ❌ |
| SRT and WebVTT | ✅ | ✅ | ❌ | ❌ |
| Video details included | ✅ | ❌ | ✅ | ❌ |
| Free without captions | ✅ | ✅ | ❌ | ❌ |
| Date window | ✅ | ❌ | ❌ | ❌ |

### Want to get other data from YouTube?

<table>
<tr><td>🎬 <a href="https://apify.com/sleepmodesystems/youtube-scraper">YouTube Scraper</a></td><td>💬 <a href="https://apify.com/sleepmodesystems/youtube-comments-scraper">YouTube Comments Scraper</a></td></tr>
<tr><td>📺 <a href="https://apify.com/sleepmodesystems/youtube-channel-scraper">YouTube Channel Scraper</a></td><td>📱 <a href="https://apify.com/sleepmodesystems/youtube-shorts-scraper">YouTube Shorts Scraper</a></td></tr>
</table>

### How do you use the YouTube Transcript Scraper with AI agents (Claude, ChatGPT, Cursor)?

The [Apify MCP server](https://mcp.apify.com/) lets AI agents run the YouTube Transcript Scraper and read its results:

```
https://mcp.apify.com/?tools=sleepmodesystems/youtube-transcript-scraper
```

```json
{
  "mcpServers": {
    "youtube-transcript-scraper": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.apify.com/?tools=sleepmodesystems/youtube-transcript-scraper"]
    }
  }
}
```

Example prompts:

- "Get the transcript of https://youtu.be/dQw4w9WgXcQ and summarise it in five bullet points."
- "Fetch the transcripts of @TechWorldwithNana's last 10 videos and list the tools each one teaches."
- "Find 20 videos about 'home espresso' from the last 6 months and list the machines they recommend."

https://www.youtube.com/watch?v=BKu8H91uCTg

#### Why agents should choose the YouTube Transcript Scraper

- **One call for many videos**: video links, a whole channel, a playlist or a search, with a date window.
- **Clean text for models**: plain text by default; timestamps, SRT or WebVTT when timing matters.
- **Context on the row**: title, exact publish time, views, likes and channel with each transcript.
- **Errors an agent can act on**: a video without captions says why, lists the languages it has, and is not charged.
- **Price**: $4.99 per 1,000 transcripts on FREE, $2.49 on GOLD; no setup, no account, no API key.

#### Quick reference for AI agents

- Actor: `sleepmodesystems/youtube-transcript-scraper`.
- One row per video (`type: "video"`) with its transcript.
- Smallest input: `{"startUrls": ["https://youtu.be/dQw4w9WgXcQ"]}` gives that video's transcript in its own language.
- Common inputs: `startUrls` (videos, channels, playlists), `searchQueries`, `transcriptLanguage`, `transcriptFormat`, `maxResults` (0 = all), `dateFrom` / `dateTo`.
- Main fields: `transcript`, `transcriptLanguage`, `transcriptIsAuto`, `transcriptStatus`, `title`, `url`, `publishedAt`, `viewCount`, `channelName`.
- `transcript` is `null` when the video has no captions (or none in the language asked); `transcriptStatus` says which.
- The run summary (`SUMMARY` in the key-value store) counts videos and transcripts, unavailable videos and links not found.

### ❓ Frequently Asked Questions

#### Which languages can I get?

Every language the video has captions in: the creator's own captions and YouTube's automatic ones. Leave **Transcript language** empty for the video's own language; a video without your language lists the ones it has.

#### Am I charged for videos without captions?

No. They are returned with the reason in `transcriptStatus`, and only delivered transcripts are charged.

#### Can I get every transcript of a channel?

Yes. Paste the channel and set **Videos per channel, playlist or search** to 0: every video, newest first.

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

The YouTube Transcript Scraper collects only public data that anyone can see without logging in, and you choose what to collect. You are responsible for how you use the data, including channel names and other personal data, and for the rights in the transcripts' content, under YouTube's terms and laws such as the GDPR and CCPA. The YouTube Transcript Scraper is an independent tool by Sleep Mode Systems. It is not affiliated with, endorsed by or sponsored by YouTube or Google; YouTube is a trademark of Google LLC.

#### Can I integrate YouTube transcripts with other apps?

Yes. Export to JSON, CSV, Excel or XML, or connect Apify's integrations (webhooks, Zapier, Make, Google Drive) to send results anywhere.

#### Can I use the YouTube Transcript Scraper with the Apify API?

Yes. Start runs and read results through the [Apify API](https://docs.apify.com/api/v2), or the Node.js and Python clients.

#### The YouTube Transcript Scraper is not working?

Open an issue on the Issues tab or write to sleepmodesystems@proton.me; we answer fast. If it helped you, a review on the Store takes a minute and helps others find it.

#### Can I use the YouTube Transcript Scraper through an MCP server?

Yes: `https://mcp.apify.com/?tools=sleepmodesystems/youtube-transcript-scraper`. See the [API's MCP page](https://apify.com/sleepmodesystems/youtube-transcript-scraper/api/mcp) and [the AI agents section](#how-do-you-use-the-youtube-transcript-scraper-with-ai-agents-claude-chatgpt-cursor).

# Changelog

This Actor's version history is a separate document: https://apify.com/sleepmodesystems/youtube-transcript-scraper/changelog.md

# Actor input Schema

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

Any YouTube link (video, Short, live, channel, channel tab, playlist, search results, hashtag), or just a video id, an @handle, a channel id (UC...) or a playlist id. Paste a list of video links to get each one's transcript. Example: https://youtu.be/dQw4w9WgXcQ

## `searchQueries` (type: `array`):

Words as you would type them in YouTube's search box, one search per line: transcripts of the videos YouTube shows for them. Example: home espresso review.

## `transcriptLanguage` (type: `string`):

A language code such as en, es, de or pt. Empty = the video's own language. When a video has no captions in that language, its row lists the languages it has, and it is not charged.

## `transcriptFormat` (type: `string`):

Plain text, text with timestamps, or subtitle files (SRT, WebVTT).

## `maxResults` (type: `integer`):

How many videos to read for each channel, playlist, search or hashtag (single video links always give that video). 0 = everything.

## `maxShorts` (type: `integer`):

How many Shorts to return for each search or channel, on top of the videos above. 0 = none.

## `maxLive` (type: `integer`):

How many live streams (live now and past streams) to return for each search or channel. 0 = none.

## `dateFrom` (type: `string`):

Only videos published on or after this day: a date (2025-01-01) or a span back from today (30 days, 6 months, 2 years). Works the same for searches, channels and playlists.

## `dateTo` (type: `string`):

Only videos published on or before this day. Together with the start date, this gives a window such as all of 2025.

## `sortBy` (type: `string`):

Searches: relevance or popularity (YouTube's own search choices). Channels: newest, popular or oldest first.

## `duration` (type: `string`):

YouTube's length filter for searches.

## `features` (type: `array`):

Only videos with all of these, as in YouTube's search filters.

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

Results as YouTube shows them in this country (two letters: US, GB, DE, IN, BR...). Titles stay as their creators wrote them.

## `onlyNew` (type: `boolean`):

For scheduled runs: return only videos (with their transcripts) that earlier runs with the same links and searches did not return.

## `monitorName` (type: `string`):

Optional. Runs with the same name share their list of videos already returned, even when you change the searches.

## `minItems` (type: `integer`):

For monitoring: mark the run as failed when it returns fewer rows than this. 0 = never.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/@TechWorldwithNana"
  ],
  "transcriptLanguage": "",
  "transcriptFormat": "text",
  "maxResults": 10,
  "maxShorts": 0,
  "maxLive": 0,
  "sortBy": "relevance",
  "duration": "any",
  "country": "US",
  "onlyNew": false,
  "monitorName": "",
  "minItems": 0
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        "https://www.youtube.com/@TechWorldwithNana"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("sleepmodesystems/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/@TechWorldwithNana"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("sleepmodesystems/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/@TechWorldwithNana"
  ],
  "maxResults": 10
}' |
apify call sleepmodesystems/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

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