# Facebook & Instagram Video Ad Analyzer: Transcript, Hook, CTA (`neonroobz/facebook-instagram-video-ad-analyzer`) Actor

Competitors' video ads from the Meta Ad Library: the transcript in the language spoken, the 3-second hook, on-screen text and the call to action. $10 per 1,000 ads analyzed; ads with nothing to read are free. The Ad Library scraper adds $0.75 per 1,000 ads, billed to your account.

- **URL**: https://apify.com/neonroobz/facebook-instagram-video-ad-analyzer.md
- **Developed by:** [nnrbzz](https://apify.com/neonroobz) (community)
- **Categories:** Social media, Videos, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## Facebook & Instagram Video Ad Analyzer: Transcript, Hook, CTA

Study your competitors' video ads from the Meta Ad Library: type a keyword or paste an Ad Library search or a brand's page, and get every ad's transcript in the language spoken, its 3-second hook, the text on screen and its call to action. **$10 per 1,000 ads analyzed**. Ads with nothing to read, and failures, are free.

### How much does it cost?

| Price | Per 1,000 | Each | Charged when |
|---|---|---|---|
| Ad analyzed | **$10 per 1,000** | $0.01 | the ad's transcript or its on-screen text is delivered |
| Key moments (optional) | **$80 per 1,000** | $0.08 | at least one key moment is found in the ad |
| Silent ads with no text, failures, invalid inputs | **free** | $0 | never |

The ads are read from the Meta Ad Library by [Facebook Ads Library Scraper](https://apify.com/curious_coder/facebook-ads-library-scraper), which this actor runs for you. It is billed to your Apify account at its own price, $0.75 per 1,000 ads, on top of the prices above. It reads at least 10 ads per run (its minimum, under $0.01), and a search or page that comes back empty is asked once more before it is reported as `unavailable`.

### Key facts

- **Input:** keywords (with a country), Meta Ad Library search links, or Facebook page links. Up to `maxAds` ads from each (default 20).
- **Output:** one row per ad: the ad's details (page, start date, platforms, active, link, headline, text, CTA button), `transcript` and `language`, `hook`, `on_screen_text`, `spoken_cta`, with a stable `status` and `error_code`.
- **Any language:** the transcript is in the language spoken, not translated.
- **Silent ads (music only)** are read from the screen: their on-screen text and hook. Charged only when there is text.
- **Charged only for analyzed ads;** failures and invalid inputs are free rows. Your spending limit is respected.
- **Speed:** 3 ads in 101 seconds (the example run, 16 Nov 2026); 40 ads in 622 seconds, about 15 seconds per ad in a batch (15 Nov 2026). Downloading the ad videos takes most of the time.

### What you get for each ad

| Field | What it is |
|---|---|
| `ad_archive_id`, `ad_url` | The ad's ID and its Ad Library link |
| `page_name`, `page_url` | The advertiser's Facebook page |
| `start_date`, `end_date`, `active` | Running since, until, and whether it is still running |
| `platforms` | Where it runs: facebook, instagram, messenger, threads, whatsapp, audience_network |
| `headline`, `ad_text` | The ad's own headline and text |
| `cta` | The ad's CTA button: `type` (e.g. `SHOP_NOW`), `text` and `link_url`; null when it has none |
| `transcript`, `language`, `words` | Everything said in the ad, in the language spoken (ISO 639-1 code) |
| `hook` | The first 3 seconds: what is said (`hook_spoken`) and what is shown on screen (`hook_on_screen`) |
| `on_screen_text` | Text shown in the video: titles, captions, offers, prices |
| `spoken_cta` | The call to action said in the ad, quoted from the transcript; null when the ad says none |
| `video_url`, `duration_s`, `display_format`, `video_count` | The video file read (Meta's links expire within days), its length, the ad's format, and how many versions it has |
| `key_moments` | With `keyMoments` on: the frames where something shown carries information, and what is visible there |
| `status`, `error_code`, `error` | `ok`, `no_speech` or `error`, with a stable code |
| `step_seconds`, `charged_events` | Seconds per step, and what this row was charged |

Example (illustrative, shortened):

```json
{
  "ad_archive_id": "1234567890123456",
  "page_name": "Example Brand",
  "start_date": "2026-10-01",
  "platforms": ["facebook", "instagram", "messenger", "threads"],
  "cta": { "type": "SHOP_NOW", "text": "Shop now", "link_url": "https://example.com/shop" },
  "status": "ok",
  "language": "en",
  "hook": "Said: Here's why I switched my morning shake. | Shown: WHY I SWITCHED",
  "on_screen_text": "WHY I SWITCHED\n30G PROTEIN\n20% OFF TODAY",
  "spoken_cta": "Tap the link below and use code SHAKE20.",
  "charged_events": ["ad-analyzed"]
}
```

#### Key moments

Turn on `keyMoments` to also get the frames where something shown carries information: a product, a price, an offer, a before-and-after. Each moment has its time, what is shown and the facts visible there; the frames are kept in the run's key-value store. It reads what is shown; small print can be misread. Charged only when a moment is found: $0.08, once per ad.

### Error codes

| Code | Meaning | Charged |
|---|---|---|
| `no_speech` | No speech in the audio (music only). Its on-screen text and hook are still read, and charged when found | only for text found |
| `no_audio` | An image ad, or a video with no sound (its on-screen text is still read) | only for text found |
| `unavailable` | No active ads found for this search or page | free |
| `download_failed` | The video file could not be downloaded | free |
| `transcription_failed` | Speech-to-text failed | free |
| `invalid_input` | Not an Ad Library link or a Facebook page | free |

A country that is not a two-letter code (such as `US`) or `ALL` stops the run before anything is fetched or charged.

### FAQ

#### Which ads does it read?

Active video ads in the Meta Ad Library, which covers Facebook, Instagram, Messenger, Threads and WhatsApp. A keyword search and an Ad Library link are held to video ads. A page gives all its active ads; its image ads come back as free rows.

#### What is the hook?

What the ad says and shows in its first 3 seconds, the part that decides whether people keep watching: the words spoken (`hook_spoken`) and the text on its first frames (`hook_on_screen`).

#### How is the spoken CTA found?

A model quotes the call to action from the transcript (shop, visit, sign up, use a code ...). A quote is kept only when its words are the transcript's own, so nothing is made up. Many ads leave the call to action to their button: that is in `cta`.

#### Is anything stored?

No. Nothing is kept between runs.

### Limits

- **Public ads only:** what the Meta Ad Library shows. No spend or reach figures (Meta gives them only for political ads and in the EU).
- **One video per ad:** a dynamic ad with several versions is read from its first video; `video_count` says how many it has.
- **The same video in several ads** is analyzed and charged once per ad: `collation_id` groups an advertiser's versions.
- **On-screen text** is read from 4 frames spread over the video, and the hook from 3 frames in its first 3 seconds; text shown only between them can be missed.

### How we measured

Offline test (15 Nov 2026): the pipeline run on 31 active US video ads from two Ad Library keyword searches (protein powder, skincare), the ads' own video files. 24 of 31 had speech: all 24 transcribed, in the right language; two judge models listening to the audio scored the transcripts 9.8 of 10 on average (lowest 9). 6 were music only: none got a transcript, and 4 were charged for their on-screen text.

Speed, live on Apify: the example run (3 ads, 16 Nov 2026) and a 40-ad run (15 Nov 2026).

# Actor input Schema

## `keywords` (type: `array`):

Search terms, as typed in the Meta Ad Library (e.g. a product or a brand). Each gives the active video ads in your country.

## `country` (type: `string`):

Two-letter country code for keyword searches and pages (US, GB, DE ...), or ALL. Default US.

## `adLibraryUrls` (type: `array`):

facebook.com/ads/library/?... search links, with your own filters, or a single ad (?id=...). Searches are held to video ads.

## `pageUrls` (type: `array`):

A brand's page (facebook.com/name). Gives its active ads; image ads come back as free rows.

## `maxAds` (type: `integer`):

Most ads taken from each keyword, link or page. Default 20, maximum 500.

## `keyMoments` (type: `boolean`):

The frames where something shown carries information (a product, a price, an offer), with what is visible there. Small print can be misread. Charged only when a moment is found: $80 per 1,000.

## `concurrency` (type: `integer`):

Ads processed in parallel. Default 3, maximum 8.

## Actor input object example

```json
{
  "keywords": [
    "protein powder"
  ],
  "country": "US",
  "adLibraryUrls": [],
  "pageUrls": [],
  "maxAds": 3,
  "keyMoments": false,
  "concurrency": 3
}
```

# Actor output Schema

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

One row per ad: transcript, hook, on-screen text, CTA; free rows for ads with nothing to read and for failures, each with status and error_code.

## `summary` (type: `string`):

Run summary: counts by status and error code, events charged, model cost, seconds per step (step_seconds), the Ad Library scraper's run.

# 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 = {
    "keywords": [
        "protein powder"
    ],
    "maxAds": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("neonroobz/facebook-instagram-video-ad-analyzer").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 = {
    "keywords": ["protein powder"],
    "maxAds": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("neonroobz/facebook-instagram-video-ad-analyzer").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 '{
  "keywords": [
    "protein powder"
  ],
  "maxAds": 3
}' |
apify call neonroobz/facebook-instagram-video-ad-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neonroobz/facebook-instagram-video-ad-analyzer"
        }
    }
}
```

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/dH7Eaj9DEjOV3jDq2/builds/oMmSzpi7wq37mabAi/openapi.json
