# YouTube Transcript Scraper: Subtitles & Chapters, $1.99/1K (`laptime/youtube-transcript-scraper`) Actor

From $1.99/1K transcripts, no start fee. A video in 2.1 s, no API key. Works on videos without captions (speech-to-text). Video URLs, Shorts, channels, playlists or keywords: text, timestamps, chapters, SRT/VTT, language, views. Optional AI summary.

- **URL**: https://apify.com/laptime/youtube-transcript-scraper.md
- **Developed by:** [Laptime](https://apify.com/laptime) (community)
- **Categories:** Videos, Social media, Agents
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.39 / 1,000 transcripts (captions)

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

<p><strong>From Laptime.</strong> We benchmark our scrapers on Apify and date the results, and an automated check runs this Actor's example input every morning.</p>

> **Update, 19 November 2026:** videos without chapters in their description now get YouTube's automatic chapters ("key moments"), and **List caption languages only** shows a video's languages for free.

### Why choose YouTube Transcript Scraper?

<ul>
<li><strong>A transcript in about two seconds.</strong> One video took 2.1 seconds from start to finish on 18 Nov 2026, start-up included.</li>
<li><strong>Videos without captions still get a transcript.</strong> When a video has none, Whisper speech-to-text transcribes its audio. Most of the leading YouTube transcript Actors return no text for those videos (their READMEs on 27 Nov 2026).</li>
<li><strong>Chapters on every row.</strong> The creator's chapters, or YouTube's automatic "key moments" when the description has none. A search for "how to make sourdough bread" on 25 Nov 2026 returned chapters for 6 of 6 videos.</li>
</ul>

### Try it with one video

[![How to use YouTube Transcript Scraper without coding: 1. Try for free 2. Paste YouTube links + Start 3. The transcript, line by line 4. Export the Transcript lines view to Excel](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-youtube-transcript-scraper-steps.jpg?v=24a69845)](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-youtube-transcript-scraper-steps.jpg?v=24a69845)

No code needed: click **Try for free**, keep the example input, click **Start**, then export to Excel. Or paste this into the **JSON** tab of the input:

```json
{
  "startUrls": ["https://www.youtube.com/watch?v=1jI7WcVQmwM"]
}
```

That's Apify's one-minute video on schedules, transcribed in a few seconds: the full text, timed segments, chapters, language, caption type and the languages the video has. Swap in any video, Short, channel or playlist link, a bare video ID, or type a search in **YouTube search keywords**.

**Apify free plan:** the $5 of monthly credit covers about 2,500 transcripts with this Actor. No card needed.

### Pick the right transcript tool

#### Using an AI assistant?

Paste this into ChatGPT, Claude, Cursor or any AI agent, then say what you want. It gives the assistant what it needs to run this Actor with your Apify account: inputs, examples, prices and a check of the results.

```text
Help me get data with the Apify Actor laptime/youtube-transcript-scraper ("YouTube Transcript Scraper" by Laptime). From $1.99/1K transcripts, no start fee. A video in 2.1 s, no API key. Works on videos without captions (speech-to-text). Video URLs, Shorts, channels, playlists or keywords: text, timestamps, chapters, SRT/VTT, language, views. Optional AI summary. Full docs (every input field, pricing): https://apify.com/laptime/youtube-transcript-scraper.md; the essentials are below. If I have not said what I want yet, ask me in one question. Before the first run, show me the input and the estimated cost.
Run it: with Apify MCP tools (https://mcp.apify.com), call-actor "laptime/youtube-transcript-scraper" with the input, then get-dataset-items with the run's dataset ID. Otherwise, with my Apify token (https://console.apify.com/settings/integrations; keep it in an environment variable, not in a URL or file): POST https://api.apify.com/v2/acts/laptime~youtube-transcript-scraper/run-sync-get-dataset-items, header "Authorization: Bearer $APIFY_TOKEN", JSON body = the input; it returns the rows as a JSON array and waits up to 300 s (longer runs: POST /v2/acts/laptime~youtube-transcript-scraper/runs, poll the run, then GET /v2/datasets/{defaultDatasetId}/items). No token yet: a free Apify account includes $5 of usage a month, no card.
Input (JSON; other fields in the docs): startUrls: One per line: video URLs in any form (watch?v=, youtu.be, /shorts/, /live/, embed) or bare 11-character ids; channels (@handle, /channel/UC…, add /shorts or /streams…; languages (default []): Caption languages in order of preference (ISO codes such as "en", "es", "pt-BR"); the first one the video has wins, creator-made before auto-generated; maxVideosPerChannel (default 10): For channel and playlist URLs: how many videos to transcribe, newest first for channels; includeSrt (default false): Add the transcript as an SRT subtitle file in "srt"; includeVtt (default false): Add the transcript as a WebVTT subtitle file in "vtt".
Example (the input the Store form opens with): {"startUrls":["https://www.youtube.com/watch?v=1jI7WcVQmwM"]}
Example (transcribe a YouTube channel's latest 50 videos): {"startUrls":["https://www.youtube.com/@mkbhd"],"maxVideosPerChannel":50}
Example (get transcripts for a whole YouTube playlist): {"startUrls":["https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"],"maxVideosPerChannel":100}
Cost: pay per result, no start fee (Free-plan prices; paid Apify plans pay less): Transcript (captions) $1.99 per 1,000, Transcript (speech-to-text) $3.99 per 1,000, Speech-to-text minute $2 per 1,000, AI summary $5 per 1,000. To cap a run's charge, add ?maxTotalChargeUsd=<dollars> to the API URL (MCP: callOptions.maxTotalChargeUsd).
Output: Main fields: status, thumbnailUrl, title, author, platform, language, transcriptSource, durationSeconds, wordCount, text, url.
After the run: tell me how many rows came back and what they cost, then show the first 5 rows as a table (status, title, author, platform, language, transcriptSource). If nothing came back, read the run's statusMessage (API: GET /v2/acts/laptime~youtube-transcript-scraper/runs/last; MCP: get-actor-run) and suggest one change to the input.
```

### What can YouTube Transcript Scraper do?

- **Read any YouTube link.** Videos (`watch?v=`, `youtu.be`), Shorts, finished live streams, bare video IDs, channels (`@handle`, `/channel/UC…`, their `/shorts` and `/streams` tabs) and playlists.
- **Transcribe the top results for a keyword.** YouTube's own ranking, Shorts included. A YouTube search URL keeps its filters (upload date, duration, sort).
- **Choose the language and caption type.** List the languages you want in order, and pick creator-made or automatic captions. Every row lists the languages the video has, and **List caption languages only** shows them for free.
- **Fall back to speech-to-text.** Videos without captions are transcribed from their original audio track, also on auto-dubbed videos.
- **Give you chapters, subtitles and `[mm:ss]` text.** Chapters on every row, optional SRT and WebVTT files, and timestamped text for LLM prompts.
- **Monitor channels.** **Only new videos** remembers what earlier runs delivered, so a daily schedule returns only new uploads. A day with nothing new costs $0.
- **Answer one HTTP call per video.** The real-time API returns a transcript as JSON, text, SRT or VTT.

### How to scrape YouTube transcripts

Paste one of these into the **JSON** tab of the input, or send it through the API.

#### A channel's latest 50 videos as text

```json
{ "startUrls": ["https://www.youtube.com/@mkbhd"], "maxVideosPerChannel": 50 }
```

50 videos with captions cost $0.10. A 50-video channel took 14 seconds on 18 Nov 2026.

#### The top 20 videos for a keyword, with chapters

```json
{ "searchKeywords": ["iphone 17 review"], "maxVideosPerSearch": 20, "includeTimestampedText": true }
```

20 transcripts cost about $0.04. The top 10 for this search took 7.5 seconds on 18 Nov 2026.

#### New uploads only, every day, with a summary

```json
{ "startUrls": ["https://www.youtube.com/@lexfridman"], "onlyNew": true, "monitorName": "lex-daily", "aiSummary": true }
```

Save it as a task and add a daily schedule. A day with one new video and its summary costs $0.007; a day with nothing new costs $0.

#### Spanish subtitles, English when there are none

```json
{ "startUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "languages": ["es", "en"], "includeSrt": true, "includeVtt": true }
```

`language` says which one you got.

#### A whole playlist

```json
{ "startUrls": ["https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"], "maxVideosPerChannel": 100 }
```

Up to 100 videos, newest first, for at most $0.20 with captions.

#### Which caption languages a video has, for free

```json
{ "startUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "listOnly": true }
```

Every caption track (`availableLanguages`, `captionTracks`) with the title, channel and views. Nothing is charged.

### Input parameters

Give **YouTube URLs**, **YouTube search keywords**, or both. Everything else is optional.

| Parameter | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array | | Video, Short, channel or playlist links, or video IDs |
| `searchKeywords` | array | | YouTube searches; the top results are transcribed |
| `languages` | array | the video's language | Preferred caption languages, in order (`["es", "en"]`) |
| `languageFallback` | boolean | `true` | Use the original language when none of yours exist (off = a free `no_captions` row) |
| `captionType` | string | `any` | `any`, `manual` (creator-made) or `auto` |
| `listOnly` | boolean | `false` | Caption tracks and metadata only, nothing charged |
| `speechToText` | string | `auto` | `auto` (when there are no captions), `always` or `never` |
| `maxSpeechMinutes` | integer | `60` | Longest audio to transcribe per video (up to 240) |
| `maxVideosPerChannel` | integer | `10` | Newest videos per channel or playlist |
| `maxVideosPerSearch` | integer | `10` | Videos per search keyword |
| `maxVideos` | integer | `1000` | Videos in the whole run |
| `onlyNew` / `monitorName` | boolean / string | `false` | Skip videos earlier runs with this monitor name delivered |
| `includeSegments` | boolean | `true` | Timed segments (start, end, text) |
| `includeTimestampedText` / `includeSrt` / `includeVtt` | boolean | `false` | `[mm:ss]` text, SRT, WebVTT |
| `includeDescription` | boolean | `true` | The video's description |
| `autoChapters` | boolean | `true` | YouTube's automatic chapters when the description has none |
| `aiSummary` / `aiSummaryLanguage` | boolean / string | `false` | AI summary and key points |
| `aiApiKey`, `aiModel`, `aiBaseUrl` | string | | Your own LLM key and model (no AI event charged) |
| `maxConcurrency` | integer | `10` | Videos processed in parallel |
| `telemetry` | boolean | `true` | Anonymous error reports (what is sent: see the FAQ) |

Input names from other YouTube transcript Actors work as they are: `youtube_url`, `videoUrl`, `videoUrls`, `urls`, `channel_url`, `max_videos`, `maxVideosPerSource`, `targetLanguage`, `language`, `transcript_type`, `subtitleFormat`, `list_only` and `searchQueries`.

### Output

One row per video, 59 fields, each documented in the Output tab's schema. Views: **Transcripts**, **Video metadata**, **AI summaries** and **Not transcribed**.

[![YouTube Transcript Scraper results in Apify: a YouTube transcript one line per row with start, end, duration, text and video link](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-youtube-transcript-scraper-output.jpg?v=10f38a53)](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-youtube-transcript-scraper-output.jpg?v=10f38a53)

| Group | Fields |
|---|---|
| Transcript | `text`, `segments` (start, end, text), `timestampedText`, `srt`, `vtt`, `hook`, `wordCount`, `segmentCount` |
| Language | `language`, `transcriptSource` (captions, auto-captions, speech-to-text), `availableLanguages`, `captionTracks` |
| Video | `url`, `videoId`, `title`, `description`, `tags`, `category`, `author`, `authorId`, `publishedAt`, `durationSeconds`, `chapters`, `chaptersSource` |
| Engagement | `viewCount`, `likeCount`, `commentCount` |
| AI | `aiSummary`, `aiKeyPoints`, `aiStatus` |
| Status and billing | `status`, `statusReason`, `charged`, `chargedEvent`, `idempotencyKey` |

#### Example row (shortened)

A real row from a search for "how to make sourdough bread" on 25 Nov 2026:

```json
{
  "status": "ok",
  "chargedEvent": "transcript",
  "platform": "youtube",
  "url": "https://www.youtube.com/watch?v=4gEoh3sk2AE",
  "videoId": "4gEoh3sk2AE",
  "title": "Bake the Perfect Sourdough Bread: A Step-by-Step Guide",
  "publishedAt": "2024-03-08T16:30:07.000Z",
  "durationSeconds": 712,
  "viewCount": 3561098,
  "likeCount": 53636,
  "category": "Howto & Style",
  "language": "en",
  "transcriptSource": "captions",
  "availableLanguages": ["ar", "bn", "nl-NL", "en", "fr-FR", "de-DE", "…"],
  "wordCount": 2347,
  "chaptersSource": "description",
  "chapters": [
    { "start": 0, "end": 60, "title": "Intro & Sourdough Starter feeding" },
    { "start": 60, "end": 135, "title": "Preparing the Bread Dough" }
  ],
  "text": "- Today I am gonna show you how to make sourdough bread. Here's everything you need to know to get the beautiful rise, the perfect little ear …",
  "segments": [{ "start": 0.12, "end": 3, "duration": 2.88, "text": "- Today I am gonna show you how to make sourdough bread." }]
}
```

Every row has every field (`null` when unknown). A video without a transcript gets a free row whose `status` and `statusReason` say why.

#### Export to Excel or CSV

Open the run's **Export** button and pick a view before you download: the dialog starts on **All fields**, which spreads every segment and chapter over its own columns. **Transcripts** gives one readable line per video. Choose JSON when you want the timed segments and chapters kept intact.

### Benchmarks

Measured on Apify. Time is the run's total time as Apify reports it, start-up included. Prices are each Actor's Free plan list price.

| Task | YouTube Transcript Scraper | Next best we checked | Date |
|---|---|---|---|
| 1,000 one-minute videos without captions | **$3.99** | $13.00 | 27 Nov 2026 |

Of the YouTube transcript Actors with the most users, only codepoetry also transcribes videos without captions ($1 per 1,000 plus $0.012 per minute); johnvc, pintostudio, supreme_coder and karamelo return captions only (their READMEs on 27 Nov 2026). Our own times on 18 Nov 2026: one video in 2.1 s, a channel's 50 newest videos in 14 s, 200 in 91 s (198 transcripts), and the top 10 for a search in 7.5 s.

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

Pay per event. Proxies and platform usage are included, and there is no start fee.

| Event | Price |
|---|---|
| Transcript from YouTube's captions, any length | **$1.99 per 1,000** |
| Transcript made by speech-to-text, first 3 minutes of audio included | **$3.99 per 1,000** |
| Each started speech-to-text minute after the first 3 | $0.002 |
| AI summary (only when you turn it on) | $0.005 |

| Job | Cost |
|---|---|
| The latest 50 videos of 20 channels (1,000 transcripts) | $1.99 |
| The top 20 videos for 10 keywords | $0.40 |
| A daily channel monitor that finds nothing new | $0 |

You are never charged for private, removed, age-restricted or music-only videos, channel listings, `listOnly` runs, or a monitor run with nothing new.

### Use it as an API (real-time)

Send one video link and get the transcript back in the same HTTP response, with no run to start. This Actor is an Apify Server Actor: the **Server** tab lists every parameter and sends test requests from your browser. Authenticate with your [Apify API token](https://console.apify.com/settings/integrations) in the `Authorization` header, or add `&token=` to the URL.

```bash
curl "https://laptime--youtube-transcript-scraper.apify.actor/?url=1jI7WcVQmwM&format=text" \
  -H "Authorization: Bearer $APIFY_TOKEN"
```

```js
const link = 'https://www.youtube.com/watch?v=1jI7WcVQmwM';
const res = await fetch(`https://laptime--youtube-transcript-scraper.apify.actor/?url=${encodeURIComponent(link)}`, {
  headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}` },
});
const video = await res.json(); // { status, text, segments, language, title, ... }
```

The default `format=json` returns the same row a run saves: `status`, `text`, timed `segments`, `chapters`, `language`, title and channel. `format=text`, `timestamped`, `srt` or `vtt` return the transcript itself. Options: `language`, `translateTo`, `speechToText`, `summary=true`, and `listOnly=true` for the caption languages only (free). A video without a transcript returns its `status` and reason and costs nothing; channels and playlists need a normal run.

On 1 Dec 2026 the first request took 4.6 to 5.2 seconds, server start included. The next ones took 1.5 to 1.8 seconds.

Each request is charged the same events as a run: $1.99 per 1,000 caption transcripts, with speech-to-text and AI summaries priced as in the table above. The server runs in your own Apify account (1 GB, stopped after 5 minutes without requests), so Apify bills its time as platform usage: a server that answered a few requests and then stopped used $0.018 in our account on 1 Dec 2026.

### Integrations

Save your input as a task, give it a schedule, and send the transcripts wherever you work. New to schedules? Apify's one-minute video shows how:

https://www.youtube.com/watch?v=1jI7WcVQmwM

- **n8n, Make, Zapier:** the Apify node or app, "Run an Actor and get dataset", Actor `laptime/youtube-transcript-scraper`.
- **Google Sheets or any URL:** Apify's integrations, or a webhook on "run succeeded".

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("laptime/youtube-transcript-scraper").call(run_input={"startUrls": ["https://youtu.be/1jI7WcVQmwM"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["title"], row["language"], row["text"][:200] if row["text"] else row["statusReason"])
```

#### Claude, ChatGPT, Cursor and other MCP clients

Add `https://mcp.apify.com?tools=laptime/youtube-transcript-scraper` as a remote MCP server, then ask: "Summarize this YouTube video: <URL>"

### Switch from another YouTube transcript scraper

Change only the Actor ID. YouTube Transcript Scraper reads the input names of the most used YouTube transcript Actors:

- **johnvc/YoutubeTranscripts:** `youtube_url`, `languages`, `max_videos`, `transcript_type`, `list_only`. Their `non_timestamped` is our `text`; `timestamped` is our `segments`.
- **pintostudio/youtube-transcript-scraper:** `videoUrl`, `targetLanguage`. Their `data[]` is our `segments[]`.
- **starvibe/youtube-video-transcript:** `youtube_url`, `language`, `channel_url`, `max_videos`. Their `transcript[]` is our `segments[]`.
- **supreme_coder/youtube-transcript-scraper:** `urls`, `searchKeywords` (also `searchQueries`).
- **dami_studio** `maxVideosPerSource` and `subtitleFormat`, and **seemuapps** `videoUrls`.

### FAQ

#### Do I need a YouTube API key?

No. It reads the same public data YouTube shows a logged-out viewer.

#### What if the video has no captions?

With **Speech-to-text** on `auto` (the default) it transcribes the audio, charged as a speech-to-text transcript. Set it to `never` for captions only. About 10-20% of captionless videos protect their audio stream (measured 18 Nov 2026); those come back as a free `no_captions` row.

#### Auto-generated or creator-made captions?

Creator-made first, automatic otherwise. **Caption type** forces one, and `transcriptSource` tells you which you got.

#### Can I get subtitles in another language?

When the video has captions in it: many videos carry creator-made subtitles in several languages, listed in `availableLanguages`. List yours in order in **Preferred caption languages**.

#### Does it work for Shorts and live streams?

Shorts and finished live streams, yes. A live stream that is still running returns a free `live` row.

#### Is it reliable?

An automated check runs the default input on Apify every morning and alerts us when it returns nothing or a key field goes empty. YouTube's bot check on cloud IPs is handled by rotating to fresh IPs and then residential ones, and every video without a transcript gets a free row with the reason.

#### Does it send any data back?

When a run hits an error, the Actor sends us a small anonymous report (the error type, which step failed, the HTTP status and a few counts) so we can fix breakages before you notice them. It never includes your input, your results, URLs, your Apify account or your IP address. To turn it off, untick **Anonymous error reports** in the input (or set `"telemetry": false`).

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

It reads public videos only. Transcripts may be copyrighted by their creators: use them for analysis, research and accessibility, and check YouTube's terms and your local law before republishing. When in doubt, ask a lawyer. Apify's overview: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### More Laptime scrapers

- [Video Transcript Scraper](https://apify.com/laptime/video-transcript-scraper): the same engine for YouTube, TikTok, Instagram, Facebook and X, with the same prices.
- [TikTok Transcript Scraper](https://apify.com/laptime/tiktok-transcript-scraper), [Instagram Reels Transcript Scraper](https://apify.com/laptime/instagram-reels-transcript-scraper) and [Douyin Transcript Scraper](https://apify.com/laptime/douyin-transcript-scraper): TikToks, reels and 抖音 videos to text.
- [Google Trends Scraper](https://apify.com/laptime/google-trends-scraper): interest over time, by region and related queries.
- [Twitch Scraper](https://apify.com/laptime/twitch-scraper): Twitch channels, live streams, VODs and clips, $2.49 per 1,000 channels.

### Support

Found a video that doesn't work, or missing a field? Open an issue and we'll answer within a day. Fixes and new fields are listed on the **Changelog** tab.

If it saved you time, a short review on the Actor page helps other people find it.

*Unofficial. Not affiliated with, endorsed by or sponsored by YouTube or Google LLC.*

# Changelog

This Actor's version history is a separate document: https://apify.com/laptime/youtube-transcript-scraper/changelog.md

# Actor input Schema

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

One per line: video URLs in any form (watch?v=, youtu.be, /shorts/, /live/, embed) or bare 11-character ids; channels (@handle, /channel/UC…, add /shorts or /streams for those tabs) and playlists (?list=). Channels and playlists expand to their newest videos (see Max videos per channel).

## `searchKeywords` (type: `array`):

Optional. Search YouTube for each phrase (one per line) and transcribe the top results, e.g. "how to make sourdough bread". Use it instead of, or with, video links. Searching is free; each transcript is charged as usual.

## `languages` (type: `array`):

Optional. Caption languages in order of preference (ISO codes such as "en", "es", "pt-BR"); the first one the video has wins, creator-made before auto-generated. Empty (default) = the language spoken in the video. Check a video's languages first with "List caption languages only".

## `languageFallback` (type: `boolean`):

On (default): when the video's captions are all in other languages, return the transcript in its own language. Off: return a free "no_captions" row instead. (A video with no captions at all still goes to speech-to-text.)

## `captionType` (type: `string`):

Which caption tracks may be used: any (default) = creator-made first, then auto-generated; manual = creator-made only; auto = auto-generated only. With manual or auto, a video without that kind is transcribed by speech-to-text instead (paid, see Speech-to-text), or returns a free "no_captions" row when Speech-to-text is never.

## `listOnly` (type: `boolean`):

On: no transcripts; each row lists the video's caption languages (availableLanguages, captionTracks) and its details, and nothing is charged. Use it to check what a video has before you choose "languages". Off (default): transcripts as usual.

## `speechToText` (type: `string`):

auto (default) = videos without captions are transcribed from their audio with Whisper ($3.99 per 1,000 videos, first 3 minutes included, instead of $1.99 for captions); always = ignore captions and transcribe the audio; never = captions only, videos without captions return a free "no_captions" row.

## `maxSpeechMinutes` (type: `integer`):

Longest video speech-to-text may transcribe; longer videos without captions return a free "too_long" row. The first 3 minutes are included in the speech-to-text price; each further started minute costs $0.002 (speech-minute). Default 60.

## `maxVideosPerChannel` (type: `integer`):

For channel and playlist URLs: how many videos to transcribe, newest first for channels. Default 10. Listing is free; each transcript is charged as usual.

## `maxVideosPerSearch` (type: `integer`):

For each search keyword or YouTube search link: how many top results to transcribe. Default 10.

## `onlyNew` (type: `boolean`):

Skip videos that an earlier run with the same monitor name already delivered. Schedule a channel with this on to get (and pay for) only new uploads; a run with nothing new costs $0. Off by default.

## `monitorName` (type: `string`):

Optional. Name of the only-new memory, e.g. "mkbhd-daily"; runs with the same name share it. Letters, digits and dashes.

## `maxVideos` (type: `integer`):

Safety cap on the number of videos one run processes, after channels, playlists and searches are expanded. Default 1,000.

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

On (default): add "segments", a list of {start, end, duration, text} in seconds, for each caption line. Each line adds 4 columns to a CSV/Excel export of all fields, so videos over ~30 min pass Apify's 2,000-column export limit: export the Transcript lines view (one row per line), or turn this off.

## `includeTimestampedText` (type: `boolean`):

Add "timestampedText": one "\[mm:ss] text" line per caption, easy to quote in an LLM prompt. Off by default.

## `includeSrt` (type: `boolean`):

Add the transcript as an SRT subtitle file in "srt". Off by default.

## `includeVtt` (type: `boolean`):

Add the transcript as a WebVTT subtitle file in "vtt". Off by default.

## `includeDescription` (type: `boolean`):

Include the video description in "description". Turn off for smaller rows.

## `autoChapters` (type: `boolean`):

On (default): "chapters" on every YouTube row, from the creator's timestamps or YouTube's automatic chapters (videos of 2+ minutes; "chaptersSource" says which). Free. Off: only chapters written in the description.

## `aiSummary` (type: `boolean`):

Add "aiSummary" (2-4 sentences) and "aiKeyPoints" (3-7 takeaways) to each transcript, written by Claude Haiku. Off by default. $0.005 per summary on our model; free with your own key. Apify free plan: 10 summaries per run.

## `aiSummaryLanguage` (type: `string`):

Optional. ISO code of the summary language, e.g. "en". Empty = the transcript's language.

## `aiApiKey` (type: `string`):

Optional. Your OpenRouter (sk-or-…), OpenAI, Anthropic (sk-ant-…) or Gemini (AIza…) key. With your own key, summaries are not charged. Empty = our hosted model.

## `aiModel` (type: `string`):

Optional. Model id for your own key or endpoint, e.g. "gpt-4.1-mini". Empty = a sensible default for the key type.

## `aiBaseUrl` (type: `string`):

Optional. Base URL of an OpenAI-compatible API (a local Ollama or vLLM server reachable from Apify), used with your own key and model; not charged.

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

How many videos are processed at the same time. Default 10.

## `telemetry` (type: `boolean`):

Sends the Actor's author an anonymous report when a run hits an error (error type, failing step, HTTP status, counts). Never your input, results, URLs or account. Untick to turn it off.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/watch?v=1jI7WcVQmwM",
    "https://www.youtube.com/@mkbhd"
  ],
  "searchKeywords": [
    "how to make sourdough bread",
    "ai agents tutorial"
  ],
  "languages": [],
  "languageFallback": true,
  "captionType": "any",
  "listOnly": false,
  "speechToText": "auto",
  "maxSpeechMinutes": 60,
  "maxVideosPerChannel": 10,
  "maxVideosPerSearch": 10,
  "onlyNew": false,
  "maxVideos": 1000,
  "includeSegments": true,
  "includeTimestampedText": false,
  "includeSrt": false,
  "includeVtt": false,
  "includeDescription": true,
  "autoChapters": true,
  "aiSummary": false,
  "maxConcurrency": 10,
  "telemetry": true
}
```

# Actor output Schema

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

Every row, one per video.

## `overview` (type: `string`):

The Transcripts view: status, title, author, language and text.

## `lines` (type: `string`):

The Transcript lines (one row per line) view: One row per caption line (segments unwound): video title, start, end and duration in seconds, the line's text and the video link. Pick this view in Export for CSV/Excel. Videos without a transcript are left out (see Not transcribed); with Timestamped segments off, each video is one row with its whole text.

## `metadata` (type: `string`):

The Video metadata view: Title, author, date, views, length and caption languages, without the text.

## `summaries` (type: `string`):

The AI summaries view: The optional AI summary and key points (aiSummary on).

## `problems` (type: `string`):

The Not transcribed view: Rows without a transcript and why (never charged).

## `runStats` (type: `string`):

RUN_STATS: transcripts by source and status, charges, timings, proxy and speech-to-text usage.

# 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": [
        "https://www.youtube.com/watch?v=1jI7WcVQmwM"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("laptime/youtube-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 = { "startUrls": ["https://www.youtube.com/watch?v=1jI7WcVQmwM"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,laptime/youtube-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/8pvfdmP9kXhHi3QjW/builds/mtnCUhLwL2x2Aca3H/openapi.json
