# TikTok, Instagram Reels, YouTube & Facebook Transcript Scraper (`pegton/video-transcripts`) Actor

Get transcripts from TikTok, Instagram Reels, YouTube Shorts & videos and Facebook reels in one run: video to text with captions first, Whisper AI fallback, SRT/VTT subtitles, hook analysis and keywords. Pay only for successful transcripts.

- **URL**: https://apify.com/pegton/video-transcripts.md
- **Developed by:** [Rafael Iovi](https://apify.com/pegton) (community)
- **Categories:** Videos, Social media, AI
- **Features:** Limited permissions
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 transcript (from captions)s

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

## TikTok, Instagram Reels, YouTube & Facebook Transcript Scraper

Turn **any public short video into text**. This video transcript scraper gets the **TikTok transcript**, **Instagram Reels transcript**, **YouTube transcript** (videos and Shorts) and **Facebook video transcript** for every link or creator profile you give it: clean text, timestamped segments, **SRT/VTT subtitles**, detected language, words per minute, keywords, views/likes and a **hook analysis of the first 3 seconds**. One actor, one input, **one consistent output schema** for all four platforms: video to text and speech to text without writing code.

**You only pay for successful transcripts.** Private, deleted, blocked, music-only or silent videos cost nothing, and every one of them gets a clear error row so you know why.

### What can this transcript scraper do?

- 🎬 **4 platforms in one run**: TikTok, Instagram Reels, YouTube videos & Shorts, Facebook reels & videos. Mix them in one list.
- 👤 **Profiles, channels & playlists**: `tiktok:nasa`, `youtube:@MrBeast`, YouTube playlists, `facebook:bbcnews` → the latest N videos, transcribed. Add `onlyNewerThan: "7 days"` for monitoring; older videos are skipped for free.
- ⚡ **Captions first, AI second**: existing creator/platform captions are used when available (fast and exact). Only videos without captions go through **Whisper AI speech-to-text**.
- 🌍 **99 languages**, automatic language detection (English, German, Spanish, Portuguese, French, Hindi, ...).
- 🔑 **Keywords** (top words & 2-word phrases), **words per minute**, detected **language**: offline, no extra cost.
- ⏱️ **Timestamped segments**, clean **SRT** and **WebVTT** subtitles (max 2 lines × 42 chars), plain text and **paragraphs** (ideal for ChatGPT/LLMs, blogs, RAG).
- 🪝 **Hook analysis** for creators & agencies: what is said in the first 3 seconds, words per second, silent start, question / number / story / direct-address hooks.
- 💸 **Fair billing**: no charge for failed, private, music-only or silent videos. Hard caps: `maxItems` and `maxChargeUsd`.
- 🤖 **AI-agent & MCP ready**: flat, predictable JSON with stable error codes.
- 🔒 **Public content only**: no logins, no cookies, no CAPTCHA solving. GDPR-minded: only public post metadata needed for the transcript.

### Why this one? Compared with typical alternatives

| | **This actor** | Typical single-platform transcript actors |
|---|---|---|
| Platforms in one run | **TikTok, Instagram, YouTube, Facebook** | one platform each |
| Videos without captions | **Whisper AI fallback** | often "no transcript", or AI only (slower, pricier) |
| Charged for failed / private / silent videos | **never**: free row with a reason | often charged, or the whole run fails |
| Same output fields on every platform | ✅ | different per actor |
| Hook / first-3-seconds analysis, keywords, words per minute | ✅ included | rarely |
| Readable SRT & VTT subtitles (≤ 2 lines × 42 chars) | ✅ | raw caption dumps |
| Profiles / channels / playlists → latest videos, `onlyNewerThan` | ✅ | rarely |
| Cost caps (`maxItems`, `maxChargeUsd`) | ✅ honoured exactly | varies |

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

Pay-per-event pricing, no subscription:

| Event | Price | When |
|---|---|---|
| `transcript` | **$0.010** per video | transcript taken from existing captions/subtitles (any length) |
| `transcript-asr` | **$0.010** per started 2 minutes of audio | video had no captions → Whisper AI speech-to-text |

Examples:

- 100 YouTube Shorts or videos with captions (any length): **$1.00**
- 100 TikToks / Reels under 2 minutes without captions: **$1.00** (a 2–4 min one counts as 2 units)
- A 25-minute podcast clip without captions: 13 × $0.010 = **$0.13**
- 30 private, deleted, login-only or music-only videos: **$0.00**
- Hard limits: set `maxItems` and/or `maxChargeUsd`, and the run stops before going over.

Apify's free plan includes monthly credits, so you can transcribe a few hundred short videos for free every month.

### How to use it

1. Click **Try for free**.
2. Paste video links into **Video URLs** and/or creators into **Profiles / channels**.
3. Optional: pick output formats (SRT, VTT, segments, paragraphs), a language hint, `maxItems`.
4. Click **Start**. Download results as JSON, CSV, Excel, or use the API / MCP / Make / Zapier / n8n.

#### How to get a TikTok transcript

Paste a TikTok video link (`tiktok.com/@user/video/…` or a `vm.tiktok.com` short link), or a profile like `tiktok:nasa` to transcribe the latest videos. Most TikToks have no captions, so the actor transcribes the audio with Whisper AI.

#### How to get an Instagram Reels transcript

Paste reel or post links (`instagram.com/reel/…`). Works without login for public reels; you get the spoken text, the caption, the hook and keywords.

#### How to get a YouTube transcript (videos & Shorts)

Paste video, Shorts, channel (`youtube:@MrBeast`) or playlist links. Existing YouTube captions are used first (any length, any language with captions), so it is fast and exact; videos without captions fall back to AI.

#### How to get a Facebook video transcript

Paste Facebook reel, watch or `fb.watch` links, or a page like `facebook:bbcnews` to transcribe its latest public Reels.

#### Input example

```json
{
  "videoUrls": [
    "https://www.youtube.com/shorts/41UzbuW6wJs",
    "https://www.tiktok.com/@nasa/video/7706264639297850637",
    "https://www.instagram.com/reel/DUS8Co4CPeJ/",
    "https://www.facebook.com/watch/?v=10153231379946729"
  ],
  "profiles": ["tiktok:tagesschau", "youtube:@MrBeast"],
  "maxVideosPerProfile": 10,
  "outputFormats": ["text", "segments", "srt"],
  "includeHook": true,
  "maxItems": 100
}
```

#### Output example

```json
{
  "platform": "youtube",
  "url": "https://www.youtube.com/watch?v=41UzbuW6wJs",
  "id": "41UzbuW6wJs",
  "status": "success",
  "authorHandle": "MrBeast",
  "authorName": "MrBeast",
  "title": "Can A Robot Do My Chores?",
  "caption": null,
  "publishedAt": "2026-10-30T17:00:04Z",
  "durationSec": 32,
  "isShort": true,
  "viewCount": 74270585,
  "likeCount": 1126339,
  "commentCount": 4512,
  "language": "en",
  "source": "captions",
  "captionType": "auto",
  "text": "I just bought a $20,000 robot. Let's see how it handles the chores. ...",
  "segments": [{ "start": 0.0, "end": 2.1, "text": "I just bought a $20,000 robot." }],
  "keywords": ["robot", "chores", "laundry", "kitchen"],
  "wordCount": 97,
  "wordsPerMinute": 182.4,
  "hook": {
    "text": "I just bought a $20,000 robot. Let's see how it",
    "firstSentence": "I just bought a $20,000 robot.",
    "wordsPerSecond": 3.67,
    "firstWordAtSec": 0.0,
    "silentStart": false,
    "isQuestion": false,
    "hasNumber": true,
    "addressesViewer": false,
    "hookType": "number_or_list"
  },
  "charged": true,
  "chargedEvent": "transcript"
}
```

Failed videos look the same, with `status` = `error` / `no_speech` / `skipped`, an `errorCode` (`private`, `unavailable`, `blocked`, `login_required`, `age_restricted`, `geo_blocked`, `live`, `too_long`, `no_audio`, ...), a readable `errorMessage`, `retryable` and `charged: false`. A `RUN_SUMMARY` record in the key-value store shows counts per platform and status.

### Use cases

- **Content research & repurposing**: turn competitors' TikToks and Reels into text, find winning hooks and scripts.
- **AI / LLM pipelines**: feed transcripts to ChatGPT, Claude or your RAG; summarise, translate, classify.
- **Social listening & brand monitoring**: what creators actually *say* about your brand (schedule with `onlyNewerThan: "7 days"`).
- **SEO & blogs**: turn video into articles and captions.
- **Accessibility & subtitles**: SRT/VTT files for re-uploads.
- **Academic & market research**: analyse spoken content at scale.

### Supported URLs

- YouTube: `youtube.com/watch?v=…`, `youtube.com/shorts/…`, `youtu.be/…`, channels `youtube.com/@handle` (Shorts, videos or both), playlists
- TikTok: `tiktok.com/@user/video/…`, `vm.tiktok.com/…` short links, profiles `tiktok.com/@user`
- Instagram: `instagram.com/reel/…`, `/p/…`, `/tv/…`; profiles `instagram.com/user` are experimental (Instagram often rate-limits logged-out profile requests; reel URLs are reliable)
- Facebook: `facebook.com/reel/…`, `/watch/?v=…`, `/<page>/videos/…`, `fb.watch/…`, `facebook.com/share/r/…`; pages `facebook.com/<page>` / `facebook:<page>` list the page's public Reels (experimental, up to ~10 recent reels, not strictly date-ordered)

### Tips for the best success rate

- Keep the default **Apify Proxy**. If a platform blocks a datacenter IP, the actor automatically retries that video through a residential IP (included in the price). If the proxy itself fails, it retries over a direct connection.
- Stories, private accounts, age-restricted and login-only posts cannot be transcribed, because we never log in. You are not charged for them.
- Use `transcriptionMode: captionsOnly` for the cheapest bulk YouTube runs.
- `asrModel: auto` uses Whisper *base* with a wider beam search for non-English speech (good German/Spanish/French quality at the normal price). Pick `small` for the hardest audio; it is billed as 2 units per 2 minutes.

### FAQ

**Is it legal to scrape video transcripts?** This actor only processes publicly available videos and does not log in or bypass access controls. Transcripts may contain personal data and copyrighted material: you are responsible for having a legitimate reason and complying with GDPR, copyright and the platforms' terms. If in doubt, ask a lawyer. Read more in [Apify's blog on web scraping legality](https://blog.apify.com/is-web-scraping-legal/).

**How accurate are the transcripts?** Captions come straight from the platform or creator. Whisper AI is very accurate on clear speech; heavy music, slang or overlapping voices reduce accuracy (see `asrConfidence`).

**Why is a video marked `no_speech`?** It has only music or on-screen text. Not charged.

**Can I translate transcripts?** Use the `language` field and pipe `text` into any translation step or LLM.

**Why did an Instagram reel fail with `login_required`?** Some reels (age-restricted, or from accounts that limit logged-out viewers) are only shown to logged-in users. We never log in, so these come back as free error rows. Reel and post URLs from public accounts work reliably.

**Do Instagram and Facebook profiles work?** Facebook pages list their latest public Reels (up to ~10). Instagram profile listing is experimental, because Instagram rate-limits logged-out profile requests; paste reel URLs for reliable results.

**How fast is it?** Videos with captions take ~2–8 s. AI transcription runs at about 4–6x real time with the default 4 GB memory (an 80-video mixed run takes ~5–10 minutes).

**Can I use it via API or MCP?** Yes, like every Apify actor: REST API, Python/JS clients, the Apify MCP server, Make, Zapier, n8n.

### Ready-made templates

Related: the [Market Radar n8n pack](https://pegton.gumroad.com/l/market-radar-n8n) has four ready-to-import workflows for ads, app reviews, creators and leads, built on the other pegton Actors. This Actor can be called from n8n in the same way, via the Apify node.

Found a bug or need a feature? Open an issue in the **Issues** tab, we usually answer within a day.

# Actor input Schema

## `videoUrls` (type: `array`):

Links to public videos. Mix platforms freely: YouTube (watch, Shorts, youtu.be), TikTok (incl. vm.tiktok.com short links), Instagram Reels/posts, Facebook reels/videos/fb.watch.

## `profiles` (type: `array`):

Get the latest videos of creators. Use a profile URL (youtube.com/@MrBeast, tiktok.com/@nasa) or the shorthand platform:handle (tiktok:nasa, youtube:@MrBeast). YouTube channels and TikTok profiles are fully supported. Instagram profile listing is experimental (Instagram often rate-limits logged-out profile requests) - pass reel URLs for reliable results. Facebook pages are not supported yet (use video URLs).

## `maxVideosPerProfile` (type: `integer`):

How many of the newest videos to take from each profile/channel.

## `youtubeTab` (type: `string`):

Which videos to take from a YouTube channel.

## `onlyNewerThan` (type: `string`):

Skip older videos (free). Absolute date (2026-01-31) or relative (7 days, 2 weeks, 3 months). Great for scheduled monitoring.

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

Optional ISO 639-1 code (en, de, es, fr, pt, ...). Prefers captions in this language and forces speech-to-text to this language. Leave empty for automatic detection (recommended for mixed lists).

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

Plain text is always included. Add timestamped segments, paragraph text (split at pauses, ideal for LLMs/blogs), SRT or WebVTT subtitle files.

## `includeHook` (type: `boolean`):

Adds the words spoken in the first seconds plus hook stats (question / number / direct address / story, words per second, silent start). Free.

## `hookSeconds` (type: `integer`):

How many opening seconds count as the hook.

## `transcriptionMode` (type: `string`):

auto = use existing captions first (fast, cheap) and fall back to AI speech-to-text only when a video has none. captionsOnly = never run speech-to-text (cheapest; videos without captions are skipped for free). asrOnly = always run speech-to-text.

## `asrModel` (type: `string`):

Whisper model for videos without captions. auto = 'base' (fast; beam search for non-English for better accuracy). 'small' = higher accuracy for accents/noisy audio, but ~4x slower: billed as 2 units per 2 minutes. 'tiny' = fastest, lowest accuracy.

## `maxAsrDurationSec` (type: `integer`):

Longer videos without captions are skipped (free). Speech-to-text is billed per started 2 minutes of audio.

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

Hard stop after this many successful transcripts (0 = no limit). Remaining videos are listed as skipped and not charged.

## `maxChargeUsd` (type: `string`):

Optional own cost cap, e.g. 1.50. The actor stops before exceeding it. Also respects the platform's 'Max cost per run' setting.

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

How many videos to process in parallel. 6 is optimal for the default 4 GB memory (below 2 GB the actor uses 2).

## `maxRetries` (type: `integer`):

Retries with a fresh proxy IP on blocks, rate limits and network errors.

## `residentialFallback` (type: `boolean`):

If YouTube/Instagram/TikTok answer a datacenter IP with a bot check, retry that single video through a residential IP. Higher success rate at no extra cost to you.

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

Apify Proxy is recommended. Choose the RESIDENTIAL group for Instagram profiles and if YouTube or Instagram return 'blocked'.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.tiktok.com/@nasa/video/7706264639297850637",
    "https://www.instagram.com/reel/DUS8Co4CPeJ/",
    "https://www.youtube.com/shorts/41UzbuW6wJs",
    "https://www.facebook.com/watch/?v=10153231379946729"
  ],
  "maxVideosPerProfile": 10,
  "youtubeTab": "shorts",
  "outputFormats": [
    "text",
    "segments",
    "srt"
  ],
  "includeHook": true,
  "hookSeconds": 3,
  "transcriptionMode": "auto",
  "asrModel": "auto",
  "maxAsrDurationSec": 1800,
  "maxItems": 0,
  "maxConcurrency": 6,
  "maxRetries": 3,
  "residentialFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All result rows (successful transcripts and free error rows). Switch between the 'overview' and 'errors' views in Console.

## `runSummary` (type: `string`):

RUN_SUMMARY record: counts per platform and status, estimated charge, runtime and stop reason.

# 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 = {
    "videoUrls": [
        "https://www.tiktok.com/@nasa/video/7706264639297850637",
        "https://www.instagram.com/reel/DUS8Co4CPeJ/",
        "https://www.youtube.com/shorts/41UzbuW6wJs",
        "https://www.facebook.com/watch/?v=10153231379946729"
    ],
    "outputFormats": [
        "text",
        "segments",
        "srt"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pegton/video-transcripts").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 = {
    "videoUrls": [
        "https://www.tiktok.com/@nasa/video/7706264639297850637",
        "https://www.instagram.com/reel/DUS8Co4CPeJ/",
        "https://www.youtube.com/shorts/41UzbuW6wJs",
        "https://www.facebook.com/watch/?v=10153231379946729",
    ],
    "outputFormats": [
        "text",
        "segments",
        "srt",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("pegton/video-transcripts").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 '{
  "videoUrls": [
    "https://www.tiktok.com/@nasa/video/7706264639297850637",
    "https://www.instagram.com/reel/DUS8Co4CPeJ/",
    "https://www.youtube.com/shorts/41UzbuW6wJs",
    "https://www.facebook.com/watch/?v=10153231379946729"
  ],
  "outputFormats": [
    "text",
    "segments",
    "srt"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call pegton/video-transcripts --silent --output-dataset

```

## MCP server setup

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

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/v3XWjhUJq8bEKZ8rq/builds/WmOItxCU1UohvDkFt/openapi.json
