# Facebook Ads Library Scraper — Meta & Instagram Ad Monitor (`stumadethat/meta-ads-library-monitor`) Actor

Scrape the Facebook Ad Library (Meta Ad Library) for every Facebook & Instagram ad of any brand, in any country: ad copy, images, videos, CTA, landing page, platforms, start date, days running. No login. Monitoring mode returns only new ads. HTML report included.

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

## Pricing

from $0.80 / 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.

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 Ads Library Scraper — Meta & Instagram Ad Monitor

Scrape the **Facebook Ad Library** and get **every Facebook and Instagram ad a brand runs**, in any country, straight from the official [Meta Ad Library](https://www.facebook.com/ads/library/). You get the ad copy, images, videos, call to action, landing page, platforms, start date and days running. No login or cookies are needed.

**Monitoring mode** returns only the ads launched since your last run. Schedule it and you get a competitor's new creatives as soon as they go live.

### What you get for each ad

| Field | Example |
|---|---|
| Advertiser page, page ID, URL, likes, categories | Decathlon France · 1,075,828 likes · Sporting Goods |
| Ad text, headline, description, CTA | "Vous n'arrivez pas à choisir…" · "FONCEZ !" · Learn more |
| **Landing page** | `https://www.decathlon.fr/…` |
| Images, videos, cover, number of carousel cards | `https://scontent…fbcdn.net/…` |
| Platforms | FACEBOOK, INSTAGRAM, MESSENGER, AUDIENCE_NETWORK |
| Started, last shown, **days running**, active | 2026-05-06 → 2026-11-18 · 197 days · active |
| Format, dynamic product ad flag, similar ads count | DPA · `similarAdsCount` |
| Reach, spend, targeted countries (when Meta publishes them, e.g. EU and political ads) | |

Each advertiser also gets a **summary**: ads collected, active ads, new ads in the last 7 and 30 days, longest-running ad, platforms, formats and top landing domains. The summary is saved as `SUMMARY` (JSON) and as a shareable `REPORT` (HTML) page.

### Use cases

- **Competitor research:** see every live Facebook and Instagram ad of any brand, in any country.
- **Find the winning creatives:** ads running for months are the ones that convert. Sort by `daysRunning`.
- **Get alerts on new campaigns:** schedule monitoring mode daily and receive only new ads by email, Slack, Sheets or webhook.
- **Landing page and offer research:** see where each ad sends traffic, and the domains the competitor uses.
- **Agency and client reporting:** one HTML report per brand, ready to send.

### How to use it

1. Add **brand names or keywords**, or a **Facebook page ID / Ad Library page URL** to follow exactly one advertiser.
2. Pick the **country** (or ALL), the **status** (active, inactive or all) and the **media type**.
3. Run it. Ads appear in the dataset, and `SUMMARY` and `REPORT` appear in the key-value store.

```json
{
  "searchTerms": ["decathlon"],
  "pageIds": ["122695097770591"],
  "country": "FR",
  "activeStatus": "ACTIVE",
  "maxAdsPerSearch": 200
}
```

**Monitoring:** set `"onlyNewAds": true` and create a daily **Schedule** in Apify Console. The first run stores a baseline. Each later run returns only ads never seen before.

📖 Step-by-step tutorial: [How to scrape the Facebook Ad Library in 2026 (without the official API)](https://dev.to/stumadethat/how-to-scrape-the-facebook-ad-library-in-2026-without-the-official-api-1i8p).

### Pricing (pay per result)

| Event | Price |
|---|---|
| Ad (all fields above) | **$0.80 per 1,000 ads** |
| Summary + HTML report | $0.01 per search |

Example: 500 ads from 3 searches cost **$0.43**. Set a maximum cost per run in the Console, and the Actor stops cleanly when it reaches it.

### Good to know

- A keyword search also returns other advertisers that use the word. Use a **page ID** to follow exactly one brand.
- Reach, spend and targeting data are published by Meta only for some ads (EU ads, political and social-issue ads).
- **Image and video links are signed by Meta and expire.** Download what you want to keep.
- The Actor uses a real browser with **residential proxies** (Meta shows no results to datacenter IPs). Videos and images are not downloaded, which keeps runs fast and cheap.

### Ad Monitor suite: same author, same output format

| Actor | What it monitors |
|---|---|
| [Google Ads Transparency Scraper & Competitor Ad Monitor](https://apify.com/stumadethat/google-ads-transparency-monitor) | Google Search, YouTube, Shopping, Maps and Play ads of any advertiser, in any country |
| [TikTok Ads Library Scraper & Competitor Ad Monitor](https://apify.com/stumadethat/tiktok-ads-library-monitor) | TikTok ads shown in Europe, with targeting, payer and landing pages |
| [Facebook Ads Library Scraper — Meta & Instagram Ad Monitor](https://apify.com/stumadethat/meta-ads-library-monitor) | Facebook and Instagram ads of any brand, in any country |

### Integrations and API

Use the Apify API, the Python and JavaScript clients, Make, Zapier, n8n or Google Sheets, or call the Actor from **AI agents through the Apify MCP server**.

Ready-to-run code examples (Python, Node.js, cURL, and a daily cross-platform competitor monitor that writes one CSV): [github.com/louisstuart06-cmd/ad-library-scrapers](https://github.com/louisstuart06-cmd/ad-library-scrapers).

### FAQ

**Is it legal?** The Actor only reads ads that Meta publishes in its public Ad Library, without logging in. You are responsible for how you use the data.

**Is there an official Facebook Ad Library API?** Meta's Ad Library API mainly covers political and social-issue ads, plus ads shown in the EU, and it needs a developer app and identity verification. This Actor reads the public Ad Library website instead, so it returns commercial ads in every country with no developer account.

**How do I follow one exact brand?** Search the brand in the Ad Library, click the advertiser, and copy the URL: it contains `view_all_page_id=…`. Paste the URL or the ID into **Page IDs**.

**How much does daily monitoring cost?** With `onlyNewAds` you pay only for new ads plus $0.01 per search. Following a competitor every day usually costs well under $1 per month. There are no proxy or compute costs on top: they are included in the price.

**Can I export to Google Sheets, CSV or Excel?** Yes. Download the dataset in any format from the run page, or connect the Google Sheets, Make, Zapier or n8n integration.

**I need another field.** Open an issue on the Actor's page. Requests are answered quickly.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords or brand names, e.g. 'decathlon'. Put a term in double quotes for an exact phrase.

## `pageIds` (type: `array`):

Follow one advertiser exactly: its numeric page ID or an Ad Library URL containing view_all_page_id=…

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

ISO code where ads were shown (FR, US, GB, DE…) or ALL.

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

Active ads only, inactive only, or all.

## `mediaType` (type: `string`):

Filter by creative type.

## `maxAdsPerSearch` (type: `integer`):

Stop after this many ads for each keyword / page.

## `onlyNewAds` (type: `boolean`):

Schedule this Actor daily/weekly with this option on to receive only the brand's NEW ads. The first run stores a baseline.

## `monitorStoreName` (type: `string`):

Key-value store that remembers ads already seen. Change it to reset the history.

## `includeAdvertiserSummary` (type: `boolean`):

Per advertiser: ads, active ads, new ads in 7/30 days, longest-running ad, platforms, formats, landing domains. Saved as SUMMARY (JSON) and REPORT (HTML). Charged once per search.

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

Residential proxies are required: Meta returns no results to datacenter IPs. Videos and images are not downloaded, so traffic stays small.

## Actor input object example

```json
{
  "searchTerms": [
    "decathlon"
  ],
  "country": "FR",
  "activeStatus": "ACTIVE",
  "mediaType": "ALL",
  "maxAdsPerSearch": 100,
  "onlyNewAds": false,
  "monitorStoreName": "meta-ads-monitor",
  "includeAdvertiserSummary": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

No description

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

No description

## `report` (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 = {
    "searchTerms": [
        "decathlon"
    ],
    "country": "FR",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("stumadethat/meta-ads-library-monitor").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 = {
    "searchTerms": ["decathlon"],
    "country": "FR",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("stumadethat/meta-ads-library-monitor").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 '{
  "searchTerms": [
    "decathlon"
  ],
  "country": "FR",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call stumadethat/meta-ads-library-monitor --silent --output-dataset

```

## MCP server setup

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

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/ERROe7WeEg3xeeQgw/builds/UkR7w30XtclfGhf3d/openapi.json
