# YouTube Transcript Scraper · Timestamps & Chapters ($1.20/1k) (`tokenkite/youtube-transcript-intel`) Actor

Extract full YouTube transcripts, millisecond-aligned segments, description chapters, and channel metadata with zero browser overhead. Captionless and unavailable videos incur zero result charges.

- **URL**: https://apify.com/tokenkite/youtube-transcript-intel.md
- **Developed by:** [TokenKite Labs](https://apify.com/tokenkite) (community)
- **Categories:** Videos, Social media, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.20 / 1,000 video 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/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

### What does YouTube Transcript Scraper do?

Turn public [YouTube](https://www.youtube.com/) video URLs into **full transcripts, millisecond-aligned captions, description chapters, and channel metadata** via pure InnerTube HTTP requests, with a target **55 KB wire footprint** and **sub-second extraction** for lightweight single-video requests at **256 MB RAM**, with zero headless Chrome overhead (actual timings and payloads vary by caption length, network, and proxy).

### What does a transcript result look like?

Each unique video with public captions produces one dataset item. Use `transcript_text` for search or summarization, `segments` to link to a quote, and `chapters` to split a long video by topic. This shortened example for `aircAruvnKk` illustrates an English caption result. The dataset contains the full selected track and all detected chapters.

```json
{
  "video_id": "aircAruvnKk",
  "video_url": "https://www.youtube.com/watch?v=aircAruvnKk",
  "title": "But what is a neural network? | Deep learning chapter 1",
  "channel_name": "3Blue1Brown",
  "channel_id": "UCYO_jab_esuFRV4b17AJtAw",
  "duration_seconds": 1120,
  "view_count": 25531643,
  "is_live": false,
  "thumbnail_url": "https://i.ytimg.com/vi_webp/aircAruvnKk/sddefault.webp",
  "language_code": "en",
  "language_name": "English",
  "is_auto_generated": false,
  "available_languages": ["en", "ar", "bn", "zh", "zh-CN"],
  "transcript_text": "This is a 3. It's sloppily written and rendered at an extremely low resolution of 28x28 pixels,",
  "word_count": 17,
  "segment_count": 2,
  "segments": [
    {"start_ms": 4220, "duration_ms": 1180, "start_seconds": 4.22, "text": "This is a 3."},
    {"start_ms": 6060, "duration_ms": 4653, "start_seconds": 6.06, "text": "It's sloppily written and rendered at an extremely low resolution of 28x28 pixels,"}
  ],
  "chapters": [
    {"start_seconds": 0, "timestamp": "00:00", "title": "Introduction example"},
    {"start_seconds": 67, "timestamp": "01:07", "title": "Series preview"}
  ]
}
```

Browse the overview in **Storage → Dataset**. Export as JSON to preserve nested timestamps and chapters.

### How much does it cost?

Apify Pay Per Event (PPE) costs **$1.20 / 1,000 videos** successfully written to the dataset. Channel metadata, description chapters, and timestamps are included in every result where available. For comparison, other transcript scrapers can cost **$2.75–$10.00/1k**, with separate metadata add-ons of **$3.00/1k**.

| Event | Result fees |
| --- | ---: |
| Start fee | **$0** |
| 100 videos with transcripts | **$0.12** |
| 1,000 videos with transcripts across multiple runs | **$1.20** |
| Captionless, private, deleted, or otherwise unavailable video | **$0** |

A run's maximum charge limits how many items are published. The `PUBLICATION` receipt records the validated count, delivered count, and charge count.

### What inputs can I use?

| Parameter | How to use it |
| --- | --- |
| `videos` | Required list of public watch, `youtu.be`, Shorts, live, or embed URLs, or 11-character IDs. Try `https://www.youtube.com/watch?v=aircAruvnKk`. Duplicate IDs count once. |
| `language` | Preferred caption code, such as `en`, `es`, `ja`, or `zh-Hans`. Defaults to `en`. If no exact match exists, the Actor tries a related or available track and reports the actual `language_code`. |
| `max_videos` | Maximum unique videos to extract, from 1 to 500 (default: 50). |
| `proxyConfiguration` | Defaults to a direct connection on Apify, with a residential proxy for retries when available. Set proxy groups or custom proxy URLs to use them for initial requests. |

Enter your videos in the **Input** tab and click **Start**. The Actor reads only publicly accessible caption tracks and public video/channel metadata; no login or cookies are needed. It skips unavailable videos. Use captions in accordance with applicable laws, YouTube's terms, and the rights of the content owner.

### How can an AI agent call it?

- **x402:** Request `GET https://datatoll.app/v1/extract/youtube-transcript-intel?video=aircAruvnKk&language=en`. An x402 client can accept the `402` quote and pay **$0.006 USDC** on Base for up to 10 videos per call.
- **MCP:** Use `npx -y datatoll-mcp` as a stdio server and call `extract_youtube_transcript_intel` with `{"video":"aircAruvnKk","language":"en"}`. For a free preview, connect to `https://datatoll.app/mcp/free` and call `preview_datatoll_sample` with `{"source":"youtube_transcript_intel","video":"aircAruvnKk"}`.

# Actor input Schema

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

One or more public YouTube video URLs (watch, youtu.be, shorts, live, embed) or 11-character video IDs.

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

ISO language code such as en, es, ja, zh-Hans (automatically falls back to primary available caption track if exact match is unavailable).

## `max_videos` (type: `integer`):

Maximum number of unique videos to extract in this run.

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

On Apify, requests start with a direct connection by default and can retry through a residential proxy. Set proxy groups or custom proxy URLs to use them for initial requests.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=aircAruvnKk",
    "https://www.youtube.com/watch?v=zjkBMFhNj_g"
  ],
  "language": "en",
  "max_videos": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

One item per video with a public caption track, including timestamps, chapters, and channel metadata.

## `publication` (type: `string`):

Validated batch SHA-256 digest, delivery and charge counts, and budget limit status.

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

// Run the Actor and wait for it to finish
const run = await client.actor("tokenkite/youtube-transcript-intel").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=aircAruvnKk",
        "https://www.youtube.com/watch?v=zjkBMFhNj_g",
    ],
    "language": "en",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tokenkite/youtube-transcript-intel").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=aircAruvnKk",
    "https://www.youtube.com/watch?v=zjkBMFhNj_g"
  ],
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tokenkite/youtube-transcript-intel --silent --output-dataset

```

## MCP server setup

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

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/bvzpLxbZutPFgEgZ4/builds/Q0muUB5zOs5M28CLa/openapi.json
