# YouTube Transcript Scraper with AI Fallback (`iddqd/tubescribe`) Actor

Get YouTube transcripts for any video, Short, playlist or channel. Official captions first, automatic Whisper AI fallback when a video has none. Full videos up to 3 h, 99 languages, SRT or plain text, MCP-ready for AI agents, cached discounts, and free error rows for failed videos.

- **URL**: https://apify.com/iddqd/tubescribe.md
- **Developed by:** [Denis Barzakovsky](https://apify.com/iddqd) (community)
- **Categories:** AI, Videos, Social media
- **Features:** Limited permissions
- **Stats:** 3 total users, 3 monthly users, 99.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.55 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper with AI Fallback

**Get a timestamped transcript for any YouTube video — including videos with no captions at all.**

TubeScribe is a YouTube transcript API with no YouTube API key, no proxy and no OpenAI key. Paste video,
Shorts, playlist or channel URLs: you get the official captions when they exist, and an automatic
Whisper AI transcript when they don't. You pay only for transcripts that were actually delivered.

- ✅ **Captions first, AI only when needed** — one actor, one run, no second tool for caption-less videos.
- ⏱️ **Whole videos up to 3 hours**, 99 languages, language detected per 10-minute chunk.
- 💸 **Fair billing** — failed, private and silent videos are free error rows; cached transcripts are cheaper; restarts never double-charge.
- 🤖 **Built for LLMs** — timestamped segments, plain text or SRT, callable from Claude, Cursor and ChatGPT via MCP.

### What does YouTube Transcript Scraper do?

For every YouTube URL you give it, TubeScribe:

1. **Expands** playlists and channels into their videos (up to 1,000 per run) and de-duplicates them.
2. **Picks the tracks** you asked for: the default track, specific languages, or every caption language.
3. **Fetches official captions** (manual or auto-generated) with YouTube's own timestamps.
4. **Falls back to AI speech-to-text** when a video has no captions. Turn it off with `aiFallback: false` and such videos become free error rows.
5. **Pushes one dataset row per video and track** — a transcript, or a non-charged error with the reason.

Export as **JSON, CSV, Excel, XML or HTML**, or read it through the API, webhooks, Make, Zapier or n8n.

### What data can you extract from YouTube?

| **Transcript** | **Video** | **Run details** |
|---|---|---|
| 📝 Full text (`text`) | 📺 Title | 🧠 Source: captions or AI |
| ⏱️ Timestamped segments | 👤 Channel | ♻️ Served from cache |
| 🎞️ SRT subtitle file | ⌛ Duration | ✂️ Truncated by budget |
| 🌐 Language | 🔗 URL and video ID | ⚠️ Error code and reason |
| 🗂️ All caption tracks | | |

#### Can I get transcripts of YouTube Shorts, playlists and whole channels?

Yes. Paste any video, Shorts, playlist or channel URL — TubeScribe expands playlists and channels into videos and transcribes each one, with or without captions.

### How does YouTube Transcript Scraper work?

It does what you'd do by hand, at scale: open the video, check which captions exist, copy them with timestamps — and if there are none, listen to the audio and type it out.

- Reads the video page and its list of caption tracks
- Downloads the captions you asked for, with YouTube's timestamps
- If there are no captions, downloads the audio and transcribes it with Whisper large-v3-turbo, 10 minutes at a time
- Cleans out Whisper's typical "hallucinations" over silence and music
- Saves one row per video and language, ready to export

### Why use TubeScribe?

| Feature | Typical transcript scraper | TubeScribe |
|---|---|---|
| Video without captions | Error item, or AI behind an opt-in switch | **Automatic AI fallback**, and `aiFallback: false` to switch it off and pay nothing |
| Long videos on AI | Often capped (for example 30–120 min, or per-run minute limits) | **Full video up to 3 hours**, cached whole |
| Mixed-language video | One forced language | **Language detected per 10-minute chunk** |
| Every caption language of a video | One language per run | **`tracks: ["all"]`**: one item per language |
| Silence on AI | Whisper "hallucinations" ("Thank you.", loops) | **Hallucination filter**; no-speech videos are free |
| Repeat requests | Full price every time | **Cached transcripts at a discount** |
| AI price | Often $0.01+ per minute | **From $0.0045 per minute** |
| Cost control | Run timeout only | **`budgetSeconds`** per video plus the run's **maximum cost** |
| Run restarted by the platform | May push or charge again | **Each item delivered and charged once** |

### What can you do with YouTube transcripts?

#### 🤖 Feed LLMs, RAG and AI agents

Turn channels, courses and podcasts into timestamped text for embeddings, summaries and Q\&A. Segments carry start/end seconds, so answers can cite the exact moment.

**Recommended approach:**

- Use a channel or playlist URL with `maxItems`, `outputFormats: ["text"]`
- Use the **📄 Plain text** view, or the segments for chunking with timestamps
- Pipe into LangChain, LlamaIndex or your vector DB

#### ✍️ Repurpose videos into content and SEO

Turn videos into blog posts, newsletters, threads and show notes, or mine what competitors say.

**Recommended approach:** one-off runs on selected videos; export the **📄 Plain text** view to Docs or Sheets.

#### 📊 Research and monitoring

Build multilingual corpora from interviews, lectures and news, or track what a channel says over time.

**Recommended approach:**

- **Schedule** a daily or weekly run on a channel; repeat videos come from cache at a lower price
- Connect a webhook to Slack, Sheets or a database
- Each run is a timestamped dataset — your own transcript history

#### ♿ Accessibility and localization

Get transcripts for videos that never had captions, or every existing caption language in one run (`tracks: ["all"]`), and download them as **🎞️ SRT**.

### How to scrape YouTube transcripts

1. [Create a free Apify account](https://console.apify.com/sign-up) — the Free plan includes monthly platform credit.
2. Open [YouTube Transcript Scraper](https://apify.com/iddqd/tubescribe) and click **Try for free**.
3. Paste one or more video, Shorts, playlist or channel URLs into **Start URLs**.
4. Keep **Mode: Official captions** (AI fallback included) or pick **Transcribe with AI**.
5. Click **Start** and download your transcripts as JSON, CSV, Excel or SRT text.

### ⬇️ Input example

Fill the form in Apify Console or paste JSON. Full details are on the [Input tab](https://apify.com/iddqd/tubescribe/input-schema).

The form has three sections:

- **🎬 Videos** — Start URLs, Maximum items
- **🗣️ Transcript** — Mode, Language, Tracks, AI fallback
- **📤 Output and cost** — Output formats, Budget seconds, Force refresh, Concurrency

#### How to get transcripts for single videos and Shorts

```json
{ "startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }, { "url": "https://youtu.be/dQw4w9WgXcQ" }] }
```

Supported URLs: `youtube.com/watch?v=…`, `youtu.be/…`, `youtube.com/shorts/…`, `m.youtube.com/…`.

#### How to transcribe a whole channel or playlist

```json
{ "startUrls": [{ "url": "https://www.youtube.com/@TED" }], "maxItems": 200, "concurrency": 8 }
```

Channels are read from the **Videos** tab, newest first. `maxItems` caps the run.

#### How to transcribe YouTube videos without captions (AI)

```json
{ "startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }], "mode": "ai" }
```

Captions mode already falls back to AI automatically; `mode: "ai"` forces AI even when captions exist (useful for poor auto-captions).

#### How to get subtitles in a specific language, or every language

```json
{ "startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }], "tracks": ["en", "de", "es"] }
```

`tracks: ["all"]` returns one row per caption language. `language: "de"` asks for German.

#### How to get plain text or SRT files

```json
{ "startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }], "outputFormats": ["text", "srt"] }
```

Free: both are rendered from the segments you already pay for.

#### How to preview long videos cheaply

```json
{ "startUrls": [{ "url": "https://www.youtube.com/@handle" }], "mode": "ai", "maxItems": 20, "budgetSeconds": 300 }
```

#### All input fields

| Field | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array of `{ "url": … }`, **required** | `[{"url":"https://youtu.be/jNQXAC9IVRw"}]` | 1–1,000 YouTube video, Shorts, playlist or channel URLs (`youtube.com`, `m.youtube.com`, `youtu.be`). Duplicates are removed. |
| `maxItems` | integer, 1–1,000 | `100` | The most dataset items (video × track) this run produces. It also caps how many videos are read from each playlist or channel. |
| `mode` | `"captions"` or `"ai"` | `"captions"` | `captions` uses the official track and falls back to AI when a video has no captions. `ai` always transcribes the audio. Billing follows the source that actually answered. |
| `language` | string (BCP 47, for example `en`, `de`, `pt-BR`) | not set | The language you want. Not set: the video's default track for captions, and auto-detection for AI. When set, the AI is told to transcribe in that language, so set it only to a language that is actually spoken in the video. |
| `tracks` | array of strings | `["original"]` | `original` gives one item per video in its default language. `all` gives one item per caption language the video offers. Language codes (for example `["en","es","de"]`) give one item per code. You can list up to 100 entries, and each one becomes its own item and charge. |
| `concurrency` | integer, 1–16 | `4` | How many videos are processed in parallel. |
| `budgetSeconds` | integer, 1–3,600 | not set | Media seconds to transcribe per item. The transcript is cut at that point (`truncated: true`, `truncatedReason: "budget"`), and AI minutes are billed only for what was delivered. |
| `forceRefresh` | boolean | `false` | Ignore cached transcripts and read the video again. Billed at the full (not cached) price. |
| `aiFallback` | boolean | `true` | Only for `mode: "captions"`. On: a video without captions is transcribed with AI and billed as AI minutes. Off: such a video ends as an error item (`unsupported_format`, or `bad_request` for a language the video has no track in) and costs nothing. `mode: "ai"` ignores it. |
| `outputFormats` | array of `"text"` and `"srt"`, no repeats, up to 2 | `[]` | Derived readings to add to every transcript item: `text` is the transcript as one plain-text string, `srt` is it as a SubRip subtitle file. Both render the `snapshot.segments` the item already carries, so they cost nothing. |

### ⬆️ Output example

Results land in the **Output** tab as a table or JSON, while the run is still going. Pick the view that fits your job:

- **📝 Transcripts** (default) — one row per video and language: title, channel, language, source, duration, cache
- **📄 Plain text** — URL, language and the full `text`; best for LLMs and docs
- **🎞️ SRT subtitles** — URL, language and the `srt` file
- **⚠️ Errors** — failed videos with `error.code` and reason (never charged)
- **All fields** — every field, including timestamped segments and tracks (export the whole dataset)

Before exporting you can pick or omit fields and download JSON, CSV, Excel, XML or HTML.

#### JSON view

```json
{
  "status": "ok",
  "itemId": "ts_1926c30bdee3cbf4",
  "at": "2026-10-31T10:36:31.715807Z",
  "source": "captions",
  "fromCache": true,
  "snapshot": {
    "itemId": "ts_32ca514afa1fb227",
    "videoId": "jNQXAC9IVRw",
    "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "title": "Me at the zoo",
    "channel": "jawed",
    "durationSeconds": 19,
    "language": "en",
    "tracks": [
      { "kind": "captions", "language": "de", "autoGenerated": false, "preferred": false },
      { "kind": "captions", "language": "de", "autoGenerated": true, "preferred": false },
      { "kind": "captions", "language": "en", "autoGenerated": false, "preferred": true },
      { "kind": "captions", "language": "en", "autoGenerated": true, "preferred": true }
    ],
    "segments": [
      { "index": 0, "start": 1.2, "end": 3.36, "text": "All right, so here we are, in front of the\nelephants" },
      { "index": 1, "start": 5.318, "end": 7.974, "text": "the cool thing about these guys is that they\nhave really..." },
      { "index": 2, "start": 7.974, "end": 12.616, "text": "really really long trunks" },
      { "index": 3, "start": 12.616, "end": 14.367, "text": "and that's cool" },
      { "index": 4, "start": 14.421, "end": 15.733, "text": "(baaaaaaaaaaahhh!!)" },
      { "index": 5, "start": 16.881, "end": 18.881, "text": "and that's pretty much all there is to\nsay" }
    ],
    "segmentCount": 6,
    "truncated": false,
    "complete": true,
    "hasMore": false,
    "createdAt": "2026-10-31T09:03:56.081780Z"
  },
  "truncated": false
}
```

A failure entry is not a transcript charge: it says which work item failed and why.

```json
{
  "status": "error",
  "videoId": "jNQXAC9IVRw",
  "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
  "track": "original",
  "language": "en",
  "error": {
    "code": "private_video",
    "message": "the video is private"
  }
}
```

#### Transcript item fields

| Field | Type | Description |
|---|---|---|
| `status` | string | `ok` for a delivered transcript entry. |
| `itemId` | string | ID of this delivery (`ts_…`). |
| `at` | date-time | When the transcript was delivered. |
| `source` | string | Where the transcript came from: `captions` (YouTube's own captions) or `ai` (TubeScribe transcribed the audio). Billing follows this. |
| `fromCache` | boolean | `true` when the transcript was served from the TubeScribe cache and billed at the cached price. |
| `snapshot.videoId` | string | 11-character YouTube video ID. |
| `snapshot.url` | string | Canonical watch URL. |
| `snapshot.title` | string | Video title. |
| `snapshot.channel` | string | Channel name. |
| `snapshot.durationSeconds` | integer | Video length in seconds. |
| `snapshot.language` | string | Language of the transcript. |
| `snapshot.tracks[]` | array | Tracks the video offers: `kind` (`captions` or `audio`), `language`, `autoGenerated`, `preferred`, `label`. |
| `snapshot.segments[]` | array | The transcript: `index`, `start` and `end` (seconds), `text`, and `confidence` (0–1) when available. |
| `snapshot.segmentCount` | integer | How many segments the transcript has. |
| `snapshot.complete` | boolean | `true` when the segments cover the whole video. |
| `snapshot.hasMore` | boolean | `true` when the item holds only part of the stored transcript (see Limits). |
| `snapshot.createdAt` | date-time | When this transcript was produced. A date older than the run means it came from the cache. |
| `truncated` | boolean | `true` when `budgetSeconds` cut the transcript short. |
| `truncatedReason` | string | `budget`, when `truncated` is `true`. |
| `fullDurationSec` | integer | Length of the full transcript that a truncated answer was cut from. |
| `charge` | object | The billing record of this item (`state`, `costMicros` in millionths of a dollar, `chargedCount`, …). Every delivered item has one, on a free plan as on a paid one. |
| `text` | string | The transcript as one plain-text string, when `outputFormats` asked for `text`: each segment's whitespace collapsed, the segments joined with single spaces. Absent when not asked for, and never on an error item. |
| `srt` | string | The transcript as a SubRip subtitle file, when `outputFormats` asked for `srt`: numbered blocks of `start --> end` timestamps and the segment's own lines. Absent when not asked for, and never on an error item. |

#### Error item fields

| Field | Type | Description |
|---|---|---|
| `status` | string | `error` for a failed or not-started work item. |
| `videoId` | string | 11-character YouTube video ID. |
| `url` | string | Canonical watch URL. |
| `track` | string | Work item track, such as `original` or a language code. |
| `language` | string | Optional language asked for, when the input named one. |
| `at` | date-time | Optional time the failure was reported. |
| `error.code` | string | Machine-readable failure code, such as `private_video`, `no_speech`, `rate_limited`, `WATCHDOG_TIMEOUT` or `NOT_STARTED`. |
| `error.message` | string | Human-readable failure message safe to show. |

Set `outputFormats` to get `text` and/or `srt` on every item. The **Output** tab and API
exports let you flatten or pick fields; CSV and Excel exports include the segments as columns.

#### Error codes reference

Every error row is free. The `error.code` tells you why the video failed:

| `error.code` | Meaning |
|---|---|
| `private_video` | The video is private |
| `age_restricted` | The video is age-restricted and needs a login |
| `forbidden` | Members-only or geo-blocked |
| `not_found` | Deleted or unavailable, or a live or upcoming stream |
| `no_speech` | The AI found no speech in the audio |
| `unsupported_format` | The video has no captions and `aiFallback` is off |
| `bad_request` | The request can't be served, for example a language the video has no captions in |
| `rate_limited`, `budget_exhausted`, `conflict`, `upstream_error` | A temporary limit, or YouTube or the AI kept failing after automatic retries — run it again later |
| `NOT_STARTED` | The run stopped starting new videos, for example at its maximum cost |
| `WATCHDOG_TIMEOUT`, `CONNECTION_LOST`, `NO_TERMINAL_EVENT`, `RUN_TIMEOUT` | The job stalled or the connection dropped — run it again |
| `internal` | Our bug — please open an issue with the video URL |

### 💰 How much does it cost to scrape YouTube transcripts?

Pay per event: you pay for delivered transcripts, not compute, proxies or run time.

| Event | Charged for | Free / Bronze | Silver | Gold |
|---|---|---|---|---|
| `transcript` | each new transcript (one video × track) | $0.004 | $0.00375 | $0.0035 |
| `transcript-cached` | each transcript served from cache | $0.0015 | $0.0015 | $0.0015 |
| `ai-minute` | each started minute of new AI transcript | $0.006 | $0.005 | $0.0045 |
| `ai-minute-cached` | each started minute of cached AI transcript | $0.003 | $0.0025 | $0.002 |
| `apify-actor-start` | each run | $0.0005 | $0.0005 | $0.0005 |

The current prices for your plan are always shown on the actor's **Pricing** tab. Free Apify plans
are charged the same events at the same moments, and pay them from the free monthly credit of the
account: only the prices differ between plans.

**Never charged:** videos that fail, private, members-only, age-restricted or unavailable videos,
videos with no speech, and items the run never started. These failures are pushed as `status: error`
dataset entries, but they never claim, charge or confirm a billing event.

An AI item pays one `transcript` event plus its AI minutes. A captions item pays the `transcript`
event only, however long the video is. AI minutes are counted per started minute of transcript
actually delivered: 60 s is 1 minute and 61 s is 2. With `budgetSeconds`, you pay only for the cut
you received.

#### Cost examples (Free / Bronze prices, start fee not included)

| Job | Cost | On Gold |
|---|---|---|
| 1,000 videos with captions | **$4.00** | $3.50 |
| 1,000 videos with captions, all from cache | **$1.50** | $1.50 |
| One 10-minute video, AI | **$0.064** | $0.0485 |
| 1,000 ten-minute videos, AI | **$64.00** | $48.50 |
| 1 hour of audio, AI (one 60-min video) | **$0.364** | $0.2735 |
| 1 hour of audio, AI, from cache | **$0.1815** | $0.1215 |

**Try it free:** the Apify Free plan includes $5 of monthly usage — enough for about 1,200 caption transcripts every month.

#### 💡 Cost optimization tips

- **Max total charge** in run options — TubeScribe reserves each video's expected cost and stops before your limit.
- **`budgetSeconds`** caps the transcribed (and billed) length per video.
- **`maxItems`** caps transcripts per run.
- **Captions mode** keeps caption videos at the flat `transcript` price; use `mode: "ai"` only when captions are poor.
- **Turn off `aiFallback`** if you only want existing captions — caption-less videos then cost nothing.
- **Re-run instead of `forceRefresh`** — cached transcripts cost 50–60% less.
- **Schedule weekly, not daily,** for slow channels.

### 🔌 Integrations

Connect TubeScribe to [Make](https://docs.apify.com/platform/integrations/make), [Zapier](https://docs.apify.com/platform/integrations/zapier), [n8n](https://docs.apify.com/platform/integrations/n8n), [Google Sheets](https://docs.apify.com/platform/integrations), Slack, Airbyte, [LangChain](https://docs.apify.com/platform/integrations/langchain) and LlamaIndex, or trigger anything with [webhooks](https://docs.apify.com/platform/integrations/webhooks) and [schedules](https://docs.apify.com/platform/schedules).

**Example workflow:** schedule a daily run on a channel → webhook on success → n8n/Make posts the transcript summary to Slack.

#### 🐍 Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("iddqd/tubescribe").call(
    run_input={
        "startUrls": [{"url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"}],
        "mode": "captions",
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["status"] != "ok":
        print(item["videoId"], item["error"]["code"])
        continue
    snap = item["snapshot"]
    text = " ".join(s["text"] for s in snap.get("segments") or [])
    print(snap["title"], snap.get("language"), text[:200])
```

#### 🟨 JavaScript / Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('iddqd/tubescribe').call({
    startUrls: [{ url: 'https://www.youtube.com/@handle' }],
    maxItems: 50,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) {
    if (item.status !== 'ok') {
        console.log(item.videoId, item.error.code);
        continue;
    }
    const { snapshot } = item;
    const text = (snapshot.segments ?? []).map((s) => s.text).join(' ');
    console.log(snapshot.title, text.slice(0, 200));
}
```

#### 🌐 cURL — one call, items back

```bash
curl -X POST "https://api.apify.com/v2/acts/iddqd~tubescribe/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls":[{"url":"https://youtu.be/jNQXAC9IVRw"}]}'
```

### 🤖 Use YouTube Transcript Scraper with AI agents (MCP)

Give Claude, Cursor, VS Code or ChatGPT a "get YouTube transcript" tool via the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp):

```json
{
  "mcpServers": {
    "tubescribe": {
      "url": "https://mcp.apify.com?tools=iddqd/tubescribe",
      "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
    }
  }
}
```

Then ask: *"Get the transcript of https://youtu.be/jNQXAC9IVRw and summarize it with timestamps."*
Quick setup: give your MCP client the URL `mcp.apify.com?tools=iddqd/tubescribe`. More options are on the [MCP tab](https://apify.com/iddqd/tubescribe/api/mcp).

### ❓ FAQ

#### Can I get a transcript of a YouTube video that has no captions?

Yes. TubeScribe transcribes the audio with Whisper AI automatically and bills it as AI minutes. Set `aiFallback: false` to get a free error row instead.

#### Which languages are supported?

Captions: every language YouTube offers for the video. AI: the 99 languages of Whisper large-v3-turbo, auto-detected per audio chunk.

#### Does it translate transcripts?

No. You get YouTube's captions or the language actually spoken.

#### How accurate is the AI transcript?

Clear speech is close to human quality. A filter removes the phrases Whisper invents over silence and music. Heavy music, crosstalk and strong accents lower accuracy.

#### How is this different from the YouTube Data API?

The official API only downloads captions for videos you own. TubeScribe reads public captions for any public video and adds AI for videos without them.

#### Can I download YouTube subtitles as SRT?

Yes — set `outputFormats: ["srt"]`, free of charge.

#### How many videos can I transcribe per run?

Up to 1,000 items per run. For more, split the input or schedule several runs.

#### Do Shorts, live streams and premieres work?

Shorts yes. Live streams and premieres once they have ended.

#### Can I get private, members-only or age-restricted videos?

No. They become free error rows.

#### What if I request the same video again?

It is usually served from cache: faster and cheaper.

#### Do I need a proxy or a YouTube/OpenAI API key?

No. Everything is included in the event prices.

#### How often should I schedule runs to monitor a channel?

Daily for news and high-volume channels, weekly for most others. Videos already transcribed are served from cache at the cached price.

#### Can I get transcripts of old videos or build a history?

Yes — any public video, however old. Scheduled runs each create a timestamped dataset, so you can keep a history of a channel.

#### What if a video doesn't work?

It becomes a free error row with the reason. If you think it should work, open an issue on the [Issues tab](https://apify.com/iddqd/tubescribe/issues/open) with the video URL.

#### Is it legal to scrape YouTube transcripts?

TubeScribe only reads publicly available data. Make sure your use complies with YouTube's terms, copyright and personal-data laws such as GDPR. If unsure, consult a lawyer. See also Apify's [blog post on the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

### Are there other YouTube tools in Apify Store?

Combine transcripts with metadata and comments:

<table>
<tr>
<td>📹 <a href="https://apify.com/streamers/youtube-scraper">YouTube Scraper</a></td>
<td>💬 <a href="https://apify.com/streamers/youtube-comments-scraper">YouTube Comments Scraper</a></td>
</tr>
<tr>
<td>🏎 <a href="https://apify.com/streamers/youtube-channel-scraper">Fast YouTube Channel Scraper</a></td>
<td>▶️ <a href="https://apify.com/streamers/youtube-shorts-scraper">YouTube Shorts Scraper</a></td>
</tr>
</table>

### 💬 Feedback and support

Found a bug or need a feature? Open an issue on the [Issues tab](https://apify.com/iddqd/tubescribe/issues/open) — we usually reply within a business day. If TubeScribe saved you time, a ⭐ review helps a lot.

### 📜 Changelog

- **0.1** — initial release: captions with automatic AI fallback, always-AI mode, videos/Shorts/playlists/channels, `tracks`, 3-hour AI, per-chunk language detection, hallucination filter, cached discount, no charge for failures, restart-safe billing.

***

*TubeScribe is an independent tool, not affiliated with, endorsed by or sponsored by YouTube or Google.*

# Actor input Schema

## `startUrls` (type: `array`):

Videos, Shorts, playlists or channels (for example https://www.youtube.com/watch?v=jNQXAC9IVRw, https://youtu.be/…, https://www.youtube.com/@handle). A channel is read from its Videos tab, newest first. Duplicates are removed.

## `maxItems` (type: `integer`):

The most transcripts (video × track) this run delivers. It also caps the videos read from each playlist or channel, so it bounds the cost of a big channel.

## `mode` (type: `string`):

Official captions uses YouTube's captions and switches to AI automatically when a video has no captions (billed as AI minutes). Transcribe with AI always transcribes the audio. Billing follows the source that answered.

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

A BCP 47 code such as en, de or pt-BR. Leave empty to get the video's default captions, or auto-detection for AI. When set, the AI transcribes in this language, so only set a language that is actually spoken in the video.

## `tracks` (type: `array`):

original gives one transcript per video. all gives one transcript per caption language the video offers. Language codes such as en or es give one transcript per code. Each entry is a separate transcript and charge; an entry the actor cannot use is refused when the input is read.

## `aiFallback` (type: `boolean`):

Only for mode captions. On: a video without captions is transcribed with AI and billed as AI minutes. Off: such a video ends as an error item and costs nothing.

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

Derived fields to add to every transcript item: text is the transcript as one plain-text string, srt is it as a SubRip subtitle file. Both render snapshot.segments and cost nothing.

## `budgetSeconds` (type: `integer`):

Transcribe only the first N media seconds of each video, for previews or to cap AI cost. The item is marked truncated, and only the delivered AI minutes are billed. Leave empty for the full video.

## `forceRefresh` (type: `boolean`):

Ignore cached transcripts and read the video again. Billed at the full (not cached) price.

## `concurrency` (type: `integer`):

How many videos are processed at the same time. Higher is faster for big playlists and channels.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://youtu.be/jNQXAC9IVRw"
    }
  ],
  "maxItems": 100,
  "mode": "captions",
  "tracks": [
    "original"
  ],
  "aiFallback": true,
  "outputFormats": [],
  "forceRefresh": false,
  "concurrency": 4
}
```

# Actor output Schema

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

Every stored `result` of the run, each validated against the dataset schema the actor declares.

# 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 = {
    "startUrls": [
        {
            "url": "https://youtu.be/jNQXAC9IVRw"
        }
    ],
    "tracks": [
        "original"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("iddqd/tubescribe").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 = {
    "startUrls": [{ "url": "https://youtu.be/jNQXAC9IVRw" }],
    "tracks": ["original"],
}

# Run the Actor and wait for it to finish
run = client.actor("iddqd/tubescribe").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 '{
  "startUrls": [
    {
      "url": "https://youtu.be/jNQXAC9IVRw"
    }
  ],
  "tracks": [
    "original"
  ]
}' |
apify call iddqd/tubescribe --silent --output-dataset

```

## MCP server setup

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

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/tigm7gmEqbCABS4zY/builds/d9a7PAE81Sx9VPSyq/openapi.json
