# Facebook Video Transcript Scraper (`rainminer/facebook-video-transcript-scraper`) Actor

Transcribes public Facebook Reels at $10.00/1k, vs $25.00/1k for the top alternative, with timed transcript segments. Default: transcript only when an original-language caption track exists; translated-only or no captions return an explicit error row (not charged). Optional AI speech fallback.

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

## Pricing

from $7.50 / 1,000 video transcribeds

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

## Facebook Video Transcript Scraper

Transcribes public Facebook Reels at $10.00/1k, vs $25.00/1k for the top alternative, with timed transcript segments.

Transcribe public Facebook videos and Reels. **With the default settings** (`allowSpeechToText: false`), the Actor returns a transcript **only** when yt-dlp exposes a caption track that matches the video's original language (title and description are checked with offline language detection). Videos with **no caption tracks** get `ok: false` and `no_captions_available`. Videos that have captions but **only translated** tracks get `ok: false` and `no_original_language_captions`. Those error rows are **not charged** and no video file is downloaded for them.

**Coverage varies by video.** In our DQ audit sample of 11 public URLs (caption-only mode), **3 had usable original-language captions** and 8 returned explicit errors. Your mileage will depend on how Facebook exposes captions for each post.

Set `allowSpeechToText` to true to fall back to **Gemini speech-to-text** via OpenRouter when no caption track passes that check (paid API). Optional on-screen text requires speech mode.

Related:

- [Instagram Reel Transcript Scraper](https://apify.com/rainminer/instagram-reel-transcript-scraper)
- [Instagram Reel Text Extractor](https://apify.com/rainminer/instagram-reel-text-extractor)
- [Instagram Story Transcript Scraper](https://apify.com/rainminer/instagram-story-transcript-scraper)

### Input

```json
{
  "videoUrls": ["https://www.facebook.com/reel/916623766125417/"],
  "maxItems": 5,
  "allowSpeechToText": false,
  "includeOnScreenText": false
}
```

Supports `facebook.com/reel/...`, `facebook.com/watch?v=...`, page `/videos/<id>` and `/videos/<slug>/<id>`, `facebook.com/share/v/...` and `share/r/...` (resolved via yt-dlp), and `fb.watch` links.

### Output

| Field | Description |
| --- | --- |
| `url` | Request URL (normalized when possible) |
| `videoId` | Numeric video id |
| `owner` | Page or uploader name when metadata includes it |
| `caption` | Post description when available |
| `durationSeconds` | ffprobe, else yt-dlp `duration` |
| `transcriptSource` | `captions` or `speech` |
| `language` | ISO 639-1 when known |
| `captionLanguage` | Raw locale key from yt-dlp (for example `en_US`, `id_ID`) |
| `transcript` | Full text |
| `ok` | `true` on success; `false` with `error` when captions are rejected and speech is off |
| `error` | `invalid_url`, `video_unavailable`, `no_captions_available` (zero tracks), or `no_original_language_captions` (tracks exist but none match title language) |
| `availableCaptionLocales` | Caption locale keys present in metadata when `ok` is false |
| `transcriptSegments` | Timed segments |
| `onScreenTextSegments` | Optional OCR segments |

### Pricing

- **video**: $0.01 per saved row (up to 60 s)
- **extra-minute**: $0.005 per started minute beyond 60 s

Every input URL produces one dataset row (success or error). Invalid URLs use `invalid_url`. With `allowSpeechToText` false, rejected or missing caption tracks produce an `ok: false` error row with no charge and no video download. Unavailable videos use `video_unavailable`.

### Requirements

`OPENROUTER_API_KEY` only when `allowSpeechToText` or `includeOnScreenText` is enabled. Apify Proxy is recommended for downloads.

### Limitations

- Public videos only
- Default mode needs an original-language caption track from yt-dlp; many Reels and page videos have none or translated-only tracks
- Translated auto-captions (for example English audio with only `id_ID` tracks) are rejected on purpose
- Optional speech-to-text is off by default and requires `OPENROUTER_API_KEY`

### Image Credit

Image credit: [facebook.com](https://www.facebook.com/)

# Actor input Schema

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

Public Facebook video, Reel, or watch URLs. One dataset row per URL: transcript when a trusted original-language caption exists; otherwise error (no_original_language_captions or no_captions_available, not charged).

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

Maximum videos to transcribe in one run.

## `allowSpeechToText` (type: `boolean`):

When true, uses OpenRouter Gemini when no trusted original-language caption track is found. Default false to avoid paid API usage.

## `includeOnScreenText` (type: `boolean`):

When allowSpeechToText is true, adds onScreenTextSegments from AI vision (extra model call per video).

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

Apify Proxy is used for video downloads. Retries may switch to a direct connection.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.facebook.com/reel/916623766125417/"
  ],
  "maxItems": 5,
  "allowSpeechToText": false,
  "includeOnScreenText": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "videoUrls": [
        "https://www.facebook.com/reel/916623766125417/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/facebook-video-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 = {
    "videoUrls": ["https://www.facebook.com/reel/916623766125417/"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/facebook-video-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 '{
  "videoUrls": [
    "https://www.facebook.com/reel/916623766125417/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rainminer/facebook-video-transcript-scraper --silent --output-dataset

```

## MCP server setup

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