# YouTube Transcript Scraper | Captions, Subtitles & Metadata (`genial_candlestand/youtube-transcript-scraper`) Actor

Get YouTube video transcripts as plain text and timestamped segments, optional SRT/VTT subtitles, caption language, title, channel, views, likes and publish date. Many videos or Shorts per run, original spoken language by default, no login or API key.

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

## Pricing

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

## YouTube Transcript Scraper | Captions, Subtitles & Metadata

![YouTube Transcript Scraper | Captions, Subtitles & Metadata](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-video-audio-transcripts-banner-ab43f6de.png)

Get the transcript of any YouTube video or Short as plain text and as timestamped segments (start time, duration and text), with an optional SRT or WebVTT subtitles file. Every row also has the caption language, whether the captions are auto-generated, the languages available on the video, and the video metadata: title, channel name, view count, like count, publish date, category, tags and thumbnail.

### What does YouTube Transcript Scraper do?

You paste a list of YouTube video URLs or 11-character video IDs. The actor returns one row per video with the full transcript, taken from the video's own captions (human-made or auto-generated), and about 20 metadata fields. By default it picks the transcript in the video's original spoken language. You can also ask for a language code such as `en`, `ja` or `pt-BR`. It is built for AI and LLM pipelines (RAG, summaries, agents), content research, repurposing videos into articles or subtitles, and building text datasets. No login, no YouTube API key and no browser are needed.

### How to scrape YouTube transcripts

![How YouTube Transcript Scraper works: Asks YouTube's player API (mobile app client) for each video's caption tracks; Picks the track by your language and caption type, else the original language; Down](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-video-audio-transcripts-how-da7890f8.png)

1. Open the actor in Apify Console.
2. In **Video URLs or IDs**, paste one video per line. You can use `watch?v=`, `youtu.be/`, `/shorts/`, `/live/`, `/embed/`, `m.` or `music.youtube.com` links, or bare video IDs.
3. Optionally set **Preferred language** (e.g. `en`), **Caption type**, **Subtitles file format** (SRT or WebVTT) or **Max transcripts**.
4. Leave the proxy on the default residential setting.
5. Click **Start**. When the run ends, download the dataset as JSON, CSV or Excel, or read it through the API.

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

Price per event by Apify plan:

| Event | Free | Bronze | Silver | Gold and above |
|---|---|---|---|---|
| Transcript | $1.10 per 1,000 | $0.99 per 1,000 | $0.88 per 1,000 | $0.77 per 1,000 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

A test run with the API example input below returned 5 rows in 10 s.

You pay per **transcript**: one paid event is one video transcript, which is one dataset row. The title, channel, views, likes, publish date, category and the optional subtitles file are included in that price, with no extra metadata event. There is also a small Actor start event per run.

Not charged: videos without captions, deleted, private or unavailable videos, invalid URLs, videos skipped by the **Caption type** filter (e.g. a video with only auto-generated captions when you ask for human-made only), and videos that failed after retries.

| Scenario | Events | Cost on the Free plan |
|---|---|---|
| Try the 5 prefilled videos | 5 transcripts + 1 start | ≈ $0.006 |
| A course of 100 lectures | 100 transcripts + 1 start | ≈ $0.11 |
| 1,000 videos for an LLM dataset | 1,000 transcripts + 1 start | ≈ $1.10 |
| 10,000 videos in one run | 10,000 transcripts + 1 start | ≈ $11.00 |

### Input

![YouTube Transcript Scraper input example: Video URLs or IDs, Caption type, Include timestamped segments, Subtitles file format](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-video-audio-transcripts-input-0d64cb87.png)

| Field | What it does |
|---|---|
| `startUrls` (required) | YouTube video URLs or IDs, one per line. No limit on the count. Playlists and channels are skipped with a warning. |
| `language` | Preferred language code (`en`, `es`, `ja`, `pt-BR`…). `pt` also matches `pt-BR`. Empty = the video's original language. |
| `captionType` | `manualFirst` (default), `autoFirst`, `manualOnly` or `autoOnly`. |
| `includeSegments` | Add the timestamped `segments` array (default on). |
| `subtitlesFormat` | `none` (default), `srt` or `vtt`: adds a ready subtitles file in `subtitles`. |
| `maxItems` | Stop after this many transcripts. |
| `proxyConfiguration` | Residential proxy, US, by default. |

Example input:

```json
{
  "startUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw",
    "https://www.youtube.com/shorts/41UzbuW6wJs"
  ],
  "language": "en",
  "captionType": "manualFirst",
  "includeSegments": true,
  "subtitlesFormat": "srt"
}
```

### What data can you extract from YouTube?

![YouTube Transcript Scraper output example: Thumbnail, Title, Channel, Published](https://api.apify.com/v2/key-value-stores/Ll7RrWtDkZYOrBvfE/records/youtube-com-video-audio-transcripts-output-c65da275.png)

| Field | Description |
|---|---|
| `transcript` | The full transcript as one plain-text string |
| `segments` | Timestamped lines: `start` and `duration` in seconds, `text` |
| `segmentsCount` | Number of segments |
| `subtitles` | SRT or WebVTT document (when `subtitlesFormat` is set) |
| `language`, `languageName` | Code and name of the chosen caption track, e.g. `en`, "English (auto-generated)" |
| `isAutoGenerated` | `true` for YouTube's automatic (ASR) captions |
| `originalLanguage` | The video's original spoken language |
| `languageMatched` | Whether the requested `language` was found; `null` when none was requested |
| `availableLanguages` | All caption tracks of the video, e.g. `["en", "en (auto)", "ja"]` |
| `id`, `url`, `inputUrl` | Video ID, canonical watch URL, and your input entry |
| `title`, `description`, `tags`, `category`, `imageUrl` | Video details and thumbnail |
| `author`, `channelId`, `authorUrl`, `channelHandle` | Channel name, ID, URL and @handle |
| `durationSeconds`, `viewCount`, `likeCount`, `publishedAt` | Length, exact views, likes, publish date (ISO 8601) |
| `isShort`, `isLiveStream`, `isFamilySafe`, `isUnlisted` | Video flags |
| `scrapedAt` | When the row was scraped |

A real row (a Short; transcript and segments shortened):

```json
{
  "url": "https://www.youtube.com/watch?v=41UzbuW6wJs",
  "id": "41UzbuW6wJs",
  "inputUrl": "https://www.youtube.com/shorts/41UzbuW6wJs",
  "title": "Can A Robot Do My Chores?",
  "author": "MrBeast",
  "channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
  "authorUrl": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
  "channelHandle": "@MrBeast",
  "durationSeconds": 32,
  "viewCount": 60253813,
  "likeCount": 957406,
  "publishedAt": "2026-10-30T10:00:04-07:00",
  "category": "Entertainment",
  "tags": [],
  "isShort": true,
  "isLiveStream": false,
  "isFamilySafe": true,
  "isUnlisted": false,
  "language": "en",
  "languageName": "English (auto-generated)",
  "isAutoGenerated": true,
  "originalLanguage": "en",
  "languageMatched": null,
  "availableLanguages": ["en (auto)"],
  "transcript": "I just bought a $20,000 robot. Let's see how it handles the chores. Uh hey, can you uh throw the dishes in the dishwasher? …",
  "segmentsCount": 11,
  "segments": [
    { "start": 0, "duration": 4.04, "text": "I just bought a $20,000 robot. Let's see" },
    { "start": 2.56, "duration": 2.6, "text": "how it handles the chores. Uh hey, can" }
  ],
  "scrapedAt": "2026-11-04T23:31:37.538Z"
}
```

### Use cases

- **LLM and RAG pipelines** — feed transcripts of many videos into summaries, search indexes or AI agents, with the title and channel as context.
- **Content research** — analyse what competitors or creators say, next to their views, likes and publish dates.
- **Repurposing videos** — turn talks and tutorials into articles, or download ready `.srt` / `.vtt` subtitles.
- **Speech and text datasets** — collect human-made captions only (`captionType: "manualOnly"`) for higher-quality text.
- **Multilingual work** — get a given language track where the video has one, and see every available language per video.

### Limitations

- The actor returns the **captions YouTube already has** (human-made or auto-generated). Videos without captions give no row. There is no AI/Whisper transcription.
- **No machine translation.** YouTube answered its translation endpoint with errors (429) on almost every attempt in testing. If the requested language is missing, you get the original-language transcript with `languageMatched: false`.
- **Playlists and channels are not supported** in this version. Pass video URLs or IDs.
- Age-restricted, private and members-only videos were not tested. When YouTube refuses them, they are skipped with a warning and not charged.
- Live or upcoming streams usually have no captions until the stream is archived.
- `likeCount` is empty when the owner hides likes. If the extra metadata request fails, the row is kept, but the publish date, category, likes, handle and the `isShort` / `isFamilySafe` / `isUnlisted` flags are empty.

### Tips and troubleshooting

- **Keep the residential proxy.** YouTube bot-checks most datacenter IPs ("Sign in to confirm you're not a bot"). Runs without residential proxy are allowed but get a warning and can be slow or fail videos.
- **0 rows or fewer rows than videos?** Read the run log: each skipped video has a warning naming it, e.g. no captions, unavailable video, no human-made captions, or not a YouTube video URL.
- **Wrong language?** Leave **Preferred language** empty to get the original spoken language. This avoids the auto-dubbed track that YouTube lists first on some videos. Check `originalLanguage` and `availableLanguages` in the row.
- **Smaller output:** turn off **Include timestamped segments**. `transcript` and `segmentsCount` stay, and SRT/VTT subtitles still work.
- The same video given twice in different URL forms gives one row and one charge.
- Use **Max transcripts** to cap the cost of a long list. Videos beyond the cap are not requested.

### API, MCP and integrations

Run the actor from your code with the same JSON input as in Console. Your API token is in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("genial_candlestand/youtube-transcript-scraper").call(run_input={
    "startUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
        "https://www.youtube.com/shorts/41UzbuW6wJs",
        "https://www.youtube.com/watch?v=5_Fayfx2NUM",
        "https://www.youtube.com/shorts/s6_8VekJS9I",
    ],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('genial_candlestand/youtube-transcript-scraper').call({
    "startUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
        "https://www.youtube.com/shorts/41UzbuW6wJs",
        "https://www.youtube.com/watch?v=5_Fayfx2NUM",
        "https://www.youtube.com/shorts/s6_8VekJS9I",
    ],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** — one request runs the actor and returns the results (runs up to 5 minutes; longer ones: [run asynchronously](https://docs.apify.com/api/v2/act-runs-post)):

```bash
curl -X POST "https://api.apify.com/v2/acts/genial_candlestand~youtube-transcript-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":["https://www.youtube.com/watch?v=dQw4w9WgXcQ","https://youtu.be/jNQXAC9IVRw","https://www.youtube.com/shorts/41UzbuW6wJs","https://www.youtube.com/watch?v=5_Fayfx2NUM","https://www.youtube.com/shorts/s6_8VekJS9I"]}'
```

**AI agents (MCP).** Add the actor as a tool of the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp). Claude Code:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=genial_candlestand/youtube-transcript-scraper"
```

Claude Desktop, Cursor or VS Code: `{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=genial_candlestand/youtube-transcript-scraper"}}}`. Then ask, for example:

- "Get the transcript of https://www.youtube.com/watch?v=5_Fayfx2NUM and summarise it in five bullet points"
- "Fetch Japanese captions for dQw4w9WgXcQ and list the languages the video has"
- "Download SRT subtitles for https://youtu.be/jNQXAC9IVRw and https://www.youtube.com/shorts/41UzbuW6wJs"

**Integrations.** Run it on a schedule with [Apify Schedules](https://docs.apify.com/platform/schedules) and send the results to Google Sheets, Slack, Zapier, Make, n8n or your webhook — see [Apify integrations](https://docs.apify.com/platform/integrations).

### FAQ

**Is it legal to scrape YouTube transcripts?**<br>
The actor reads only public video captions and metadata that YouTube shows to any visitor, without logging in. You are responsible for how you use the data, including copyright on the transcript text and YouTube's terms. The rows contain no personal data beyond the public channel details.

**Do I need a YouTube API key or a Google account?**<br>
No. The actor needs no login, cookies or API key.

**Can I get transcripts in many languages?**<br>
Yes, when the video has caption tracks in those languages. Set `language` to a code such as `ja` or `pt-BR`. `availableLanguages` lists every track of the video, so you can run again for the other ones.

**How many videos can I process in one run?**<br>
There is no cap on the list. Use `maxItems` if you want to stop after a given number of transcripts.

**How is it different from other YouTube transcript actors?**<br>
Each row includes the publish date, likes, category and tags at the base price of $1.10 per 1,000 transcripts. The leading actor charges $2.75 per 1,000 videos plus $3 per 1,000 for extended metadata, and caps a run at 100 URLs. Every row also shows `originalLanguage`, `availableLanguages` and `languageMatched`, so a language fallback is visible.

### Also useful

- [YouTube Channel Scraper](https://apify.com/genial_candlestand/youtube-channel-details-videos-scraper) — list a channel's videos, Shorts and streams with views, likes and dates, then fetch their transcripts
- [YouTube Comments Scraper](https://apify.com/genial_candlestand/youtube-comments-and-replies-scraper) — add the comments and replies of the same videos, with like counts and dates
- [Google Trends Scraper](https://apify.com/genial_candlestand/google-trends-scraper) — check search interest over time for the topics your videos cover
- [Google News Scraper](https://apify.com/genial_candlestand/google-news-articles-search-scraper) — collect news articles on the same topics by keyword

# Actor input Schema

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

YouTube videos to get transcripts for, one per line: watch?v=, youtu.be/, /shorts/, /live/, /embed/, m. or music.youtube.com links, or bare 11-character video IDs. No limit on the count. Playlist and channel URLs are skipped with a warning.

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

Language code of the transcript you want, e.g. en, es, ja, pt-BR (pt also matches pt-BR). Leave empty for the video's original spoken language. If the video has no track in this language, the original-language transcript is returned with languageMatched: false. No machine translation.

## `captionType` (type: `string`):

Human-made captions first (default, falls back to auto-generated), auto-generated first, or only one kind. With an 'only' option, a video without that kind of captions gives no row and is not charged.

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

Add the segments array (start and duration in seconds, text) to every row. Turn off for smaller rows with the plain-text transcript only.

## `subtitlesFormat` (type: `string`):

Also return a ready subtitles document in the subtitles field: SRT (.srt) or WebVTT (.vtt). Works with segments turned off too.

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

Stop after this many transcripts. Videos beyond the limit are not requested. Leave empty to process the whole list.

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

Residential proxy (US) is the default and recommended: YouTube bot-checks most datacenter IPs, which makes runs slow and can fail videos.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw",
    "https://www.youtube.com/shorts/41UzbuW6wJs",
    "https://www.youtube.com/watch?v=5_Fayfx2NUM",
    "https://www.youtube.com/shorts/s6_8VekJS9I"
  ],
  "captionType": "manualFirst",
  "includeSegments": true,
  "subtitlesFormat": "none",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Dataset with one transcript per video

## `overview` (type: `string`):

Table view of the transcripts

# 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=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
        "https://www.youtube.com/shorts/41UzbuW6wJs",
        "https://www.youtube.com/watch?v=5_Fayfx2NUM",
        "https://www.youtube.com/shorts/s6_8VekJS9I"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("genial_candlestand/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=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
        "https://www.youtube.com/shorts/41UzbuW6wJs",
        "https://www.youtube.com/watch?v=5_Fayfx2NUM",
        "https://www.youtube.com/shorts/s6_8VekJS9I",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("genial_candlestand/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=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw",
    "https://www.youtube.com/shorts/41UzbuW6wJs",
    "https://www.youtube.com/watch?v=5_Fayfx2NUM",
    "https://www.youtube.com/shorts/s6_8VekJS9I"
  ]
}' |
apify call genial_candlestand/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

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