# Kuantum Video Transcript Scraper — Multi-Site (`kuantum/video-transcript-scraper`) Actor

Extract transcripts from YouTube, Vimeo, TED, and 1000+ captioned sites with Kuantum Video Transcript Scraper. Get JSON, Markdown, and RAG-ready chunks with pay-per-result delivery. Start your first run today.

- **URL**: https://apify.com/kuantum/video-transcript-scraper.md
- **Developed by:** [\[R\] Kuantum](https://apify.com/kuantum) (community)
- **Categories:** AI, Videos, Social media
- **Stats:** 4 total users, 3 monthly users, 91.8% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

# Actor input Schema

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

One or more video URLs, OR channel/playlist URLs (expanded into their videos — see Max videos per list). Production-verified transcript support: YouTube and TED. Vimeo and other caption-bearing sites are best-effort until explicitly verified.

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

Preferred subtitle language code (ISO, e.g. 'en', 'es', 'fr', 'de', 'pt'). Falls back to the closest available variant (e.g. es → es-419) when the exact code is missing.

## `includeAutoCaptions` (type: `boolean`):

When no human-made subtitle track exists, fall back to the platform's machine-generated captions.

## `outputFormats` (type: `array`):

Which representations to include in each result. 'chunks' produces token-aware, embedding-ready segments for RAG / conversational agents.

## `chunkTokens` (type: `integer`):

Token budget per RAG chunk (used only when 'chunks' is selected). Enforced with a real tokenizer — see 'Tokenizer' — so it is accurate even for CJK/emoji/code.

## `tokenizer` (type: `string`):

Tokenizer for chunk sizing + token\_estimate. 'o200k' (GPT-4o / text-embedding-3) and 'cl100k' (ada-002 / GPT-3.5-4) are exact via tiktoken and a good proxy for Claude/Gemini; 'chars' is the fast chars/4 heuristic (under-counts CJK).

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

Optionally also return the transcript translated to this language (e.g. 'es', 'fr'). Best-effort and YouTube-only — uses YouTube's auto-translation, which isn't offered for every video/language. Adds a second extraction per video; result appears under 'translated' (null when unavailable).

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

Include the per-segment start/end array in the JSON output.

## `bestEffort` (type: `boolean`):

Log extra diagnostic detail when captions are unavailable. No dataset item is written and no transcript-result charge occurs for unavailable captions.

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

How many videos to process in parallel.

## `maxVideosPerList` (type: `integer`):

When a channel/playlist URL is given, transcribe at most this many of its videos (most recent first). A total ceiling of 1000 videos per run also applies.

## `priorityProcessing` (type: `boolean`):

Use the priority queue for a batch. This option is charged only when a transcript is successfully delivered and requires the published priority add-on to be active.

## `webhookUrl` (type: `string`):

Optional HTTPS endpoint that receives one signed JSON summary after a successful run. Provide webhookSecret too.

## `webhookSecret` (type: `string`):

Shared secret (16+ characters). The final webhook includes an HMAC SHA-256 signature in X-Apify-Transcript-Signature.

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

Apify Proxy settings. Defaults to RESIDENTIAL for reliable YouTube extraction. You can choose DATACENTER for lower-cost experiments on platforms where it works.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "language": "en",
  "includeAutoCaptions": true,
  "outputFormats": [
    "json",
    "text",
    "markdown",
    "chunks"
  ],
  "chunkTokens": 400,
  "tokenizer": "o200k",
  "includeTimestamps": true,
  "bestEffort": false,
  "maxConcurrency": 5,
  "maxVideosPerList": 20,
  "priorityProcessing": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ],
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kuantum/video-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 = {
    "videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "language": "en",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("kuantum/video-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 '{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call kuantum/video-transcript-scraper --silent --output-dataset

```

## MCP server setup

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