# YouTube Transcript Scraper (`tidyharvest/youtube-transcript-scraper`) Actor

Transcripts for any YouTube video, Short, channel, playlist or search: timed lines, text, SRT/VTT, plus title, views, likes, date. Built to beat YouTube Video Transcript: 55 of 55 caption videos in our test (it gave 36), empty videos free. From $1.30 per 1,000.

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

## Pricing

from $1.30 / 1,000 transcript scrapeds

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

Get the **transcript of any public YouTube video, Short, channel, playlist or search** as timed lines, plain text or SRT/VTT, with
title, channel, views, likes and publish date on every row. **Built to beat YouTube Video Transcript (starvibe)**: a transcript for
all 55 videos that had captions in our test (it returned 36), videos without captions are free, and from $1.30 per 1,000 against its $5.

No login, no API key. Videos with no captions, private, removed or age-restricted videos come back as a free row with a status, so a
bulk run never charges you for nothing.

### What you can do with it

- **Feed an LLM or search index:** transcripts of a whole channel or playlist as clean text, newest first, with a date window.
- **Research and monitoring:** `publishedAfter` / `publishedBefore` (to the day), several languages in order of preference.
- **Subtitles:** SRT or VTT files per video.
- **Audit a library:** list the languages each video offers and whether they are human-made or auto-generated.

### Input

| Field | What it does |
|---|---|
| `urls` | Video, Shorts, youtu.be links, video ids, channel links or @handles (add `/shorts` to read a channel's Shorts), playlist links. |
| `searchQueries` | Transcripts for the top videos of each search phrase. |
| `maxVideosPerSource` | Videos read from each channel, playlist or search (default 10, up to 5,000). |
| `includeShorts` | Also read a channel's Shorts. |
| `publishedAfter` / `publishedBefore` | Date window (`2026-09-01` or `30 days`). Exact to the day. |
| `languages` | Language codes in order of preference. Human-made captions come before auto-generated. |
| `languageFallback` | If none of your languages exists, return the video's own language (default on) or a free "language unavailable" row. |
| `transcriptType` | `any`, `manual` (human-made only) or `auto`. |
| `allLanguages` | One row per available language. |
| `trackDetails`, `listLanguagesOnly` | Add the language list and the auto-generated flag to each video, or return only that list. |
| `outputFormats` | `segments`, `text`, `srt`, `vtt`. |
| `includeMetadata`, `includeDescription` | Video details on each row (free). The description comes with every link written out in full, plus a `descriptionLinks` list. Videos without a transcript return them too. |
| `includeExtras` | Adds `durationSeconds` (exact, also for single video links), `category`, `keywords` (the video's tags) and `commentCount` to each row. +$0.004 per video (the `caption-details-read` page read, charged once with the other caption details); videos with no transcript stay free. |
| `minWords` | Videos whose captions have fewer spoken words than this (not counting `[Music]` and other sound tags) come back as a free `no_speech` row. 0 = off; 5 drops music-only videos and Shorts. |
| `maxItems` | Hard cap on transcripts (and cost). |

```json
{ "urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "@veritasium"], "maxVideosPerSource": 20, "languages": ["en"] }
```

### Output

One row per transcript: `videoId`, `videoUrl`, `title`, `channelName`, `channelHandle`, `channelSubscribers`, `viewCount`, `likeCount`,
`publishedAt`, `durationSeconds`, `videoType` (`video`, `short`, `live`; filled for channels, playlists, searches and Shorts links) and `isShort`, `thumbnailUrl`, `description` and `descriptionLinks` (with `includeDescription`), `language`, `languageCode`, `isAutoGenerated` (filled when caption details are on), `wordCount`, `text`, `segments`
(`start`, `duration`, `text` in seconds). Rows without a transcript have `status` (`no_captions`, `age_restricted`, `private` /
`unavailable`, `language_unavailable`, `no_manual_captions`, `no_speech`, `live`) and are never charged.

### Pricing

Pay per transcript: **$2.00 per 1,000 on the Free plan, $1.70 Bronze, $1.50 Silver, $1.30 Gold** (`transcript-scraped`).
Caption details (`transcriptType`, `allLanguages`, `trackDetails`, `listLanguagesOnly`, `includeExtras`) add **$0.004 per video** (`caption-details-read`),
because they read the video page. Rows with no transcript are free. Filters and caps apply before you are charged.

### How well it works

Tested October 2026 on 75 videos drawn from YouTube searches in 17 languages, plus ted talks, podcasts, lectures, Shorts, live streams,
music and age-restricted videos (39 main + 36 held-out); 55 of them had captions. English asked for, same inputs, rivals at their defaults:

| | This actor | starvibe | johnvc | pintostudio | supreme_coder |
|---|---|---|---|---|---|
| Transcript for videos that have captions | **55 of 55** | 36 of 55 | 32 of 55 | 54 of 55 | 23 of 55 (runs failed at default memory) |
| Text for videos without captions | 0 | 0 | 0 | 0 | 0 |
| Real cost per 1,000 transcripts returned | **$1.30 to $2.00 (price)** | $9.5 to $11.5 (charged on error rows too) | $2.27 | $10.00 | $1.4 to $1.9 |
| Time for the 39-video set | 9 s | 144 s (39 runs) | 50 s | 263 s (39 runs) | 122 s, then failed |

### Compared with YouTube Video Transcript (starvibe)

Same videos, same English request. starvibe answered "the requested language is not available" for 19 of the 55 caption videos where
this actor returned the video's own language; it also charges for those error rows. This actor reads whole channels, playlists and
searches in one run, with a date window and SRT/VTT.

### Limits and notes

- Public videos only. Age-restricted videos are not read. Live streams get a transcript once they have ended.
- A transcript is the video's own captions (human-made or auto-generated); accuracy of auto-generated captions varies.
- Translations into another language are not offered.

### Related actors

Other actors from the same publisher that pair well with this one:

- [YouTube Comments Scraper](https://apify.com/tidyharvest/youtube-comments-scraper): Comments and replies from any YouTube video or Short.
- [YouTube Channel Videos Scraper](https://apify.com/tidyharvest/youtube-channel-videos-scraper): Every video, Short and live stream of a YouTube channel.
- [YouTube Channel Contacts Scraper](https://apify.com/tidyharvest/youtube-channel-contacts-scraper): Emails, websites and socials for YouTube channels.
- [Podcast Scraper](https://apify.com/tidyharvest/podcast-scraper): Apple Podcasts search, charts and episodes.

### Feedback and requests

We welcome feedback: a field or option you wish this had, a change to how it works, or a scraper you would like us to build.
Open an issue in the **Issues** tab of this page and tell us what you need. We read every one, and we build the requests that
come up most. If this actor works well for you, a short review helps other people find it.

# Actor input Schema

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

One per line: video links, Shorts links, youtu.be links, video ids, channel links or @handles, playlist links. Channels and playlists are read newest first, up to the limit below.

## `searchQueries` (type: `array`):

Optional. Transcripts for the top videos of each YouTube search (up to the limit below per phrase).

## `maxVideosPerSource` (type: `integer`):

How many videos to read from each channel, playlist or search phrase.

## `includeShorts` (type: `boolean`):

Also read a channel's Shorts, not only its videos.

## `publishedAfter` (type: `string`):

Only videos published on or after this date (2026-09-01) or this long ago (30 days, 3 months). Empty = no limit.

## `publishedBefore` (type: `string`):

Only videos published on or before this date (2026-09-30) or this long ago. Empty = no limit.

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

Language codes in order of preference (en, es, de, ja ...). The first one the video offers is returned; human-made captions before auto-generated. Empty = each video's own main language.

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

Switch off to get a free 'language unavailable' row (with the languages the video does offer) instead.

## `allLanguages` (type: `boolean`):

One row for each language the video offers (each is a separate transcript; +$0.004 per video for the language list).

## `transcriptType` (type: `string`):

Which captions to accept. Choosing human-made or auto-generated also adds the caption details below to each video (+$0.004 per video).

## `trackDetails` (type: `boolean`):

Add the languages each video offers and whether the transcript is human-made or auto-generated (+$0.004 per video). Switched on automatically by 'Every available language' and by the type choice above.

## `listLanguagesOnly` (type: `boolean`):

Don't read transcripts: return, for each video, the languages it offers and whether each is human-made or auto-generated (+$0.004 per video, no transcript charge).

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

segments = timed lines, text = the whole transcript as one string, srt / vtt = subtitle files.

## `includeMetadata` (type: `boolean`):

Title, channel, handle, subscribers, views, likes and publish date on every row (free).

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

Add the full video description to each row, every link written out in full, plus a list of the links in it. Videos without a transcript return it too (free).

## `includeExtras` (type: `boolean`):

Add the exact length, category, tags and the number of comments to each row (+$0.004 per video, the video page read; videos with no transcript are free).

## `minWords` (type: `integer`):

Videos whose captions have fewer spoken words than this (not counting \[Music] and other sound tags) come back as a free 'no_speech' row, not a transcript. 0 = off. Try 5 to drop music-only videos and Shorts.

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

Hard cap on transcripts returned (and charged) in this run.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "maxVideosPerSource": 10,
  "includeShorts": false,
  "languages": [
    "en"
  ],
  "languageFallback": true,
  "allLanguages": false,
  "transcriptType": "any",
  "trackDetails": false,
  "listLanguagesOnly": false,
  "outputFormats": [
    "segments",
    "text"
  ],
  "includeMetadata": true,
  "includeDescription": false,
  "includeExtras": false,
  "minWords": 0,
  "maxItems": 100
}
```

# Actor output Schema

## `transcripts` (type: `string`):

One item per transcript.

# 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=dQw4w9WgXcQ"
    ],
    "languages": [
        "en"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tidyharvest/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 = {
    "urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "languages": ["en"],
}

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

```

## MCP server setup

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