# YouTube Transcript Scraper — Captions, Text & Timestamps (`he_work/youtube-transcript-scraper`) Actor

Get YouTube transcripts for videos, Shorts, playlists and whole channels: full text, timestamped lines, language, auto-generated flag, translation to any language, plus title, channel, duration and views. Pay only for transcripts found.

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

## Pricing

from $4.25 / 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, Text & Timestamps

> ✅ **Checked daily.** An automated test runs this Actor on the Apify cloud every day and checks that it still returns real data, so if the website changes and something breaks, it's caught the same day and fixed.

Get **YouTube transcripts** at scale, for single videos, Shorts, playlists or whole channels:

- **Full transcript text**, ready for AI / LLM pipelines, summaries, search and analysis.
- **Timestamped lines** (`[1:23] …`) and timed segments (start, duration, text).
- Language, **auto-generated vs human captions**, and every caption language the video has.
- **Translation** into any language YouTube supports (`translateTo`).
- Video title, channel, channel ID, duration, view count, keywords and thumbnail (optionally the description).

**You only pay for transcripts found.** Videos without captions are listed for free, so you know what was skipped.

### Use cases

- Feed video content into ChatGPT, Claude or RAG pipelines; summarise podcasts, lectures and interviews.
- SEO and content repurposing (blog posts, show notes, social clips).
- Research, media monitoring, competitor and influencer analysis across whole channels.

### Output (one row per video)

| Field | Example |
|---|---|
| `video_id`, `url`, `title`, `channel`, `channel_id` | `UF8uR6Z6KLc`, …, `Steve Jobs' 2005 Stanford Commencement Address`, `Stanford` |
| `duration_seconds`, `view_count`, `keywords`, `thumbnail` | `904`, `43000000`, … |
| `transcript_available`, `language`, `original_language`, `is_auto_generated`, `translated` | `true`, `en`, `en`, `false`, `false` |
| `available_languages` | `["ar", "de", "en", "es", …]` |
| `transcript`, `word_count` | full text, `2271` |
| `transcript_timestamped` | `[0:07] Thank you. I'm honored to be with you today…` |
| `segments` | `[{"start": 7.0, "duration": 3.6, "text": "…"}, …]` |
| `source` | `video`, `channel @veritasium` or `playlist PL…` |

### Input

| Field | Default | Description |
|---|---|---|
| `videos` | – | Video URLs or IDs (watch, youtu.be, Shorts, live) |
| `channels` | – | Channel URLs or @handles (latest uploads) |
| `playlists` | – | Playlist URLs or IDs |
| `maxVideosPerChannel` | `50` | Per channel / playlist |
| `languages` | `["en"]` | Preferred caption languages, in order |
| `translateTo` | – | Machine-translate captions, e.g. `es` |
| `preferManualCaptions` | `true` | Human captions over auto-generated |
| `includeSegments`, `includeDescription` | `true`, `false` | Extra fields |
| `maxResults` | `1000` | Hard cap on videos (and cost) |

### Example input

```json
{
  "videos": [
    "UF8uR6Z6KLc",
    "arj7oStGLkU",
    "9bZkp7q19f0"
  ],
  "translateTo": "es",
  "includeDescription": true,
  "includeSegments": false,
  "maxVideosPerChannel": 20,
  "languages": [
    "en"
  ],
  "preferManualCaptions": true,
  "includeFailed": true,
  "concurrency": 5,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

### Example output

One item from a real run (long texts shortened):

```json
{
  "video_id": "9bZkp7q19f0",
  "url": "https://www.youtube.com/watch?v=9bZkp7q19f0",
  "title": "PSY - GANGNAM STYLE(강남스타일) M/V",
  "channel": "officialpsy",
  "channel_id": "UCrDkAvwZum-UTjHmzDI2iIw",
  "duration_seconds": 252,
  "view_count": 6116824753,
  "transcript_available": true,
  "language": "ko",
  "original_language": "ko",
  "is_auto_generated": true,
  "translated": false,
  "available_languages": [
    "ko"
  ],
  "word_count": 194,
  "transcript": "오반 강남 스타일 강남 스타일 낮에는 따로온 인간적인 여자 커피 한 잔에 여유를 아는 품격 있는 여자 밤이 어며 심장이 뜨거워지는 여자 그런 전 있는 여자 나는 서너에 낮에는 너만큼 따로운 그런 서너에 거피시기도 전에 원샷 때리는 서너에 범이 오며 심장이 터져버리는 서너에 그런 아…",
  "transcript_timestamped": "[0:09] 오반 강남 스타일\n[0:14] 강남 스타일\n[0:18] 낮에는 따로온 인간적인 여자 커피 한\n[0:22] 잔에 여유를 아는 품격 있는 여자\n[0:25] 밤이 어며 심장이 뜨거워지는 여자\n[0:29] 그런 전 있는 여자\n[0:32] 나는 서너에 낮에는 너만큼 따로운\n[0…",
  "keywords": [
    "PSY",
    "싸이",
    "…"
  ],
  "thumbnail": "https://i.ytimg.com/vi_webp/9bZkp7q19f0/sddefault.webp",
  "scraped_at": "2026-11-05T15:29:25+00:00",
  "description": "PSY - ‘I LUV IT’ M/V @ https://youtu.be/Xvjnoagk6GU\nPSY - ‘New Face’ M/V @https://youtu.be/OwJPPaEyqhI\n\nPSY - 8TH ALBUM '4X2=8' on iTunes @\nhttps://smarturl.…",
  "translation_error": "YouTube rate-limited machine translation; original language returned",
  "source": "video"
}
```

### How it compares

| | This Actor | Typical alternative |
|---|---|---|
| Fields per result | 22 (see *Example output*) | Varies by actor |
| Freshness | Read live from the source when the run starts | Varies |
| Reliability | Tested daily by an automated run on the Apify cloud (see the top of this page) | — |
| Price | $5.00 per 1,000 transcripts | $1.00–$7.00 per 1,000 results (comparable Actors on the Apify Store, 6 Nov 2026) |

### Pricing

Pay per result, no monthly fee:

- **$5.00 per 1,000 transcripts**: One video transcript delivered to your dataset (videos without captions are free).
- $0.001 per run (start).

Bronze plans pay 5% less, Silver 10% less, Gold and above 15% less.

**Examples:** 1,000 transcripts = $5.00; 10,000 = $50.00.

### FAQ

**How do I run it on a schedule?** Create a task with your input and add a schedule in Apify Console (e.g. daily at 6 am). Each run writes a fresh dataset.

**How do I get the data?** Download the dataset as JSON, CSV, Excel, XML or HTML from the run page, or read it with the Apify API / Python and JavaScript clients. Integrations (Google Sheets, Make, Zapier, n8n, webhooks) work out of the box.

**Do I need proxies or an account on the site?** No. Proxies are handled inside the Actor and included in the price; no login is needed.

**What if a run returns fewer results than expected?** Check the run's key-value store `OUTPUT` record (when present) for a per-request report, then open an issue on the Issues tab with the run link and we'll look into it.

**Is it legal?** The Actor only collects publicly available data. You are responsible for using it in line with the website's terms, copyright and data-protection rules (GDPR, CCPA) — don't collect personal data you have no legal basis for.

### Notes

- Transcripts are YouTube's captions (uploaded or auto-generated); videos with captions turned off have none.
- Private, members-only and some age-restricted videos aren't available.
- Not affiliated with YouTube or Google.

# Actor input Schema

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

Video URLs or IDs (watch, youtu.be, Shorts, live, embed links all work).

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

Channel URLs or @handles: transcripts of their latest uploads.

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

Playlist URLs or IDs.

## `maxVideosPerChannel` (type: `integer`):

Most recent first for channels.

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

Caption languages in order of preference (e.g. en, es, de). Falls back to whatever the video has.

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

Optional language code (e.g. en, es): YouTube's machine translation of the captions.

## `preferManualCaptions` (type: `boolean`):

Use uploaded captions over auto-generated ones when both exist.

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

Each caption line with its start time and duration.

## `includeDescription` (type: `boolean`):

Add the full video description.

## `includeFailed` (type: `boolean`):

Add a free row for videos with no captions (not charged).

## `concurrency` (type: `integer`):

Videos processed at the same time.

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

Hard cap on videos (and cost) for the run.

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

Used only if YouTube asks to confirm you're not a bot.

## Actor input object example

```json
{
  "videos": [
    "UF8uR6Z6KLc",
    "arj7oStGLkU",
    "9bZkp7q19f0"
  ],
  "maxVideosPerChannel": 20,
  "languages": [
    "en"
  ],
  "translateTo": "es",
  "preferManualCaptions": true,
  "includeSegments": false,
  "includeDescription": true,
  "includeFailed": true,
  "concurrency": 5,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Transcript text, segments and video metadata.

## `report` (type: `string`):

Outcomes per video.

# 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=UF8uR6Z6KLc"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("he_work/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=UF8uR6Z6KLc"] }

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

```

## MCP server setup

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