# YouTube Transcript + AI Summary (Bulk, Playlists, Channels) (`marksimon/youtube-transcript-ai`) Actor

Bulk YouTube transcripts from videos, Shorts, playlists and channels: plain text, timestamped segments, SRT and VTT, any language or translated. Optional AI summary, key points and chapters. Only successful transcripts are charged.

- **URL**: https://apify.com/marksimon/youtube-transcript-ai.md
- **Developed by:** [Mark Simon](https://apify.com/marksimon) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.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 + AI Summary (Bulk, Playlists, Channels)

Get transcripts of **many YouTube videos at once**: paste video links, Shorts, whole **playlists** or **channels**, and receive clean text, timestamped segments and ready-to-use **SRT / VTT** subtitles. Turn on **AI summary** to also get a summary, key points, timestamped chapters and topic tags for every video.

### Why this Actor

- **Bulk input**: videos, Shorts, live replays, playlists and channels in one run, duplicates removed automatically.
- **Any language**: choose preferred languages (manual subtitles first, then auto-generated), fall back to the original language, or let YouTube **translate** the transcript.
- **Every format**: plain text, `{start, duration, text}` segments, SRT and WebVTT.
- **AI summary, key points and chapters** (optional) with Claude, in the language you choose.
- **Fair billing**: you only pay for transcripts that were actually delivered. Videos without subtitles, private or removed videos are free.
- Built-in IP rotation with retries, because YouTube blocks most cloud servers.

### Input example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "https://www.youtube.com/playlist?list=PL...",
    "https://www.youtube.com/@channel"
  ],
  "maxVideosPerSource": 20,
  "languages": ["en", "de"],
  "includeSrt": true,
  "aiSummary": true
}
```

### Output (one row per video)

| Field | Meaning |
| --- | --- |
| `title`, `channel`, `url`, `thumbnail` | Video details |
| `language`, `languageCode`, `isGenerated`, `isTranslated` | Which transcript you got |
| `availableLanguages` | All subtitle languages of the video |
| `text` | Full transcript as one text |
| `segments` | `[{ start, duration, text }]` in seconds |
| `srt`, `vtt` | Subtitle files as text (when enabled) |
| `durationSeconds`, `wordCount` | Length of the transcript |
| `ai.summary`, `ai.keyPoints`, `ai.chapters`, `ai.topics` | AI results (when enabled) |
| `status`, `error` | `ok`, or why there is no transcript |

### Pricing

- **Transcript** (event `transcript`): per video with a delivered transcript.
- **AI summary** (event `ai-summary`): per video with AI results. Not charged when you add your own Anthropic API key.

Errors (no subtitles, private video, invalid link) are never charged.

### Tips

- Keep the default **residential proxy**: YouTube blocks datacenter IPs for transcripts.
- For channels the newest uploads come first; raise **Max. videos per playlist / channel** for more.
- Only videos that have subtitles (manual or auto-generated) can be transcribed; this Actor does not do speech-to-text on audio.

# Actor input Schema

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

YouTube video URLs (watch, youtu.be, Shorts, live, embed), bare video IDs, playlist URLs or channel URLs (e.g. https://www.youtube.com/@channel). Mix them freely.

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

For channels the newest uploads come first.

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

Language codes in order of preference (en, de, nl, hu, es ...). Manually created subtitles are used before auto-generated ones.

## `fallbackToAnyLanguage` (type: `boolean`):

If none of the preferred languages exists, return the original transcript instead of an error.

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

Language code to translate the transcript into using YouTube's built-in translation, e.g. en or de. Leave empty for no translation.

## `includeText` (type: `boolean`):

Full transcript as one text block.

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

List of {start, duration, text}.

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

Ready-to-use .srt subtitle text.

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

Ready-to-use .vtt subtitle text.

## `aiSummary` (type: `boolean`):

Adds an AI-written summary, 5-10 key points, timestamped chapters and topic tags to every video. Charged separately per video.

## `aiModel` (type: `string`):

Model used for the summary.

## `aiLanguage` (type: `string`):

Language of the summary, e.g. English or German. Empty = same as the transcript.

## `anthropicApiKey` (type: `string`):

If you add your own key, the AI event is not charged; you pay Anthropic directly.

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

YouTube blocks most cloud IPs; residential proxies are strongly recommended.

## `maxConcurrency` (type: `integer`):

How many videos are processed at the same time.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideosPerSource": 20,
  "languages": [
    "en"
  ],
  "fallbackToAnyLanguage": true,
  "includeText": true,
  "includeSegments": true,
  "includeSrt": false,
  "includeVtt": false,
  "aiSummary": false,
  "aiModel": "haiku",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One row per video: metadata, transcript text, timestamped segments, optional SRT/VTT and AI summary, or the error.

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("marksimon/youtube-transcript-ai").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"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("marksimon/youtube-transcript-ai").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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call marksimon/youtube-transcript-ai --silent --output-dataset

```

## MCP server setup

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

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/WVLKTVem7P1J5Zqvf/builds/A2oLLyUYWeAA5mEOU/openapi.json
