# YouTube Transcript Scraper: Bulk Captions & Subtitles (`best_actors/youtube-transcripts`) Actor

Get the transcript of any YouTube video, Short or livestream as clean text, with optional timestamps. Bulk URLs, any caption language, no API key. Pay only for transcripts found.

- **URL**: https://apify.com/best_actors/youtube-transcripts.md
- **Developed by:** [Lewis O'Rorke](https://apify.com/best_actors) (community)
- **Categories:** Videos, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.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 Scraper: Bulk Captions & Subtitles

**Paste YouTube links, get clean transcripts. Any public video, Short or
livestream with captions, in any caption language, with optional timestamps.
You only pay for transcripts that are found.**

***

### At a glance

| | |
|---|---|
| **You give it** | YouTube video, Shorts or live links (up to 1,000 per run) |
| **You get** | One row per video: the full transcript as clean text, title, channel, language, and optional timestamps |
| **Price** | $0.003 per transcript (you only pay for results) |
| **Data source** | YouTube's own captions (no API key needed) |
| **Speed** | About a second per video |

***

### Who it is for

- **AI agents and LLM apps** that summarise, search or answer questions about videos
- **Content creators and marketers** repurposing videos into blogs, posts and newsletters
- **Researchers and students** analysing what's said across many videos
- **SEO teams** mining competitor videos for topics and keywords

***

### What you get for each video

| Field | What it means |
|---|---|
| `title`, `channel`, `channel_url` | The video and who made it |
| `text` | The full transcript as one clean block of text |
| `word_count`, `duration_seconds` | Length of the transcript and video |
| `language`, `language_code` | Which captions were used |
| `auto_generated` | `true` if YouTube made the captions automatically |
| `segments` | Optional: every line with `start` and `duration` in seconds |
| `available_languages` | All caption languages the video has |
| `error` | Why there's no transcript, in plain English (not charged) |

***

### How to use it

1. Paste **video URLs or IDs**: normal links, `youtu.be` links, Shorts and live
   URLs all work.
2. Set **preferred languages** in order, e.g. `en`, then `de`. Human-made
   captions are used first, then auto-generated ones.
3. Optional: **include timestamps** for every caption line.

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://youtu.be/dQw4w9WgXcQ"
  ],
  "languages": ["en"],
  "includeTimestamps": false
}
```

#### Get your results

Click **Start**. Rows appear in the **Output** tab as they're found. Export them
as Excel, CSV or JSON, or send them straight to Google Sheets, a CRM or Slack
with Apify integrations (Zapier, Make, n8n, webhooks) or the API.

#### Run it on a schedule (optional)

Pair it with a schedule and a list of a channel's latest videos to keep a searchable archive of everything they say.

***

### Sample output

One row from a real run, trimmed to the main fields. Every field is described above.

```json
{
  "video_id": "jNQXAC9IVRw",
  "title": "Me at the zoo",
  "channel": "jawed",
  "language": "English",
  "auto_generated": false,
  "word_count": 39,
  "duration_seconds": 19,
  "text": "All right, so here we are, in front of the elephants the cool thing about these guys is that they have really... really really long trunks and that's cool (b..."
}
```

***

### One-click examples

Open one of these ready-made tasks, check the inputs, and click **Start**. Each is a good starting point you can change.

- [YouTube transcript with timestamps](https://apify.com/best_actors/youtube-transcripts/youtube-transcript-with-timestamps)
- [Transcripts for several YouTube videos at once](https://apify.com/best_actors/youtube-transcripts/youtube-transcripts-bulk)

***

### Pricing

| Event | Price |
|---|---|
| Transcript | $0.003 |

For example, 100 transcripts cost $0.30.

You pay per transcript found. Videos with captions turned off, private or
deleted videos, and invalid links are listed with a reason and not charged.

***

### Good to know

- The Actor reads the captions YouTube already has. It doesn't transcribe
  audio, so a video with no captions has no transcript.
- Requests that YouTube blocks are retried automatically through residential
  proxies at no extra cost to you.

***

### FAQ

**Can it transcribe videos without captions?**
No. It reads the captions YouTube already has. Most videos have auto-generated English captions, but some creators turn them off.

**Which language do I get?**
The first of your preferred languages the video has, human-made captions first. `available_languages` lists every option.

**Can it translate?**
Not currently: YouTube blocks automated requests for translated captions. Use the original language and translate the text yourself.

***

### Credits

Built on the open-source
[youtube-transcript-api](https://github.com/jdepoix/youtube-transcript-api)
library (MIT licence). Not affiliated with YouTube or Google.

# Actor input Schema

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

YouTube video, Shorts or live URLs, or 11-character video IDs. Up to 1,000.

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

Language codes in order of preference, e.g. en, de, es. Human-made captions are used first, then auto-generated ones.

## `includeTimestamps` (type: `boolean`):

Adds every caption line with its start time and duration.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "languages": [
    "en"
  ],
  "includeTimestamps": false
}
```

# Actor output Schema

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

No description

## `all` (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 = {
    "videos": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ]
};

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

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

```

## MCP server setup

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

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/xjIwrBGoTuhxYv4j7/builds/iLkPk4JhiF8F00uxN/openapi.json
