# YouTube Transcript Scraper: YouTube Transcripts and Subtitles (`agenttoolworks/youtube-transcript-scraper`) Actor

YouTube transcript scraper for videos, Shorts, channels, playlists and searches: the transcript as text, timed segments, paragraphs, chapters, SRT or VTT, with title, channel, views, likes and publish date on every row. No login, no API key. Videos without captions are free.

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

## Pricing

from $1.20 / 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

### What is this YouTube transcript scraper?

This Actor is a **YouTube transcript scraper**: paste video URLs or IDs, or name **channels, playlists or search keywords**, and get one row per video with its **transcript** as plain text, timed segments, paragraphs, chapters, chunks for embeddings, **SRT or WebVTT subtitles**, together with the video's title, channel, **publish date, views, likes**, duration, category and description. Uploaded captions and auto-generated ones, in any language the video has. No YouTube account, no API key, no cookies.

**In short**

- **What you get**: one row per video with the transcript in the formats you pick and the video's public details. Works on videos, Shorts and live replays, one or thousands per run.
- **What it costs**: **$1.50 per 1,000 transcripts** on Apify's Free and Starter plans ($1.35 on Scale, $1.20 on Business), **no start fee**. You pay per transcript delivered. **Free**: videos without captions, unavailable, private or age-restricted videos, failed videos (each row says why), videos outside your dates, and listing a channel without reading it.
- **Why this one** (Store figures read on 2026-11-22; our figures from this Actor's own cloud runs):
  - **Price**: $1.50 per 1,000 against $2.75 for johnvc/YoutubeTranscripts, the most used transcript Actor on the Store (7,437 users in 30 days), which also charges $3.00 per 1,000 more for likes and upload date. Here they are on every row at no extra charge. starvibe/youtube-video-transcript charges $5.00 and pintostudio/youtube-transcript-scraper $10.00.
  - **Every way in, one Actor**: videos, Shorts, channels with a date window, playlists and search keywords, in any mix. No other transcript Actor we read on the Store documents all five.
  - **Chapters**: the transcript split by the video's chapters, each with its title and time range. No other transcript Actor's README or input mentions chapters.
  - **Formats without extra runs**: text, timed segments, paragraphs, chapters, chunks, SRT, WebVTT and per-word timings can all be asked for in the same run, at the same price.
  - **Reliable at scale**: 2,000 videos of 20 channels in one run gave 1,989 transcripts, 7 videos with no captions, 4 unavailable videos and no failure (run IY41cEE60kM20uC2K, 2026-11-22). Plain HTTP requests, no browser.
  - **A failure is never silent and never charged**: each video's row has a status (`ok`, `no_captions`, `unavailable`, `private`, `age_restricted`...) and the reason in YouTube's own words.
  - **Drop-in for three other Actors**: it reads the input fields of pintostudio (`videoUrl`), starvibe and johnvc (`youtube_url`, `channel_url`...) and answers with their field names. See [Switching from another transcript Actor](#switching-from-another-transcript-actor).

### What data can you extract from YouTube?

| The transcript | The video | The captions |
|---|---|---|
| Plain text (`transcriptText`) | Title, URL, video ID | Language code and name |
| Timed segments: text, start, end, duration in seconds | Channel name, ID, URL and handle | Uploaded or auto-generated |
| Paragraphs with their time range | Publish date and time | Every language the video has |
| Chapters, each with its title, time range and text | Views and likes | Whether your language was found, or the video's own was used |
| Chunks of a size you set, with time ranges | Duration, category, keywords | Word and segment counts |
| SRT and WebVTT subtitles | Description, thumbnail | |
| Each word with its own timestamp (auto-generated tracks) | Short, live, unlisted | |

### What can you use YouTube transcripts for?

- **AI and RAG pipelines**: feed transcripts to an LLM for summaries, Q\&A or search. The chunks format gives ready pieces with time ranges, so an answer can link to the moment in the video.
- **Content repurposing**: turn videos into articles, newsletters, show notes and social posts; chapters give the outline.
- **Research and monitoring**: follow what a list of channels publishes, by date, and search the text.
- **SEO and competitor analysis**: what competitors say in their videos, which topics and keywords they cover.
- **Subtitles**: download SRT or WebVTT files for a video in any language it has.
- **Training and analysis datasets**: thousands of transcripts with their metadata in one table.

### How to scrape YouTube transcripts

1. Click **Try for free** (or **Start**) on this page and sign in to Apify.
2. Paste video URLs in **Videos**, or fill **Channels**, **Playlists** or **Search queries**.
3. Optionally pick **Languages** and the **Transcript formats** you want.
4. Click **Start**. When the run finishes, open the **Output** tab, pick the **Transcripts** view, and export as JSON, CSV, Excel or XML, or read it through the API.

### Input

| Field | What it does |
|---|---|
| `videos` | Video URLs or IDs: watch links, youtu.be links, Shorts, live replays, embeds, or the 11-character ID alone. Channel, playlist and search URLs pasted here are read as such. |
| `channels` | Channel handles (`@3blue1brown`), channel URLs or channel IDs. Newest videos first. |
| `playlists` | Playlist URLs or IDs, read in playlist order. |
| `searchQueries` | Keywords, as typed in YouTube's search; videos in YouTube's order. |
| `maxVideosPerSource` | Videos read per channel, playlist or search (default 50, up to 20,000). Pasted videos are always all read. |
| `maxItems` | Optional cap on the transcripts charged in the run. |
| `languages` | Preferred caption languages, best first (`en`, `fr`, `pt-BR`). Empty: the video's own language. An uploaded track is preferred over an auto-generated one. |
| `transcriptType` | `any` (default), `manual` (uploaded captions only) or `auto` (auto-generated only). |
| `languageFallback` | On (default): a video with none of your languages returns its own captions and says so. Off: it gives a free row with status `language_not_available`. |
| `outputFormats` | Any of `text`, `segments`, `paragraphs`, `chapters`, `chunks`, `srt`, `vtt`, `words`. Default `text` and `segments`. Same price whatever you pick. |
| `chunkSize` | Target characters per chunk (default 1,000). |
| `includeDetails` | Publish date, likes, category, Short or not (default on, no extra charge). |
| `includeDescription` | The video's description on each row (default on). |
| `dateFrom`, `dateTo` | Only videos of channels, playlists and searches published between these dates: `2026-01-31`, or a period such as `30 days` or `6 months`. A video outside the dates is never charged. |
| `channelContent` | Which of a channel's uploads to read: `videos` (default), `shorts`, `live`. |
| `listOnly` | Only list the videos of channels, playlists and searches (ID, URL, title): nothing is read or charged. |

Example: the last 30 days of two channels, in English when available, as text and chapters.

```json
{
  "channels": ["@3blue1brown", "@veritasium"],
  "dateFrom": "30 days",
  "languages": ["en"],
  "outputFormats": ["text", "chapters"]
}
```

Example: a list of videos as SRT subtitles in French, only when French captions exist.

```json
{
  "videos": ["https://www.youtube.com/watch?v=aircAruvnKk", "jNQXAC9IVRw"],
  "languages": ["fr"],
  "languageFallback": false,
  "outputFormats": ["srt"]
}
```

### Output

One row per video. A real row from a cloud run of 2026-11-22 (texts shortened):

```json
{
  "rowType": "video",
  "status": "ok",
  "statusReason": null,
  "videoId": "4NlrfOl0l8U",
  "url": "https://www.youtube.com/watch?v=4NlrfOl0l8U",
  "title": "The AI that solved IMO Geometry Problems | Guest video by @Aleph0",
  "channelName": "3Blue1Brown",
  "channelId": "UCYO_jab_esuFRV4b17AJtAw",
  "channelUrl": "https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw",
  "channelHandle": "@3blue1brown",
  "publishedAt": "2025-08-17T06:02:50-07:00",
  "durationSeconds": 810,
  "viewCount": 415834,
  "likeCount": 21707,
  "category": "Education",
  "isShort": false,
  "isLive": false,
  "isUnlisted": false,
  "keywords": ["Mathematics", "three blue one brown"],
  "thumbnailUrl": "https://i.ytimg.com/vi_webp/4NlrfOl0l8U/sddefault.webp",
  "description": "How AlphaGeometry combines logic and intuition. ...",
  "language": "en",
  "languageName": "English",
  "isAutoGenerated": false,
  "languageFallbackUsed": false,
  "availableLanguages": [
    { "code": "zh", "name": "Chinese", "isAutoGenerated": false },
    { "code": "en", "name": "English", "isAutoGenerated": false },
    { "code": "en", "name": "English (auto-generated)", "isAutoGenerated": true }
  ],
  "wordCount": 2632,
  "segmentCount": 265,
  "hasChapters": true,
  "source": "@3blue1brown",
  "sourceType": "channel",
  "position": 16,
  "scrapedAt": "2026-11-22T20:25:43.751Z",
  "transcriptText": "In January 2024, Google DeepMind released an AI model called Alpha Geometry, which could solve geometry problems from the International Mathematical Olympiad ...",
  "segments": [
    { "text": "In January 2024, Google DeepMind released an AI model called Alpha Geometry,", "start": 0, "end": 5.079, "duration": 5.079 },
    { "text": "which could solve geometry problems from the International Mathematical Olympiad, or the IMO.", "start": 5.079, "end": 10.558, "duration": 5.479 }
  ],
  "chapters": [
    { "title": "What's surprising", "start": 0, "end": 93, "text": "In January 2024, Google DeepMind released an AI model called Alpha Geometry ..." }
  ]
}
```

A video that gives no transcript still gives a row, free, with why:

```json
{ "rowType": "video", "status": "unavailable", "statusReason": "This video is unavailable", "videoId": "xxxxxxxxxxx", "url": "https://www.youtube.com/watch?v=xxxxxxxxxxx" }
```

| `status` | Meaning | Charged |
|---|---|---|
| `ok` | The transcript is on the row | yes |
| `no_captions` | YouTube lists no caption track for the video (or none of the type asked) | no |
| `language_not_available` | None of your languages, with `languageFallback` off | no |
| `unavailable`, `private`, `members_only`, `live_not_started` | YouTube's verdict on the video | no |
| `age_restricted` | YouTube asks to sign in to confirm age; the Actor never signs in | no |
| `failed` | YouTube refused every address tried, or the captions came back unreadable | no |
| `listed` | `listOnly`: the video was listed, not read | no |

#### Run summary

The run's key-value store holds a `SUMMARY` record: the run's status (`succeeded`, `partial`, `failed`), rows charged and free by status, one entry per channel, playlist and search (videos listed, read, transcripts, videos outside the dates, duplicates, and the reason when a source came back short), the pasted videos that gave no row, and how many addresses the run read through.

### Limits worth knowing before you run it

- **No captions, no transcript.** The Actor returns the captions YouTube has: uploaded by the channel or auto-generated by YouTube. It does not transcribe audio. In our runs about 1 video in 9 of ten large channels had no caption track (117 of 1,000).
- **No translation.** YouTube refuses its machine-translated tracks to logged-out clients (measured 2026-11-22). You get the languages the video has; `availableLanguages` lists them.
- **Age-restricted, private and members-only videos are not read**: they need a sign-in, and the Actor never signs in. They give a free row.
- **Chapters come from the video's description** (the timestamp list YouTube itself builds chapters from). Chapters YouTube generates on its own for a video without such a list are not returned.
- **Likes and publish date** come from a second light request; on rare videos YouTube does not send them and the fields are null.
- **Search** returns what YouTube's search shows a visitor, in its order; YouTube decides how far a search goes.
- **Per-word timestamps** exist on auto-generated tracks only.

### How it compares (Apify Store, read 2026-11-22)

Users over 30 days and prices are from each Actor's public Store record; features from each Actor's README and input schema. We did not run them.

| Actor | Users (30 days) | Price per 1,000 transcripts (Free plan) | Videos in bulk | Channels | Playlists | Search | Chapters | Publish date and likes |
|---|---|---|---|---|---|---|---|---|
| **This Actor** | new | **$1.50**, no start fee | yes | yes, with dates | yes | yes | yes | included |
| johnvc/YoutubeTranscripts | 7,437 | $2.75 | 100 per run | yes | no | no | no | $3.00 per 1,000 more |
| starvibe/youtube-video-transcript | 3,196 | $5.00 | no, one video or one channel | yes, with dates | no | no | no | included |
| pintostudio/youtube-transcript-scraper | 2,755 | $10.00 | no, one video per run | no | no | no | no | no |
| supreme_coder/youtube-transcript-scraper | 1,926 | $1.00 | yes | yes | yes | yes | no | no publish date, no likes |
| codepoetry/youtube-transcript-ai-scraper | 657 | $1.00 + $0.0025 per run | 500 per run | yes | yes | no | no | not documented |

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

Pay per event, one event:

| Event | Free and Starter | Scale | Business | Charged when |
|---|---|---|---|---|
| Transcript | **$1.50 per 1,000** ($0.0015 each) | $1.35 per 1,000 | $1.20 per 1,000 | a row with status `ok` is delivered |

No start fee, no charge per format, no charge for details. Platform usage is included in the price.

| You run | Transcripts | Cost on the Free plan |
|---|---|---|
| One video | 1 | $0.0015 |
| A channel's last 100 videos, 91 with captions | 91 | $0.14 |
| 1,000 videos | up to 1,000 | up to $1.50 |
| 10,000 videos | up to 10,000 | up to $15.00 |

Apify's Free plan includes $5 of platform credit each month: about 3,300 transcripts.

### Use the Actor through the Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/agenttoolworks~youtube-transcript-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "videos": ["https://www.youtube.com/watch?v=aircAruvnKk"], "outputFormats": ["text"] }'
```

```js
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("agenttoolworks/youtube-transcript-scraper").call({
  channels: ["@3blue1brown"],
  dateFrom: "30 days",
  outputFormats: ["text", "chapters"],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const video of items.filter((v) => v.status === "ok")) console.log(video.title, video.wordCount);
```

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("agenttoolworks/youtube-transcript-scraper").call(run_input={
    "videos": ["aircAruvnKk", "jNQXAC9IVRw"],
    "outputFormats": ["text", "srt"],
})
for video in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(video["videoId"], video["status"], video.get("wordCount"))
```

A single video answers in about 4 to 7 seconds, so the synchronous endpoint works for one-off calls from an app or an agent.

### Switching from another transcript Actor

The Actor reads the input fields of three other transcript Actors and, when it sees them, adds their output field names to each row, beside its own. Change the Actor ID in your workflow and keep your input and your field mapping.

| You send | You also get, on each row |
|---|---|
| `videoUrl`, `targetLanguage` (pintostudio/youtube-transcript-scraper) | `data`: segments as `{ start, dur, text }` with `start` and `dur` as strings |
| `youtube_url`, `language`, `channel_url`, `max_videos`, `start_date`, `end_date` (starvibe/youtube-video-transcript) | `transcript` (segments), `transcript_text`, `video_id`, `language` as a code, `is_auto_generated`, `available_languages`, `channel_name`, `published_at`, `view_count`, `like_count`, `duration_seconds` |
| `youtube_url` with `languages`, `transcript_type`, `output_formats`, `channel`, `channel_transcripts`, `list_only` (johnvc/YoutubeTranscripts) | `timestamped`, `non_timestamped`, `video_id`, `language` as a name, `language_code`, `selected_language`, `is_generated`, `available_transcripts`, `upload_date`, `tags`, `success`, `error`, `error_type` |
| `urls`, `startUrls`, `videoUrls`, `searchKeywords`, `maxResults`, `outputFormat` | this Actor's own row |

What differs: translation fields (`translate_to`) are not served (see Limits), and the run tells you so in its log and summary. Check one run of your workflow before switching a production schedule.

### FAQ

#### Do I need a YouTube account or an API key?

No. The Actor reads what YouTube serves any visitor, without an account, a cookie or a YouTube Data API key, so there is no API quota either.

#### Does it work for videos without subtitles?

It returns YouTube's auto-generated captions when the channel uploaded none, which covers most videos with speech. A video with no caption track at all gives a free row with status `no_captions`; the Actor does not transcribe audio.

#### Can I get the transcript of a whole channel or playlist?

Yes: put the channel handle or the playlist URL in `channels` or `playlists` and raise `maxVideosPerSource` (up to 20,000). Use `dateFrom` to read only recent videos, for example `30 days` on a daily or weekly schedule.

#### Which languages are supported?

Any language the video has captions in. List your preferences in `languages`; the row's `availableLanguages` shows what the video offers. Translated captions are not available (see Limits).

#### Can I download SRT or VTT subtitles?

Yes: add `srt` or `vtt` to `outputFormats`. Each row then carries the subtitle file as text, ready to save as `.srt` or `.vtt`.

#### Does it return timestamps?

Yes. `segments` gives each caption line with `start`, `end` and `duration` in seconds; `paragraphs`, `chapters` and `chunks` keep their time ranges; `words` gives each word's own timestamp on auto-generated tracks.

#### Does it work on YouTube Shorts and live streams?

Shorts: yes, paste the Shorts URL or read a channel's Shorts with `channelContent`. Live streams: once the stream has ended and YouTube has processed its captions; a stream that has not started gives a free row with status `live_not_started`.

#### How fast is it?

One video takes about 4 to 7 seconds end to end. In bulk, 500 videos of five channels took 3 minutes 27 seconds (run oVydua9di52HvuCn8, 2026-11-22), about 2.4 videos per second; channels of multi-hour podcasts go slower, because each transcript is megabytes of captions.

#### Why did a video come back `failed`?

YouTube asks some addresses to sign in before it answers. The Actor never signs in: it leaves such an address and asks from another, up to 12 times per request. A video that every address was refused for gives a free `failed` row; run it again later. If 15 videos in a row fail this way the run stops and says so instead of going on failing.

#### Can I use it with Make, Zapier, n8n or Google Sheets?

Yes, through Apify's integrations: run the Actor from a scenario, a Zap or an n8n node and receive the rows as JSON, or export a run to Google Sheets, CSV or Excel.

#### Can AI agents use it through MCP?

Yes. Apify's MCP server exposes every Store Actor as a tool: add `agenttoolworks/youtube-transcript-scraper` and an agent can ask for a video's transcript and receive the row.

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

The Actor reads public data that YouTube serves any visitor without an account, and never signs in or passes a private, members-only or age-restricted wall. YouTube's Terms of Service restrict automated access, and a transcript is the work of the people who spoke and of the channel: what you store, republish or train on is your responsibility under copyright and privacy law. This is not legal advice.

#### Something is missing or broken?

Open an issue in the **Issues** tab: we read every one.

If this Actor was useful to you, please leave a review on its **Reviews** tab.

### Other Actors by AgentToolWorks

- [Threads Scraper](https://apify.com/agenttoolworks/threads-scraper): the posts of public Threads profiles, a post with the replies under it, and keyword search, without an account.
- [Facebook Ad Library Scraper](https://apify.com/agenttoolworks/ad-library-scraper): ads from the Meta, Google and Microsoft ad libraries in one table.
- [Google Ads Transparency Scraper](https://apify.com/agenttoolworks/google-ads-transparency-scraper): every Google ad of a brand or website, with text, reach and targeting.
- [Google Maps Scraper](https://apify.com/agenttoolworks/google-maps-places-scraper): every place inside a city's real boundary, with phone, website, rating, review count, opening hours and emails.
- [LinkedIn Jobs Scraper and Indeed Scraper](https://apify.com/agenttoolworks/linkedin-indeed-jobs-scraper): public job listings of both boards in one row format.
- [AliExpress Scraper](https://apify.com/agenttoolworks/aliexpress-scraper): AliExpress products with every SKU's price and stock and the shipping cost to each country you list.
- [Google Trends Scraper](https://apify.com/agenttoolworks/google-trends-scraper): interest over time, by region and related queries, plus each country's Trending now list.
- [Shopify & WooCommerce Scraper and Price Tracker](https://apify.com/agenttoolworks/shopify-woocommerce-scraper): every product of any Shopify or WooCommerce store, with price and stock change tracking.
- [Job Scraper for Greenhouse, Lever, Ashby & Workable (JobsRadar)](https://apify.com/agenttoolworks/jobsradar-multi-board-job-search): open roles from the public boards of seven applicant tracking systems.

### Learn more

- [What this YouTube transcript scraper returns, with a real row, its limits and its price](https://agenttoolworks.com/scrapers/youtube-transcript-scraper)
- [How to get YouTube transcripts at scale: what YouTube serves without an account, and what we measured](https://agenttoolworks.com/blog/how-to-scrape-youtube-transcripts)

Built by [AgentToolWorks](https://agenttoolworks.com). Not affiliated with YouTube or Google.

# Actor input Schema

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

YouTube video URLs or video IDs, one per line: watch links, youtu.be links, Shorts, live replays, embeds, or the 11-character ID alone. Channel, playlist and search URLs pasted here are read as such.

## `channels` (type: `array`):

Channel handles (@3blue1brown), channel URLs or channel IDs. The channel's videos are read newest first, up to the maximum per source; narrow them with the dates below.

## `playlists` (type: `array`):

Playlist URLs or playlist IDs. Videos are read in playlist order.

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

Keywords, as you would type them in YouTube's search. Each returns the videos YouTube's search shows a visitor, in its order.

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

Stop after this many videos for each channel, playlist or search (default 50, up to 20,000). Videos pasted one by one are always all read.

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

Optional cap on the transcripts charged in the whole run, besides the spending limit you set on Apify.

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

Preferred caption languages, best first, as codes (en, fr, es, pt-BR). The first one the video has is returned; an uploaded track is preferred over an auto-generated one. Empty means the video's own language.

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

Which kind of captions to return.

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

On (default): when the video has none of the languages asked for, its own captions are returned and the row says so (languageFallbackUsed). Off: such a video gives a free row with status language_not_available.

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

Every format picked is a field of the video's row; the price is the same whatever you pick. Default: plain text and timed segments.

## `chunkSize` (type: `integer`):

With the Chunks format: the target size of a chunk, cut at caption boundaries, each with its time range.

## `includeDetails` (type: `boolean`):

On (default): each row also carries the publish date, like count, category and whether the video is a Short or unlisted, at no extra charge.

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

On (default): each row carries the video's description.

## `dateFrom` (type: `string`):

Only videos published on or after this date: 2026-01-31, or a period back from now such as 30 days, 2 weeks or 6 months. A video outside the dates is never charged.

## `dateTo` (type: `string`):

Only videos published on or before this date (2026-06-30).

## `channelContent` (type: `array`):

Which of a channel's uploads to read. Default: videos.

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

Only list the videos of the channels, playlists and searches, with ID, URL and title: no transcript is read and nothing is charged.

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "channels": [
    "@3blue1brown"
  ],
  "playlists": [
    "https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi"
  ],
  "searchQueries": [
    "how transformers work"
  ],
  "maxVideosPerSource": 50,
  "languages": [
    "en",
    "fr"
  ],
  "transcriptType": "any",
  "languageFallback": true,
  "outputFormats": [
    "text",
    "segments"
  ],
  "chunkSize": 1000,
  "includeDetails": true,
  "includeDescription": true,
  "dateFrom": "30 days",
  "dateTo": "2026-06-30",
  "channelContent": [
    "videos"
  ],
  "listOnly": false
}
```

# Actor output Schema

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

No description

## `videos` (type: `string`):

No description

## `all` (type: `string`):

No description

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

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

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

```

## MCP server setup

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