# YouTube Video Transcript, Caption & Metadata Bulk Extractor Pro (`apex_scrapers/youtube-video-transcript-caption-metadata-bulk-extractor-pro`) Actor

Bulk extract YouTube transcripts, timestamped segments, SRT & WebVTT subtitles, AI/RAG-ready chunks, auto-translated captions, parsed chapters, and full video metadata (views, channel, keywords, duration, thumbnails) via ultra-fast pure HTTP for AI pipelines, SEO, and research.

- **URL**: https://apify.com/apex_scrapers/youtube-video-transcript-caption-metadata-bulk-extractor-pro.md
- **Developed by:** [Matthew](https://apify.com/apex_scrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.75 / 1,000 results

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 Video Transcript, Caption & Metadata Bulk Extractor Pro

Bulk extract YouTube video transcripts, timestamped segments, `.srt` & `.vtt` subtitles, AI/RAG-ready chunks, auto-translated captions, parsed video chapters, and complete video metadata in seconds — powered by an ultra-fast pure-HTTP engine with zero browser bloat.

### 🤖 Use with AI Agents & MCP (Claude, Cursor, Windsurf, LangChain)

This Actor works natively with **Apify's MCP Server** so AI research, summarization, and RAG agents can extract full YouTube transcripts (`transcriptText`), timestamped `ragChunks`, SRT/VTT captions, auto-detected chapters, and video metadata in one autonomous tool call.

Add this to your MCP client config (`claude_desktop_config.json` or `.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "apify": {
      "type": "http",
      "url": "https://apify.com"
    }
  }
}
```

#### Also Works For

- **AI RAG Knowledge Base & Vector DB Ingestion (`ragChunks` with Timestamps)**
- **Automated YouTube-to-Blog, Newsletter & Social Thread Pipelines (n8n, Make.com, Zapier)**
- **Multi-Language Video Translation & SRT/VTT Subtitle Generation**
- **AI Video Research & Competitor Content Auditing Agents**

***

### Why Choose Pro Over Standard YouTube Transcript Scrapers?

- **4 Output Formats in One Run:** Extract clean plain text (`transcriptText`), millisecond-accurate `segments`, SubRip (`.srt`), and WebVTT (`.vtt`) subtitles simultaneously.
- **Built-In AI / RAG Chunker (`ragChunks`):** Automatically splits long transcripts into configurable word-count chunks with `[MM:SS]` timestamp anchors ready for LangChain, n8n, Make.com, Pinecone, or Qdrant.
- **On-the-Fly Auto-Translation (`translateToLanguage`):** Translate any video's captions into English, Spanish, French, German, Hindi, Japanese, and 100+ languages automatically.
- **Auto-Parsed Video Chapters & Full Metadata:** Captures `chapters`, `keywords`, `durationFormatted`, `readingTimeMinutes`, `thumbnailUrl`, `viewCount`, `isLive`, `isShorts`, and `availableLanguages` on every video.
- **Flexible Bulk Inputs:** Accepts standard `watch?v=`, `youtu.be/`, `/shorts/`, `/live/`, `/embed/`, or raw 11-character video IDs at scale.

### Important Note on Proxies

YouTube blocks unauthenticated cloud datacenter IPs on transcript requests. Keep **Apify Proxy (Residential group)** enabled in **Proxy Configuration** (pre-selected by default) or provide your own residential HTTP/HTTPS proxy in **Custom HTTP/HTTPS Proxy URL** for 100% reliable extraction.

### Input Example

```json
{
  "videoUrls": [
    "https://youtube.com",
    "jNQXAC9IVRw"
  ],
  "preferredLanguage": "en",
  "translateToLanguage": "",
  "captionPreference": "manual_first",
  "includeSegments": true,
  "includeSrtAndVtt": false,
  "ragChunkWords": 250,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  },
  "maxConcurrency": 5
}
```

### Output Example

```json
{
  "videoId": "jNQXAC9IVRw",
  "url": "https://youtube.com",
  "title": "Me at the zoo",
  "channelName": "jawed",
  "channelId": "UC4QobU6STFB0P71PMvOGN5A",
  "thumbnailUrl": "https://ytimg.com",
  "durationSeconds": 19,
  "durationFormatted": "00:19",
  "viewCount": 448763375,
  "isLive": false,
  "isShorts": false,
  "keywords": ["me at the zoo", "jawed karim"],
  "chapters": [],
  "language": "en",
  "translatedTo": null,
  "isAutoGenerated": false,
  "availableLanguages": ["en", "es", "fr"],
  "wordCount": 39,
  "readingTimeMinutes": 0.2,
  "segmentCount": 6,
  "transcriptText": "All right, so here we are in front of the elephants...",
  "segments": [
    { "start": 1.2, "duration": 3.4, "timestamp": "01:02", "text": "All right, so here we are in front of the elephants" }
  ],
  "ragChunks": [
    { "start": 1.2, "end": 19.0, "timestamp": "00:01", "text": "All right, so here we are in front of the elephants..." }
  ],
  "status": "success"
}
```

# Actor input Schema

## `videoUrls` (type: `array`):

List of YouTube watch URLs, youtu.be links, Shorts URLs, or 11-character video IDs.

## `preferredLanguage` (type: `string`):

Preferred ISO 639-1 language code (e.g., en, es, fr, de, ja). Falls back to first available track.

## `translateToLanguage` (type: `string`):

Optional target ISO language code (e.g., en, es, fr) to auto-translate captions. Leave empty for original.

## `captionPreference` (type: `string`):

Prioritize creator-uploaded manual captions or auto-generated speech captions.

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

Include start/duration/timestamp/text array for every caption line.

## `includeSrtAndVtt` (type: `boolean`):

Generate ready-to-use SubRip (.srt) and WebVTT (.vtt) subtitle strings.

## `ragChunkWords` (type: `integer`):

Split transcript into timestamped LLM/RAG chunks of N words (e.g. 250). Set 0 to disable.

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

YouTube blocks cloud datacenter IPs. Keep Apify Residential Proxy enabled for reliable extraction.

## `customProxyUrl` (type: `string`):

Optional external proxy URL (e.g. http://user:pass@host:port) if not using Apify Proxy.

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

Maximum parallel HTTP requests (1 to 15).

## Actor input object example

```json
{
  "videoUrls": [
    "dQw4w9WgXcQ",
    "jNQXAC9IVRw"
  ],
  "preferredLanguage": "en",
  "translateToLanguage": "",
  "captionPreference": "manual_first",
  "includeSegments": true,
  "includeSrtAndVtt": false,
  "ragChunkWords": 250,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "customProxyUrl": "",
  "maxConcurrency": 5
}
```

# Actor output Schema

## `dataset` (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 = {
    "videoUrls": [
        "dQw4w9WgXcQ",
        "jNQXAC9IVRw"
    ],
    "preferredLanguage": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("apex_scrapers/youtube-video-transcript-caption-metadata-bulk-extractor-pro").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 = {
    "videoUrls": [
        "dQw4w9WgXcQ",
        "jNQXAC9IVRw",
    ],
    "preferredLanguage": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("apex_scrapers/youtube-video-transcript-caption-metadata-bulk-extractor-pro").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 '{
  "videoUrls": [
    "dQw4w9WgXcQ",
    "jNQXAC9IVRw"
  ],
  "preferredLanguage": "en"
}' |
apify call apex_scrapers/youtube-video-transcript-caption-metadata-bulk-extractor-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apex_scrapers/youtube-video-transcript-caption-metadata-bulk-extractor-pro"
        }
    }
}
```

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/ISGRO8AoJvB8qLNyR/builds/GYWfGypXRl3nHr1m1/openapi.json
