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

Get YouTube transcripts and captions from videos, Shorts, playlists, channels and searches. Pick manual or auto captions in any language with optional translation, export plain text, timed segments or SRT/VTT files with views and publish date.

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

## Pricing

from $3.00 / 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.

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 does YouTube Transcript Scraper do?

YouTube Transcript Scraper gets transcripts and captions from [youtube.com](https://youtube.com) videos, Shorts, playlists, channels and search results. Choose manual or auto-generated captions in any language, translate them, and export plain text, timed segments or SRT/VTT files. Each record can also carry video metadata: title, channel, views, likes, duration and publish date.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **🎯 Videos, playlists, channels or search:** Paste watch, Shorts, live, embed or youtu.be links or bare video IDs, add playlist or channel URLs (every video up to `maxVideosPerChannel`), or give `searchQueries` and get transcripts of the top matching videos. Mix all of them in one run; duplicates are returned once.
- **📝 Text, timestamped segments, SRT and VTT:** choose any of plain `text`, a `segments` array with start and duration in seconds, and ready-to-save `srt` and `vtt` strings with `outputFormats`. Every record also carries `wordCount` and `segmentCount`.
- **🌐 Language preference, caption type and translation:** list `languages` in order of preference, choose manual or auto-generated captions with `preferAutoGenerated`, and fall back to the video's default track when your language is missing. Set `translateTo` for a machine translation; when a video offers none you still get the original transcript with `translationStatus: unavailable`. Every record lists all `availableLanguages`.
- **🆓 Videos without captions are not charged:** every input video gets a record with a `status` (`ok`, `no_captions`, `language_not_available`, `unplayable`, ...). Only records with a transcript (`status: ok`) are charged. Optionally turn on `whisperFallback` to transcribe caption-less videos up to 30 minutes from their audio (`transcriptSource: whisper`), a separate premium event charged per minute of transcribed audio, only when a video is actually transcribed.
- **📊 Video metadata in the same record:** with `includeMetadata` each record adds title, description, channel, views, likes, duration, `publishedAt`, `uploadDate`, `category`, keywords and thumbnail.
- **♻️ Incremental mode:** recurring runs emit and charge only for listings that are new or whose tracked content changed. First run builds the baseline; subsequent runs emit only NEW / UPDATED / REAPPEARED records (UNCHANGED + EXPIRED opt-in). Saves 80–95% on daily monitoring.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **📦 Compact mode:** AI-agent and MCP-friendly payloads with core fields only.
- **🔌 MCP connectors:** export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.
- **🧹 Empty-field stripping:** drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards that already handle missing fields gracefully.
- **📤 Export anywhere:** Download the dataset as JSON, CSV, or Excel from the Apify Console, or stream live via the Apify API and integrations (Make, Zapier, Google Sheets, n8n, …).

### What data can you extract from youtube.com?

Each result includes Core transcript fields (`videoId`, `url`, `portalUrl`, `title`, `channelId`, `channelName`, `channelUsername`, and `channelUrl`, and more) and extended fields (`description`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

### Input

The main inputs are a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`startUrls`** — Videos, Shorts, live streams, youtu.be links, embed links or bare 11-character video IDs, plus playlist and channel URLs (every video of the playlist or channel is read, up to Max videos per channel/playlist). One per line.
- **`searchQueries`** — Optional. YouTube search terms; each query returns up to Max videos per search.
- **`languages`** — Transcript language codes in order of preference (e.g. en, de, es). (default: `["en"]`)
- **`maxItems`** — Upper bound on videos returned in this run across all inputs. 0 = no limit. (default: `0`)
- **`maxResults`** — Videos read per search query. (default: `100`)
- **`maxVideosPerChannel`** — Videos read from each channel or playlist URL, newest first. 0 = all. (default: `100`)
- **`fallbackToAnyLanguage`** — When none of the preferred languages exists, return the video's default transcript instead of no transcript. (default: `true`)
- **`preferAutoGenerated`** — Pick auto-generated captions over manual ones when both exist in the chosen language. (default: `false`)
- **`translateTo`** — Optional language code (e.g. en) to receive a machine translation of the transcript. When a translation is not offered for a video, the original transcript is returned and translationStatus says unavailable.
- **`whisperFallback`** — When a video has no captions at all, transcribe its spoken audio instead of returning no_captions. Billed as a separate premium event per started minute of audio, charged only for a video that is actually transcribed (see the Pricing tab). Applies to videos up to 30 minutes; longer ones return audio_too_long. The run gets more memory automatically when this is on. Default: off. (default: `false`)
- **`outputFormats`** — Which transcript formats each record carries: timestamped segments, plain text, SRT and/or WebVTT subtitles. (default: `["text","segments"]`)
- **`includeMetadata`** — Add description, views, likes, publish/upload date, category, keywords and thumbnail to each record. (default: `true`)
- ...and 21 more parameters

### Input examples

**Transcripts for a few videos** — Paste video, Shorts, embed or youtu.be links (or bare video IDs).

→ One record per video with the full transcript text, timestamped segments and video metadata.

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

**Latest videos from a channel, as SRT** — A channel or playlist link expands to its videos, newest first.

→ Up to 20 records with subtitle files ready to download.

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/@TED"
    }
  ],
  "maxVideosPerChannel": 20,
  "outputFormats": [
    "text",
    "srt"
  ]
}
```

**Search and translate** — Search YouTube and translate each transcript to Spanish when YouTube offers it; otherwise the original is kept.

→ Up to 25 records with translated text and a translationStatus flag.

```json
{
  "searchQueries": [
    "how to cook rice"
  ],
  "maxResults": 25,
  "translateTo": "es"
}
```

**Incremental tracking of a channel** — Only emit videos that are new or changed since the previous run with this stateKey.

→ First run builds the baseline; later runs return only new or updated videos.

```json
{
  "startUrls": [
    {
      "url": "https://www.youtube.com/@TED"
    }
  ],
  "maxVideosPerChannel": 50,
  "incrementalMode": true,
  "stateKey": "ted-channel"
}
```

### Output

Each run produces a dataset of structured transcript records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example transcript record

```json
{
  "videoId": "dQw4w9WgXcQ",
  "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "portalUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhtt...",
  "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
  "channelName": "Rick Astley",
  "channelUsername": "RickAstleyYT",
  "channelUrl": "https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw",
  "viewCount": 1839459482,
  "likeCount": 19513865,
  "durationSeconds": 213,
  "publishedAt": "2009-10-24T23:57:33-07:00",
  "uploadDate": "2009-10-24T23:57:33-07:00",
  "category": "Music",
  "keywords": [
    "rick astley",
    "Never Gonna Give You Up",
    "nggyu",
    "never gonna give you up lyrics",
    "rick rolled",
    "... 22 more items"
  ],
  "thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg",
  "isLiveContent": false,
  "isFamilySafe": true,
  "status": "ok",
  "message": "Transcript retrieved",
  "language": "en",
  "languageName": "English",
  "sourceLanguageCode": "en",
  "isAutoGenerated": false,
  "isTranslated": false,
  "availableLanguages": [
    {
      "languageCode": "en",
      "name": "English",
      "isAutoGenerated": false
    },
    {
      "languageCode": "en",
      "name": "English (auto-generated)",
      "isAutoGenerated": true
    },
    {
      "languageCode": "de-DE",
      "name": "German (Germany)",
      "isAutoGenerated": false
    },
    {
      "languageCode": "ja",
      "name": "Japanese",
      "isAutoGenerated": false
    },
    {
      "languageCode": "pt-BR",
      "name": "Portuguese (Brazil)",
      "isAutoGenerated": false
    },
    "... 1 more items"
  ],
  "translationLanguageCount": 18,
  "text": "[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules and so do I ♪ ♪ A full commitment's what I'm thinking of ♪ ♪ You wouldn't get this from any other guy ♪ ♪ I just wanna tell you how I'm feelin...",
  "wordCount": 487,
  "segments": [
    {
      "text": "[♪♪♪]",
      "start": 1.36,
      "duration": 1.68
    },
    {
      "text": "♪ We're no strangers to love ♪",
      "start": 18.64,
      "duration": 3.24
    },
    {
      "text": "♪ You know the rules and so do I ♪",
      "start": 22.64,
      "duration": 4.32
    },
    {
      "text": "♪ A full commitment's what I'm thinking of ♪",
      "start": 27.04,
      "duration": 4
    },
    {
      "text": "♪ You wouldn't get this from any other guy ♪",
      "start": 31.12,
      "duration": 3.96
    },
    "... 56 more items"
  ],
  "segmentCount": 61,
  "srt": "1\n00:00:01,360 --> 00:00:03,040\n[♪♪♪]\n\n2\n00:00:18,640 --> 00:00:21,880\n♪ We're no strangers to love ♪\n\n3\n00:00:22,640 --> 00:00:26,960\n♪ You know the rules and so do I ♪\n\n4\n00:00:27,040 --> 00:00:31,0...",
  "listingId": "73c809b6bdd78edf6c988e07746a678c7dfecc37f05d753e3385d5ab87ddecc4",
  "sourceInput": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "scrapedAt": "2026-11-21T13:53:45.152Z",
  "source": "youtube.com",
  "contentHash": "a229ed9bcfe246d9dd0a5bc30b460f6eeffcb1d1d484833adae943055a00b129"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape youtube.com

1. Go to [YouTube Transcript Scraper](https://apify.com/blackfalcondata/youtube-transcript-scraper?fpr=1h3gvi) in Apify Console.
2. Configure the input.
3. Set `maxItems` to control how many results you need.
4. Click **Start** and wait for the run to finish.
5. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract transcript data from youtube.com for market research and competitive analysis.
- Monitor new and changed transcripts on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape youtube.com?

YouTube Transcript Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.005 per run
- **Per transcript (primary event):** $0.003

You are billed only for the events your run actually triggers. Prices below are the Free plan tier.

| Event | Price (Free tier) | Charged when |
|---|---|---|
| Actor Start | $0.005 (one-time) | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| Transcript (primary) | $0.003 | One video transcript delivered to the dataset. |
| Audio transcription minute | $0.02 | One started minute of audio transcribed for a video without captions (only with the speech-to-text fallback enabled). |

Example costs (primary event only — other events above add cost when they fire):

- 10 results: **$0.035**
- 25 results: **$0.08**
- 100 results: **$0.3**
- 200 results: **$0.6**
- 500 results: **$1.5**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of transcripts that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 250 transcripts per run, daily polling (30 runs/month). Costs scale linearly with the number of transcripts.

Numbers below are for the primary **Transcript** event. Other events (**Audio transcription minute**) are billed separately when they fire.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.76 | $0.04 | $0.71 (94%) | $1.27 |
| 15% — moderate broad query | $0.76 | $0.12 | $0.64 (84%) | $3.53 |
| 30% — high-volume aggregator | $0.76 | $0.23 | $0.53 (70%) | $6.90 |

Full re-scrape monthly cost at the same cadence: $22.65. First month with incremental costs $1.99 / $4.16 / $7.42 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

**Run limits**: A run stops on its own after 12 hours if you set no timeout or a timeout longer than 12 hours. It also stops if it finds no new results for 60 minutes. Results collected before the stop are saved in your dataset.

### FAQ

#### How many results can I get from youtube.com?

The number of results depends on the search query and available transcripts on youtube.com. Use the `maxItems` parameter to control how many results are returned per run.

#### Does YouTube Transcript Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed transcripts on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate YouTube Transcript Scraper with other apps?

Yes. YouTube Transcript Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use YouTube Transcript Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use YouTube Transcript Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape youtube.com?

This actor extracts publicly available data from youtube.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/youtube-transcript-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Kwai Scraper - Videos, Hashtags & Creator Stats](https://apify.com/blackfalcondata/kwai-com-scraper?fpr=1h3gvi) — Scrape kwai.com — short videos by keyword or topic URL. Each record carries the caption.
- [Loom Video Scraper — Transcripts & Metadata](https://apify.com/blackfalcondata/loom-com-scraper?fpr=1h3gvi) — Scrape Loom videos from share or embed URLs or from 32-character video IDs. Every row carries the.
- [Pexels Scraper — Photos, Videos & Engagement Data](https://apify.com/blackfalcondata/pexels-scraper?fpr=1h3gvi) — This Pexels scraper extracts photos and videos by search, curated feed, photo ID, user, collection.
- [Snapchat Profile Scraper \[Just 💰$0.03\]](https://apify.com/blackfalcondata/snapchat-com-scraper?fpr=1h3gvi) — Scrape Snapchat public profiles of creators and brands by keyword or profile URL. Each row has.
- [Video & Audio Transcriber · Whisper Speech-to-Text, SRT & VTT](https://apify.com/blackfalcondata/video-audio-transcriber?fpr=1h3gvi) — Whisper speech-to-text for any video, audio or podcast URL: full transcript with timestamped.
- [ViewStats Scraper - YouTube Channel Analytics](https://apify.com/blackfalcondata/viewstats-com-scraper?fpr=1h3gvi) — Scrape viewstats.com — YouTube channel analytics by @handle or channel URL. Every record carries.
- [YouTube Comment Scraper — Comments, Replies, Likes](https://apify.com/blackfalcondata/youtube-comment-scraper?fpr=1h3gvi) — Scrape YouTube comments and their reply threads from any video, channel, or search query. Each.
- [YouTube Scraper $2/1K — Videos, Channels, Comments, Transcripts](https://apify.com/blackfalcondata/youtube-data-scraper?fpr=1h3gvi) — Scrape YouTube videos, channels, comments, and transcripts in one tool — by keyword or by video,.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on youtube.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with YouTube Transcript's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by YouTube Transcript or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

youtube scraper, youtube api, apify youtube, youtube data extraction, youtube transcript scraper, youtube transcript api, apify youtube transcript, youtube transcript data extraction, youtube.com scraper, youtube.com data, youtube.com api, social media scraper, video data, creator data.

# Changelog

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

# Actor input Schema

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

Videos, Shorts, live streams, youtu.be links, embed links or bare 11-character video IDs, plus playlist and channel URLs (every video of the playlist or channel is read, up to Max videos per channel/playlist). One per line.

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

Optional. YouTube search terms; each query returns up to Max videos per search.

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

Transcript language codes in order of preference (e.g. en, de, es).

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

Upper bound on videos returned in this run across all inputs. 0 = no limit.

## `maxResults` (type: `integer`):

Videos read per search query.

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

Videos read from each channel or playlist URL, newest first. 0 = all.

## `fallbackToAnyLanguage` (type: `boolean`):

When none of the preferred languages exists, return the video's default transcript instead of no transcript.

## `preferAutoGenerated` (type: `boolean`):

Pick auto-generated captions over manual ones when both exist in the chosen language.

## `translateTo` (type: `string`):

Optional language code (e.g. en) to receive a machine translation of the transcript. When a translation is not offered for a video, the original transcript is returned and translationStatus says unavailable.

## `whisperFallback` (type: `boolean`):

When a video has no captions at all, transcribe its spoken audio instead of returning no_captions. Billed as a separate premium event per started minute of audio, charged only for a video that is actually transcribed (see the Pricing tab). Applies to videos up to 30 minutes; longer ones return audio_too_long. The run gets more memory automatically when this is on. Default: off.

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

Which transcript formats each record carries: timestamped segments, plain text, SRT and/or WebVTT subtitles.

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

Add description, views, likes, publish/upload date, category, keywords and thumbnail to each record.

## `proxyConfiguration` (type: `object`):

Optional. Leave empty for the built-in default; set your own proxy only if you need a specific one.

## `descriptionMaxLength` (type: `integer`):

Truncate video description to N chars. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from the requested videos and language options so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit listings whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit listings that were seen before but are no longer found.

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "languages": [
    "en"
  ],
  "maxItems": 0,
  "maxResults": 100,
  "maxVideosPerChannel": 100,
  "fallbackToAnyLanguage": true,
  "preferAutoGenerated": false,
  "whisperFallback": false,
  "outputFormats": [
    "text",
    "segments"
  ],
  "includeMetadata": true,
  "descriptionMaxLength": 0,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ],
    "languages": [
        "en"
    ],
    "maxResults": 100,
    "maxVideosPerChannel": 100,
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/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=dQw4w9WgXcQ"],
    "languages": ["en"],
    "maxResults": 100,
    "maxVideosPerChannel": 100,
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/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=dQw4w9WgXcQ"
  ],
  "languages": [
    "en"
  ],
  "maxResults": 100,
  "maxVideosPerChannel": 100,
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/youtube-transcript-scraper --silent --output-dataset

```

## MCP server setup

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