# YouTube Transcript, Slide/Code OCR & AI Chapters Scraper (`tweezing/youtube-transcript-ocr-chapters`) Actor

Works even when YouTube captions are disabled! Extracts verbatim spoken transcript, on-screen slide/code/chart text (OCR), auto-generated timestamped chapters, executive summary, and key takeaways from YouTube videos & Shorts. Zero IP blocks, no API keys required.

- **URL**: https://apify.com/tweezing/youtube-transcript-ocr-chapters.md
- **Developed by:** [Tweezing Labs](https://apify.com/tweezing) (community)
- **Categories:** AI, Videos, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $65.00 / 1,000 youtube video analyzed (per started 5m block)s

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, Slide/Code OCR & AI Chapters Scraper — Works Even Without Captions!

Standard YouTube transcript scrapers rely on scraping hidden subtitle XML/JSON endpoints:

- They **fail with empty results** whenever captions or auto-subtitles are disabled by the creator.
- They hit frequent **429 / datacenter IP blocks** from YouTube.
- They are **blind to presentation slides, code snippets, terminal commands, charts, and URLs** shown on screen.

This Actor uses **native Multimodal Video & Audio AI** directly over YouTube streams:

1. **100% Caption-Independent Verbatim Transcript (`spokenTranscript` + `timestampedSegments`)**
2. **Slide, Code & Visual OCR (`slidesAndCodeOcr`)** — captures every slide bullet, code block, CLI command, metric, and URL displayed visually in tutorials, keynotes, and product demos!
3. **Auto-Generated Timestamped Chapters (`chapters`)** — structured `{ startSec, title, summary }` chapters even on unchaptered videos.
4. **LLM / RAG-Ready `executiveSummary` & `keyTakeaways`** — ready to pipe straight into Claude, Cursor, Notion, Obsidian, Make, or n8n.

***

### Use Directly from Claude Code, Cursor & MCP

```bash
claude mcp add --transport http youtube-ocr-transcript "https://mcp.apify.com?tools=tweezing/youtube-transcript-ocr-chapters"
```

***

### Transparent Pay-Per-Event Pricing

- **$0.065 per started 5-minute block of analyzed YouTube video** ($65.00 per 1,000 standard 0–5m videos — spoken transcript + slide/code OCR + chapters + summary all included).
- Supports long-form lectures, podcasts, and tutorials up to **60 minutes** (`maxVideoDurationMinutes`, default 30m). Videos exceeding your configured limit are processed up to the limit and clearly flagged via `wasTruncated` and `truncationNotice`.
- **Zero charge** on private, deleted, or invalid URLs.

# Actor input Schema

## `urls` (type: `array`):

Paste YouTube watch URLs, YouTube Shorts URLs, youtu.be links, or 11-character Video IDs. Works even on videos with captions turned OFF!

## `maxVideoDurationMinutes` (type: `integer`):

Maximum minutes to analyze per video (up to 60 minutes; long videos are automatically split into 5-minute parallel windows via async background workers). Billing is 1 youtube-analyzed unit per started 5 minutes of analyzed video (0–5m = 1 unit; 25m = 5 units).

## `targetLanguage` (type: `string`):

Keep 'original' for English summaries/chapters + original-language verbatim transcript, or enter any language (e.g. 'Turkish', 'Spanish', 'German', 'Japanese') to translate executive summaries, chapters, and key takeaways.

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

How many YouTube videos to process simultaneously.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "maxVideoDurationMinutes": 30,
  "targetLanguage": "original",
  "maxConcurrency": 5
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("tweezing/youtube-transcript-ocr-chapters").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 = { "urls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"] }

# Run the Actor and wait for it to finish
run = client.actor("tweezing/youtube-transcript-ocr-chapters").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 '{
  "urls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ]
}' |
apify call tweezing/youtube-transcript-ocr-chapters --silent --output-dataset

```

## MCP server setup

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

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/sghUmeBac7mLfAevs/builds/RvinN1k1un2RwB2Vs/openapi.json
