# Facebook & Meta Ads: Instagram, WhatsApp, Threads, Messenger (`fairfetcher/meta-ad-library`) Actor

Meta Ad Library ads from $0.35 per 1,000: Facebook, Instagram, WhatsApp, Threads, Messenger and Audience Network. Ad copy, images, videos, landing pages, dates, EU reach. No login, no cookies. Same input and output as curious_coder's Facebook Ad Library Scraper.

- **URL**: https://apify.com/fairfetcher/meta-ad-library.md
- **Developed by:** [FairFetcher](https://apify.com/fairfetcher) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 ads

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/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 Ads Library Scraper — Meta, Instagram, WhatsApp, Threads & Messenger

**Every ad running on Meta's platforms — including the ones the Ad Library hides behind its
"N ads use this creative and text" cards — as clean JSON, from $0.35 per 1,000 ads.** Search the
[Meta Ad Library](https://www.facebook.com/ads/library/) by keyword, advertiser, Facebook page
or ad ID and get the ad copy, images, videos, landing pages, CTAs, dates, platforms, and, for
ads shown in the EU, reach and audience data. No Facebook account, no cookies, nothing to install.

Those hidden ads are most of what other scrapers miss: **+75% ads** on an advertiser's active
ads in our own test (96 → 168), several times more on its inactive ones, and a quarter to a half
of a keyword search. Each is a separate ad with its own ad ID and its own dates — not a copy.

> 💸 **From $0.35 / 1,000 ads** ($0.42 on Apify's Free plan), plus Apify's standard start fee of $0.00005 per run. Ad details included at the same price.
> With Apify's free monthly credit, that is about **11,900 ads a month for free**.

***

### ⚡ Why this scraper

- **🗂️ Every ad, including the hidden ones**: the Ad Library shows ads that share a creative and
  text as ONE card saying "N ads use this creative and text". This scraper opens those cards, so
  you get each of those ads as its own row — with its own ad ID, dates and platforms. Measured:
  **+75% ads** on an advertiser's active ads (96 → 168) and several times more on its inactive
  ones; a quarter to a half of a keyword search's ads come from those cards. Switch
  **All ads of a group** off to skip them.
- **💰 Up to 13× cheaper**: $0.42 per 1,000 ads on Apify's Free plan, against $5.80 for Apify's own
  Facebook Ads Library Scraper ($1.00 at best); from $0.35 on paid plans, against $0.75 for curious_coder's.
- **🔁 Drop-in for curious_coder's users**: same input fields, same output fields as
  `curious_coder/facebook-ads-library-scraper`: change the actor ID, nothing else. Rows come out in
  the Ad Library's own order, and with ad details ours can carry a field or two Meta added that
  theirs do not. One difference on purpose: this scraper also returns the ads behind each
  "N ads use this creative and text" card (below), which theirs leaves out — switch
  **All ads of a group** off for row-for-row parity. Coming from Apify's own scraper? Its fields
  are camelCase (`publisherPlatform`), ours snake_case (`publisher_platform`): a small mapping.
- **⚡ Faster with ad details**: about 25% more ads a second than curious_coder's in that side-by-side
  test (3.8 against 3.0); as fast without details.
- **📱 All six Meta placements**: Facebook, Instagram, WhatsApp, Threads, Messenger and Audience
  Network; each ad says where it ran (`publisher_platform`).
- **🔓 No login, ever**: no Facebook account, no cookies. Nothing of yours is at risk.
- **🎯 Close to what you asked for, and never a repeat**: asked for 100 ads, it returned exactly
  100 in every one of our 20 side-by-side searches, where curious_coder's returned 118 to 120 and
  charged for each. With ad groups on it returns 100 to 112 (five searches), because it keeps every
  ad of the page the limit lands on. No duplicate rows either way, and ads come out in the Ad
  Library's own ranking, ad details included.

### 🆚 Compared with the two biggest Facebook Ads Library scrapers

| | **This scraper** | [Apify's Facebook Ads Library Scraper](https://apify.com/apify/facebook-ads-scraper) | [curious_coder's Facebook Ad Library Scraper](https://apify.com/curious_coder/facebook-ads-library-scraper) |
|---|---|---|---|
| 💰 Price per 1,000 ads | **$0.42 (Free) · $0.39 (Bronze) · $0.37 (Silver) · $0.35 (Gold+)** | $5.80 (Free) · $5.00 (Starter) · $1.00 at best | $0.75 |
| 🧮 10,000 ads cost you | **$4.20 (Free) · $3.50 at best** | $58.00 (Free) · $50.00 (Starter) | $7.50 |
| 🗂️ Ads behind an "N ads use this creative" card | **✅ each as its own row (+75% ads on an advertiser page)** | — | ❌ left out |
| 📦 Ask for 100 ads: you receive, and pay for | **100 to 112** (exactly 100 with ad groups off) | — | 118 to 120 |
| 🔍 Ad details with EU transparency data (EU reach, payer, beneficiary), no extra charge | ✅ | ✅ | ✅ |
| ⚡ Speed with ad details | **3.8 ads a second** | — | 3.0 ads a second |
| 🔢 Ad Library ranking kept with ad details | ✅ | — | ❌ (rows in the order their details arrive) |
| 📱 Facebook, Instagram, WhatsApp, Threads, Messenger, Audience Network | ✅ | ✅ | ✅ |
| 🧹 Duplicate rows | **none** | — | 0.2% (measured on 30,331 rows) |
| 🔓 Facebook login or cookies | ❌ never | ❌ | ❌ |

<sub>Our prices from November 15, 2026, the others' from the Apify Store on November 11, 2026, per 1,000
ads, plus a $0.00005 start fee per run for this scraper and curious_coder's. This scraper and Apify's
are priced by Apify plan. Size, speed and order: the same 20 searches run with this scraper and with
curious_coder's at the same moment, November 19, 2026; Apify's was not part of that test. The 100-to-112
range and the ad-group figures: five keyword searches and two advertiser pages, November 26, 2026.
"Left out" for curious_coder's: its own rows say so — the group is bigger than the rows it returned in
4,609 of 8,289 rows we read from past runs.</sub>

### 🎯 Who uses Ad Library data

- **📈 Marketers & media buyers**: see every creative a competitor is running, how long it has
  run (long-running ads are the winners), and on which platforms.
- **🛍️ E-commerce & dropshipping**: spot products being pushed hard right now, with their
  landing pages and offers.
- **🎨 Creative strategists**: build swipe files of hooks, formats, CTAs and video ads by niche.
- **🏢 Agencies**: monitor clients' markets and competitors on a schedule, straight into a
  spreadsheet, a database or a dashboard.
- **🔬 Researchers & journalists**: political, social-issue and EU transparency data at scale.
- **🤖 Developers & automations**: watch keywords from your own code: put each keyword in the
  search URL, call the API, get JSON back, no browser involved.

### 🚀 How to use it

#### Option 1 — paste an Ad Library URL

1. Open the [Meta Ad Library](https://www.facebook.com/ads/library/), set your country and
   filters, search, and **copy the URL** from your browser.
2. Paste it into **URLs**, set a **Limit per URL**, and click **Start**. Every filter you set on
   the Ad Library (exact phrase, dates, platform, ...) comes with the URL, like in this
   "black friday" search in France:

```json
{
  "urls": [
    { "url": "https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=FR&media_type=all&q=%22black%20friday%22&search_type=keyword_exact_phrase&start_date[min]=2026-10-01&start_date[max]=2026-11-10" }
  ],
  "limitPerSource": 100
}
```

#### Option 2 — no browser: put your keyword in the URL

Don't want to open the Ad Library? Use this input and replace `running%20shoes` with your
keyword (`%20` for each space) and `US` with your country:

```json
{
  "urls": [
    { "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=running%20shoes&search_type=keyword_unordered" }
  ],
  "limitPerSource": 100
}
```

Tick **Scrape ad details** in either case to add advertiser and EU transparency data, at the
same price. Download the results as JSON, CSV, Excel or HTML, or read them through the API.

#### What URLs work

| You paste | You get |
|---|---|
| An Ad Library search: `facebook.com/ads/library/?q=running%20shoes&country=US...` | Every ad matching the search and its filters, the ones behind each "N ads use this creative" card included |
| An advertiser: `facebook.com/ads/library/?view_all_page_id=123...` | All of that advertiser's ads, the ones behind those cards included |
| A single ad: `facebook.com/ads/library/?id=123...` | That ad |
| A Facebook page: `facebook.com/nike` | The page's ads, with the date, status, sort and country filters of the input |

### 📤 Output example

One row per ad (shortened; real rows carry every field the Ad Library shows):

```json
{
  "ad_archive_id": "1234567890123456",
  "page_name": "Example Running Co.",
  "is_active": true,
  "publisher_platform": ["FACEBOOK", "INSTAGRAM", "THREADS", "WHATSAPP"],
  "start_date_formatted": "2026-10-02 07:00:00",
  "end_date_formatted": "2026-11-11 08:00:00",
  "collation_count": 4,
  "snapshot": {
    "page_profile_uri": "https://www.facebook.com/examplerunning/",
    "body": { "text": "Our lightest trainer yet. Free returns for 60 days." },
    "title": "The Cloud Runner 3",
    "cta_text": "Shop now",
    "link_url": "https://example.com/cloud-runner",
    "display_format": "VIDEO",
    "videos": [{ "video_hd_url": "https://video.xx.fbcdn.net/...", "video_preview_image_url": "https://scontent.xx.fbcdn.net/..." }],
    "page_like_count": 182000
  },
  "ad_library_url": "https://www.facebook.com/ads/library/?id=1234567890123456",
  "url": "https://www.facebook.com/ads/library/?...&q=running%20shoes",
  "total": 3400,
  "position": 1
}
```

With **Scrape ad details**, each row also carries the advertiser's page information and, for
ads shown in the EU, the transparency data: reach, age and gender breakdown, payer and
beneficiary.

### 🔌 Integrations

Run it on a **schedule**, chain it with **webhooks**, or call it from Apify's Python and
JavaScript clients, Make, Zapier, n8n, Google Sheets or any AI agent through Apify's MCP server.

### ❓ FAQ

**Do I need a Facebook account or cookies?** No. You never share any credentials.

**Which platforms are covered?** Everything the Meta Ad Library covers: Facebook, Instagram,
WhatsApp, Threads, Messenger and Audience Network. The `publisher_platform` field lists where
each ad ran.

**Which countries?** Every country the Ad Library offers, or all of them at once (`ALL`).

**I filtered by date in the Ad Library. What do I get?** Ads that were **running** during the
window, whatever day they started. The Ad Library's own date filter works that way, and the
scraper passes it through unchanged: in two checks of ours (a 7-day and a 5-day window,
November 26, 2026), **all 60 ads returned each time had started before the window** and were
still being delivered inside it — one began on June 1 and answered a window in October. So use it
to ask "which ads were live then", not "which ads launched then"; each row's
`start_date_formatted` and `end_date_formatted` tell you the ad's own period.

**What is "All ads of a group"?** The Ad Library shows ads that share a creative and text as one
card reading "N ads use this creative and text". With this on (the default), the scraper opens
those cards and returns each of those ads as its own row, with its own ad ID, dates and
platforms — 1.75× more ads on an advertiser's active ads in our measurement, and a quarter to a
half of a keyword search's. They are separate ads, not copies: of 72 added to one search, all 72
have their own Ad Library page and none repeats a row already returned. Switch it off to get only
the ads the results page itself carries, and the row counts another scraper would give you.

**I already use another Facebook Ads Library scraper. Do I have to change my code?** For some of them (e.g. `curious_coder/facebook-ads-library-scraper`), no: the input and output formats are the same,
simply change the actor ID. Other actors need a small adaptations.

**How do limits work?** Set a limit per URL (or for the whole run): the run stops asking for
more once it is reached, but it keeps every ad of the results page it was on. A page holds up to
30 ad groups, so you can get a few dozen ads more than you asked for, and you pay for the ads
you get. To cap what a run can cost whatever happens, set the run's maximum charge.

**Something broke?** Open an issue on this page. The scraper is also tested against the live Ad
Library every day.

### 📝 Changelog

- **2026-11 — All ads of a group.** The ads behind each "N ads use this creative and text" card
  are returned too, each as its own row (on by default; switch it off for the row counts of a
  scraper that leaves them out).
- **2026-11 — Launch.** Searches, advertisers, single ads and Facebook pages; ad details with
  EU transparency data; all six Meta placements.

***

<sub>Not affiliated with, endorsed by or sponsored by Meta Platforms, Inc. Facebook, Instagram,
WhatsApp, Threads and Messenger are trademarks of Meta Platforms, Inc., named here only to
describe the data this tool reads.</sub>

# Actor input Schema

## `urls` (type: `array`):

One or more of:
• an Ad Library search, e.g. https://www.facebook.com/ads/library/?active_status=active\&ad_type=all\&country=US\&q=running%20shoes\&search_type=keyword_unordered\&media_type=all
• an advertiser: https://www.facebook.com/ads/library/?view_all_page_id=<page id>
• a single ad: https://www.facebook.com/ads/library/?id=<ad id>
• a Facebook page: https://www.facebook.com/<page> (filters below)

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

Hidden for now (API only): search the Ad Library for these words, one search each, active ads containing all the words.

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

Where the ads were shown, for the keyword searches: a two-letter code in capitals (US, FR, GB, ...) or ALL.

## `scrapeAdDetails` (type: `boolean`):

Adds each ad's details: advertiser information and, for ads shown in the EU, reach, age and gender breakdown, payer and beneficiary. Same price per ad; runs take longer.

## `groupedAds` (type: `boolean`):

The Ad Library groups ads that share a creative and text into one card saying "N ads use this creative and text". Keep this on to get every ad of those groups, as the card shows them. Turning it off returns only the ads the results page carries itself — about 20% fewer ads, and fewer rows to pay for.

## `limitPerSource` (type: `integer`):

Maximum ads per URL. The run stops asking for more once it is reached, but it keeps every ad of the results page it was on — a page holds up to 30 ad groups, so a run can return a few dozen ads more than the limit, and those are charged like any other. Empty: every ad. To cap what a run can cost whatever happens, set the run's maximum charge instead.

## `count` (type: `integer`):

Maximum ads for the whole run, all URLs together, under the same rule: the page in progress is finished. Empty: no total limit.

## `scrapePageAds.period` (type: `string`):

Only ads in this date range.

## `scrapePageAds.activeStatus` (type: `string`):

Active ads, inactive ads, or both.

## `scrapePageAds.sortBy` (type: `string`):

Impressions, highest first, or most recent first.

## `scrapePageAds.countryCode` (type: `string`):

Two-letter uppercase ISO 3166-1 code (US, FR, ...), or ALL.

## `runTag` (type: `string`):

Optional label copied into a runTag column of every row: handy to tell runs apart in one database.

## `useProxyPool` (type: `boolean`):

On by default: nothing to set up, included in the price. Off: the run connects through the proxy below.

## `proxy` (type: `object`):

Only used by a run that sends “useProxyPool”: false through the API. The ready-to-use connection is on by default and included in the price, so there is nothing to set up here.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=shoes&search_type=keyword_unordered"
    }
  ],
  "country": "ALL",
  "scrapeAdDetails": false,
  "groupedAds": true,
  "limitPerSource": 100,
  "scrapePageAds.period": "",
  "scrapePageAds.activeStatus": "all",
  "scrapePageAds.sortBy": "impressions_desc",
  "scrapePageAds.countryCode": "ALL",
  "useProxyPool": true
}
```

# Actor output Schema

## `ads` (type: `string`):

Every ad of the run, one row each; the Overview table (advertiser, copy, platforms, dates, links) is selected by default.

## `adsFullJson` (type: `string`):

The same ads with every field the Ad Library shows, as JSON.

# 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 = {
    "urls": [
        {
            "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=shoes&search_type=keyword_unordered"
        }
    ],
    "limitPerSource": 100,
    "scrapePageAds.period": "",
    "scrapePageAds.activeStatus": "all",
    "scrapePageAds.sortBy": "impressions_desc",
    "scrapePageAds.countryCode": "ALL"
};

// Run the Actor and wait for it to finish
const run = await client.actor("fairfetcher/meta-ad-library").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 = {
    "urls": [{ "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=shoes&search_type=keyword_unordered" }],
    "limitPerSource": 100,
    "scrapePageAds.period": "",
    "scrapePageAds.activeStatus": "all",
    "scrapePageAds.sortBy": "impressions_desc",
    "scrapePageAds.countryCode": "ALL",
}

# Run the Actor and wait for it to finish
run = client.actor("fairfetcher/meta-ad-library").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 '{
  "urls": [
    {
      "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=shoes&search_type=keyword_unordered"
    }
  ],
  "limitPerSource": 100,
  "scrapePageAds.period": "",
  "scrapePageAds.activeStatus": "all",
  "scrapePageAds.sortBy": "impressions_desc",
  "scrapePageAds.countryCode": "ALL"
}' |
apify call fairfetcher/meta-ad-library --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fairfetcher/meta-ad-library"
        }
    }
}
```

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/YGWooNk4Og4qYLFof/builds/dz4YA4Ay5OSexF1Xo/openapi.json
