# Facebook Video & Ad Transcript Extractor (`alpha-scraper/facebook-video-ad-transcript-extractor`) Actor

\[ 1k/1.49$ ] Facebook Video & Ad Transcript Extractor turns the caption tracks Facebook exposes for public videos and reels into clean transcript text and timed segments, with no speech-to-text. Videos without captions return a no_captions status. Direct video URLs.

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

## Pricing

from $1.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 & Ad Transcript Extractor

**Facebook Video & Ad Transcript Extractor** turns the caption tracks that Facebook publishes for public videos and reels into clean transcript text and timed segments. Give Facebook Video & Ad Transcript Extractor a video link, a reel link or a Facebook Page name, and it returns the spoken words, the caption language, word counts and video details in one record.

Facebook Video & Ad Transcript Extractor does not run speech-to-text. It reads the .srt or .vtt captions that Facebook already exposes, so you get the transcript without a Facebook login. Facebook videos with no caption track are still returned, marked `no_captions`.

> **📌 At a glance**
>
> - **Input:** Facebook video, reel, Watch, share and fb.watch links, numeric video ids, Page URLs and Page usernames
> - **Output:** one transcript record per Facebook video, with text and optional timed segments
> - **Languages:** pick your preferred Facebook caption languages, or return every available track
> - **Ads:** works with a Facebook ad creative when you pass its direct video URL

Content teams, ad researchers, accessibility reviewers and analysts use Facebook Video & Ad Transcript Extractor to search what Facebook videos say, quote them, summarise them or feed them into text analysis tools.

### 🔹 Facebook Video & Ad Transcript Extractor – Key Features

Facebook Video & Ad Transcript Extractor focuses on readable, structured transcripts.

- **Clean transcript text:** Facebook caption cues are merged into running text, and repeated cues are dropped.
- **Timed segments:** each segment has an index, start and end in seconds, clock times and text.
- **Language preference:** `languages` sets the order, and an original track is chosen before an auto-translated one.
- **All tracks on request:** `allLanguages` adds every other caption track to the record.
- **Raw captions:** keep the original .srt or .vtt text with `includeRawCaptions`.
- **Honest status:** every record says `ok`, `no_captions`, `download_failed` or `unavailable`.
- **Whole Pages:** pass a Page and the latest videos of that Facebook Page are transcribed.
- **Video context:** title, owner, publish time, duration, views, reel and live replay flags come with each Facebook transcript.

> **✅ Why use this Actor**
>
> Facebook Video & Ad Transcript Extractor saves you from watching videos and typing notes. It collects the caption files, cleans them and returns one consistent JSON record per Facebook video.

### 🔍 What Data Does Facebook Video & Ad Transcript Extractor Extract?

Each dataset item describes one video. The table groups the fields by purpose.

| Group | Fields | What you get |
|---|---|---|
| Source | `type`, `inputUrl`, `videoId`, `url` | The input you gave and the resolved Facebook video |
| Video | `title`, `description`, `ownerName`, `ownerId`, `createdTime` | Who published the Facebook video and when |
| Stats | `durationSeconds`, `viewCount`, `isReel`, `isLiveReplay`, `thumbnail_url` | Length, views, format flags and preview image |
| Captions | `status`, `availableLocales`, `captionsLocale`, `captionsLanguage`, `captionsMethod`, `captionsFormat`, `captionsUrl` | Which track was used and where it came from |
| Transcript | `transcript`, `wordCount`, `segmentCount`, `segments` | Clean text, counts and timed segments |
| Extras | `rawCaptions`, `tracks`, `note`, `error` | Raw text, other languages and explanations |
| Meta | `number`, `scrapedAt` | Position and collection time |

The `status` field makes Facebook Video & Ad Transcript Extractor easy to filter: `ok` has a transcript, `no_captions` means Facebook exposes no track, `download_failed` means the track could not be fetched, and `unavailable` means the video could not be opened.

### 🚀 How to Use Facebook Video & Ad Transcript Extractor

Running Facebook Video & Ad Transcript Extractor takes a few steps in Apify Console.

- **Step 1 – Open the Actor:** start Facebook Video & Ad Transcript Extractor from the Apify Store and go to the Input tab.
- **Step 2 – Add Facebook videos:** paste video, reel or share links into `startUrls`, or Page names into `usernames`.
- **Step 3 – Set languages:** keep `en` in `languages` or list your preferred caption languages in order.
- **Step 4 – Choose the output:** switch `includeSegments`, `includeRawCaptions` and `allLanguages` on or off.
- **Step 5 – Set a limit:** use `maxItems` to cap the videos taken from each Page.
- **Step 6 – Run and export:** start Facebook Video & Ad Transcript Extractor, then export the dataset as JSON, CSV or Excel.

> **💡 Tip:** `startUrls` is prefilled with a sample video link. Replace it with your own links before you run Facebook Video & Ad Transcript Extractor.

### 📥 Facebook Video & Ad Transcript Extractor Input

Facebook Video & Ad Transcript Extractor has eight input fields. All are optional, but you need at least one link or username.

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | Facebook video, reel, Watch, share or fb.watch links, numeric video ids, and Page URLs. Ad Library links are skipped. |
| `usernames` | array | Facebook Page usernames or ids whose latest videos are transcribed. Default is empty. |
| `languages` | array | Caption languages in order of preference, such as `en`, `hi` or a locale like `en_US`. Default `["en"]`. |
| `skipWithoutCaptions` | boolean | Drop every video that does not end with status `ok`. Default `false`. |
| `allLanguages` | boolean | Also return every other caption track in `tracks`. Default `false`. |
| `includeSegments` | boolean | Add the timed segments of each transcript. Default `true`. |
| `includeRawCaptions` | boolean | Keep the raw .srt or .vtt text in `rawCaptions`. Default `false`. |
| `maxItems` | integer | Videos taken from each Page or username. Minimum 1, default 30. Direct video links are not limited. |

Every Facebook Page entry gets its own `maxItems` limit, so two Pages with `maxItems` set to 10 give up to 20 videos. Duplicate Facebook videos are processed once.

Here is a sample input that transcribes one video and the latest videos of one Page, preferring English and Spanish:

```json
{
  "startUrls": ["https://www.facebook.com/watch/?v=1442739961370768"],
  "usernames": ["natgeo"],
  "languages": ["en", "es"],
  "skipWithoutCaptions": true,
  "allLanguages": false,
  "includeSegments": true,
  "includeRawCaptions": false,
  "maxItems": 10
}
```

### 📤 Facebook Video & Ad Transcript Extractor Output

Facebook Video & Ad Transcript Extractor writes one record per Facebook video to the default dataset. Here is a record with status `ok`:

```json
{
  "type": "transcript",
  "inputUrl": "https://www.facebook.com/watch/?v=1843998063403251",
  "videoId": "1843998063403251",
  "url": "https://www.facebook.com/samplepage/videos/1843998063403251/",
  "title": "Behind the scenes at the harbor",
  "description": "A short tour of our morning routine.",
  "ownerName": "Sample Page",
  "ownerId": "100000000000001",
  "createdTime": "2026-10-30T16:00:00.000Z",
  "durationSeconds": 42.5,
  "viewCount": 18250,
  "isReel": false,
  "isLiveReplay": false,
  "thumbnail_url": "https://scontent.xx.fbcdn.net/v/sample_thumb.jpg",
  "status": "ok",
  "availableLocales": ["en_US", "es_LA"],
  "captionsLocale": "en_US",
  "captionsLanguage": "English (US)",
  "captionsMethod": "Auto-generated",
  "captionsFormat": "srt",
  "captionsUrl": "https://example.com/captions/sample.srt",
  "transcript": "Good morning everyone. Today we are showing how the harbor wakes up.",
  "wordCount": 12,
  "segmentCount": 2,
  "segments": [
    { "index": 1, "start": 0.4, "end": 2.1, "startTime": "00:00:00.400", "endTime": "00:00:02.100", "text": "Good morning everyone." },
    { "index": 2, "start": 2.3, "end": 6.8, "startTime": "00:00:02.300", "endTime": "00:00:06.800", "text": "Today we are showing how the harbor wakes up." }
  ],
  "scrapedAt": "2026-11-06T17:47:53.000Z",
  "number": 1
}
```

A video without captions keeps its details and gets a short explanation:

```json
{
  "type": "transcript",
  "inputUrl": "https://www.facebook.com/reel/1843998063403252",
  "videoId": "1843998063403252",
  "ownerName": "Sample Page",
  "durationSeconds": 14.57,
  "isReel": true,
  "status": "no_captions",
  "availableLocales": null,
  "captionsLocale": null,
  "transcript": null,
  "wordCount": null,
  "segments": null,
  "note": "Facebook exposes no caption track for this video (no detected speech / captions disabled)",
  "scrapedAt": "2026-11-06T17:47:54.000Z",
  "number": 2
}
```

#### 🧾 Facebook Video & Ad Transcript Extractor output field guide

- `type` is always `transcript`, and `status` tells you whether the transcript is available.
- `videoId`, `url` and `inputUrl` connect the record to the Facebook video you asked for.
- `ownerName`, `ownerId`, `title`, `description` and `createdTime` describe the publisher and the Facebook post.
- `captionsLocale`, `captionsLanguage` and `captionsMethod` show which track was used, such as an uploaded or auto-generated one.
- `transcript` is the clean running text, with `wordCount` and `segmentCount` as quick checks.
- `segments` lists `index`, `start`, `end`, `startTime`, `endTime` and `text` for each caption cue.
- `tracks` holds the other languages when `allLanguages` is on, and `rawCaptions` holds the original file text when `includeRawCaptions` is on.
- `error` appears with status `unavailable` and explains why the video could not be opened.

### 🎬 How to Transcribe a Facebook Video with Facebook Video & Ad Transcript Extractor

To transcribe one Facebook video, paste its link into `startUrls` and run Facebook Video & Ad Transcript Extractor. Watch links, reel links, share links, fb.watch links and plain numeric ids all work.

For many videos, add a Facebook Page to `usernames` or `startUrls` and set `maxItems`. Facebook Video & Ad Transcript Extractor lists the latest videos of that Page and transcribes each one that has captions.

### 📢 How to Get the Transcript of a Facebook Ad Video with Facebook Video & Ad Transcript Extractor

The Facebook Ad Library itself is not scraped, and Ad Library links in `startUrls` are skipped. If you have the direct video URL of an ad creative, paste that link instead.

Facebook Video & Ad Transcript Extractor then handles the ad video like any other public video: it returns the transcript when a caption track exists, and `no_captions` when it does not.

### 🎯 Facebook Video & Ad Transcript Extractor Use Cases

Facebook Video & Ad Transcript Extractor fits many workflows that depend on spoken content.

- **Ad research:** study the messaging and calls to action of video ads you can reach by direct link.
- **Content repurposing:** turn Facebook videos into blog posts, quotes or social captions.
- **Competitor analysis:** compare what rival Pages say in their latest videos.
- **Search and indexing:** build a searchable archive of Facebook video transcripts.
- **Accessibility checks:** find which Facebook Page videos have caption tracks and which do not.
- **Text analysis:** feed Facebook transcripts into summaries, topic models or sentiment tools.

### 💰 Pricing

Facebook Video & Ad Transcript Extractor runs on the Apify platform. The current pricing is shown on the Actor page in the Apify Store, and your cost depends on the number of results and the resources used by the run.

> **💡 Cost tip:** start with a small `maxItems` such as 5, turn off `allLanguages` and `includeRawCaptions`, and check the first records before a large Facebook Video & Ad Transcript Extractor run.

### 💡 Tips and Best Practices

- **Start small:** a short run confirms the Facebook link works and shows the transcript fields.
- **Expect gaps:** Facebook Video & Ad Transcript Extractor reads existing captions, so a video without them returns `no_captions`.
- **Order your languages:** list the most important language first in `languages`.
- **Filter results:** switch on `skipWithoutCaptions` to keep only records with status `ok`.
- **Trim the output:** turn off `includeSegments` when you only need the plain `transcript`.
- **Use public videos:** Facebook Video & Ad Transcript Extractor works with public videos, and private or removed ones return status `unavailable`.
- **Check nulls:** a `null` field means the value was not shown, not that Facebook Video & Ad Transcript Extractor failed.

> **⚠️ Important:** only use transcripts you are allowed to use. Spoken words in Facebook videos can contain personal data and are often protected by copyright, so follow Facebook's terms and rules such as GDPR. This Actor is not affiliated with or endorsed by Meta.

### ❓ Frequently Asked Questions

#### 🔎 What is Facebook Video & Ad Transcript Extractor?

Facebook Video & Ad Transcript Extractor is an Apify Actor that converts the caption tracks of public Facebook videos and reels into transcript text and timed segments.

#### 🧭 How do I get a transcript of a Facebook video?

Paste the video or reel link into `startUrls` and start Facebook Video & Ad Transcript Extractor. The transcript appears in the `transcript` field of the dataset record.

#### 🗣️ Does Facebook Video & Ad Transcript Extractor use speech-to-text or AI?

No. Facebook Video & Ad Transcript Extractor only converts caption files that Facebook already exposes. It does not listen to the audio.

#### 🌍 Can I choose the transcript language with Facebook Video & Ad Transcript Extractor?

Yes. List your preferred codes in `languages`. If none is available, Facebook Video & Ad Transcript Extractor picks an original track before an auto-translated one.

#### 🔤 Can I get every available Facebook caption language?

Yes. Switch on `allLanguages` and Facebook Video & Ad Transcript Extractor adds the other caption tracks to `tracks`.

#### 📢 Can I extract transcripts from Facebook ads?

Only through the direct video URL of the ad creative. Ad Library links are skipped, and the Ad Library is not scraped.

#### 🚫 Why does Facebook Video & Ad Transcript Extractor return no_captions for a video?

Facebook exposes no caption track for that video, for example because no speech was detected or captions are turned off.

#### 🔐 Does Facebook Video & Ad Transcript Extractor need a Facebook login?

No. Facebook Video & Ad Transcript Extractor reads publicly visible video pages, so no account or cookies are required.

#### ⏱️ Can I get timestamps for each sentence?

Yes. Keep `includeSegments` on and Facebook Video & Ad Transcript Extractor returns the start and end of every caption cue.

#### 📊 Can I export transcripts to CSV or Excel?

Yes. Any Apify dataset can be downloaded as JSON, CSV, Excel, XML or HTML, or read through the Apify API.

#### ⚖️ Is it legal to extract Facebook video transcripts?

Facebook Video & Ad Transcript Extractor collects public Facebook content only. You are responsible for how you use the text, so check Facebook's terms and local privacy laws first.

### 📞 Support

If you have questions, ideas for new fields or a video where Facebook Video & Ad Transcript Extractor returns no transcript, send the link and the input you used.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

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

Video, reel, Watch, share (/share/v|r/) or fb.watch URLs, bare numeric video ids, and/or Page URLs (the Page's latest videos are transcribed). Ad Library links are skipped: pass the ad's direct video URL instead.

## `usernames` (type: `array`):

Pages (username or Page id) whose latest videos are transcribed.

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

Caption languages in order of preference, e.g. en, hi (a full locale such as en_US also works). If none of them is available, an original track is chosen before any auto-translated one.

## `skipWithoutCaptions` (type: `boolean`):

Drop videos that have no caption track (status no_captions) from the output.

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

Also return every other available caption track in 'tracks'.

## `includeSegments` (type: `boolean`):

Add the timed segments (start, end, text) of each transcript.

## `includeRawCaptions` (type: `boolean`):

Keep the raw .srt / .vtt caption text.

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

Maximum number of videos taken from each Page or username - every Page entry gets its own limit. Direct video URLs are not limited.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.facebook.com/watch/?v=1442739961370768"
  ],
  "usernames": [],
  "languages": [
    "en"
  ],
  "skipWithoutCaptions": false,
  "allLanguages": false,
  "includeSegments": true,
  "includeRawCaptions": false,
  "maxItems": 15
}
```

# Actor output Schema

## `results` (type: `string`):

Structured records extracted by Facebook Video & Ad Transcript Extractor and stored in the run's default dataset.

# 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.facebook.com/watch/?v=1442739961370768"
    ],
    "languages": [
        "en"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/facebook-video-ad-transcript-extractor").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.facebook.com/watch/?v=1442739961370768"],
    "languages": ["en"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/facebook-video-ad-transcript-extractor").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.facebook.com/watch/?v=1442739961370768"
  ],
  "languages": [
    "en"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/facebook-video-ad-transcript-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/facebook-video-ad-transcript-extractor"
        }
    }
}
```

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/NoPa1tfBZaXx11GVd/builds/fu3f3sbbKQL3vcLAs/openapi.json
