# Facebook Ads Library Scraper 💰 $0.3/1K · Ad Alerts · No Login (`first-penguin/facebook-ads-library-scraper-monitor`) Actor

No-login Meta Ad Library scraper. Search by keyword, advertiser Page or Ad Library URL: ad text, images, videos, button, landing page, start date and days running. Monitor mode returns only new ads, flags stopped ones and alerts Slack, Discord or webhooks. Hard max-ads limit; failed searches free.

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

## Pricing

from $0.26 / 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/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 & Monitor — No Login, $0.3 per 1,000 ads

### What it does

Give it keywords, advertiser Facebook Pages or Meta Ad Library search URLs, and get one clean row per ad: advertiser, ad text, headline, button, landing page, every image and video, start date, **days running**, platforms (Facebook, Instagram, Messenger, Threads, Audience Network) and format.

No Facebook account, no cookies, no API token. You pay only for ads returned: **$0.3 per 1,000 ads**.

Turn on **monitor mode** to get only the ads that are new since your last run — and the ads that stopped — and send them to Slack, Discord or any webhook.

**Limits first:**

- Spend, impressions and reach are empty for normal commercial ads. Meta publishes them only for political and social-issue ads and for EU reach.
- Image and video URLs are signed by Meta and expire after a few days. Download what you need right away.
- Meta sometimes rate-limits a search halfway. The Actor then continues the same search from where it stopped on a fresh connection (in our test of 60 random searches, all 60 finished). If a search still cannot be finished, the run summary says how many ads Meta reported, how many you got and why it stopped.

### How it works

1. **Give it sources** — keywords (with country, status, media type, exact phrase), advertiser Pages (URL or numeric Page ID) or Ad Library URLs pasted as they are. Duplicates are removed, and an ad found by two sources is returned (and charged) once.
2. **It reads the public Ad Library** — the same data a logged-out visitor sees, page by page, until your limit or the end of the results.
3. **One row per ad** — plus `daysRunning`, so you can keep only long-running ads. Sources that return nothing get a free row with the reason.

### How it compares

| | This Actor | A typical Ad Library Actor |
|---|---|---|
| Facebook login / API token | Not needed ✅ | Not needed ✅ |
| "Max ads" | A hard limit, always respected ✅ | Users report limits ignored and surprise bills ❌ |
| Empty rows, failed searches | Free ✅ | Some charge for empty or null rows ❌ |
| Long-running ("winning") ads | `daysRunning` + `minDaysRunning` filter ✅ | Start date only ❌ |
| Only new ads | Monitor mode ✅ | Every run returns everything ❌ |
| Ads that stopped | Reported as free `stopped` rows ✅ | Not reported ❌ |
| Alerts | Slack, Discord, webhook ✅ | None ❌ |
| Meta stops the search halfway | Continues from the same place on a fresh connection ✅ | Run ends with fewer ads, no explanation ❌ |
| How many of Meta's results you got | Per search: Meta's total, returned, why it stopped ✅ | A count only ❌ |
| Dynamic / carousel creatives | All images and videos ✅ | Sometimes the first one only |

### Use cases

- **Competitor research (e-commerce, D2C)**: pull every active ad of 5 competitors and keep only ads running 60+ days — usually the ones that work.
- **Agencies**: watch your clients' competitors every morning; get new and stopped ads in Slack.
- **Creative research**: collect copy, headlines, buttons, images and videos for a niche.
- **Market research and prospecting**: search a keyword in a country and see which advertisers are spending on it.
- **Brand protection**: get alerted when a new ad uses your brand name.
- **Automations and AI agents**: call it from n8n, Make, Zapier or an LLM with a hard cap on ads and cost.

### Pricing

| Event | Price |
|---|---|
| Ad returned | $0.0003 |
| Actor start | $0.00005 |
| Failed source, ads filtered out by `minDaysRunning`, stopped ads, ads already seen (monitor mode) | Free |

1,000 ads cost at most **$0.30**. You can also set a maximum cost per run in Apify; the Actor stops cleanly when it is reached.

### Input

```json
{
  "searchTerms": ["protein powder"],
  "country": "US",
  "pages": ["https://www.facebook.com/nike", "15087023444"],
  "adLibraryUrls": ["https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=GB&q=yoga%20mat&search_type=keyword_unordered&media_type=video"],
  "activeStatus": "active",
  "maxAdsPerSource": 100,
  "minDaysRunning": 0,
  "onlyNewAds": false
}
```

| Field | What it does |
|---|---|
| `searchTerms` + `country` | Keyword search, as in the Ad Library search box |
| `pages` | All ads of an advertiser. Page URL or numeric Page ID (most reliable) |
| `adLibraryUrls` | Paste an Ad Library URL; its filters are used |
| `activeStatus` | `active` (default) or `all` |
| `mediaType` | `all`, `image`, `video`, `meme`, `none` |
| `exactPhrase` | Match the whole phrase |
| `maxAdsPerSource` | Hard limit per keyword / Page / URL (default 100) |
| `minDaysRunning` | Keep only ads running at least N days |
| `onlyNewAds`, `monitorName` | Monitor mode |
| `slackWebhookUrl`, `discordWebhookUrl`, `webhookUrl` | Alerts in monitor mode |

### Output

Example (fictional data):

```json
{
  "status": "ok",
  "adArchiveId": "1234567890123456",
  "adLibraryUrl": "https://www.facebook.com/ads/library/?id=1234567890123456",
  "pageId": "100000000000001",
  "pageName": "Example Running Co.",
  "isActive": true,
  "startDate": "2026-09-01",
  "endDate": "2026-11-19",
  "daysRunning": 80,
  "platforms": ["facebook", "instagram"],
  "displayFormat": "VIDEO",
  "body": "Our lightest trail shoe yet. Free returns.",
  "title": "Trail Runner 2",
  "ctaText": "Shop now",
  "linkUrl": "https://example.com/trail-runner-2",
  "imageUrls": [],
  "videoUrls": ["https://video.example/....mp4"],
  "variations": 3,
  "source": { "type": "keyword", "value": "trail running shoes", "country": "US" }
}
```

A source that returned nothing:

```json
{ "status": "failed", "reason": "page_id_not_found", "detail": "Could not read the Page ID from this Page. Pass the numeric Page ID instead.", "source": { "type": "page", "value": "https://www.facebook.com/some-page" } }
```

Other fields: `pageUrl`, `pageLikeCount`, `pageCategories`, `linkDescription`, `ctaType`, `caption`, `videoPreviewUrls`, `isCatalogAd` (catalog ads show the real product text, not `{{product.name}}`), `categories`, `containsAiMedia`, `targetedCountries`, `spend` / `impressions` (political and EU ads only), `isNew` (monitor mode).

The run summary (`RUN_SUMMARY` in the key-value store) lists every source with Meta's reported total, ads returned and why it stopped (`end_of_results`, `max_ads_reached`, `rate_limited`…).

### Monitor mode

- Set `onlyNewAds: true` and a `monitorName`, then schedule the task daily in Apify.
- The first run returns every ad and remembers them. Later runs return only ads that are new, plus a free `stopped` row for each ad that was active last time and is gone now.
- "Stopped" is reported only when the search was read to the end, so a capped or interrupted run never claims that ads stopped.
- The list of ad IDs is stored **only in your own Apify account** (a named key-value store). The developer does not keep your data.

### Tested on real searches (November 2026, Apify, no login)

| What | Tried | Result |
|---|---|---|
| Keywords (random, 30 words in 15 countries, up to 100 ads each) | 30 | The first page (about 30 ads) came back for all 30. Meta rate-limited 17 of them halfway |
| Advertiser Pages (random) | 30 | 28 returned ads; all 975 ads belonged to the Page asked for |
| Interrupted searches, continued on a fresh connection | 17 | 15 finished; 95% of Meta's results (1,352 of 1,417) |
| This Actor, same 30 keywords + 30 Pages, up to 100 ads each | 60 | **All 60 finished; 100% of Meta's results up to the limit** (4,606 ads; 4,475 after removing ads found by two searches). Meta interrupted 49 times; each time the search continued |
| Field coverage (3,786 ads) | — | Advertiser, media, dates, platforms 100%; text 97–99%; landing page 97%; spend and reach 0% (not published by Meta) |

### FAQ

**Why are spend and impressions empty?** Meta publishes them only for political and social-issue ads (and reach for ads shown in the EU).

**Why did I get fewer ads than the Ad Library shows?** Check `RUN_SUMMARY`: it shows Meta's total, what was returned and why it stopped. With `activeStatus: all` you also get ads that have stopped, often many more than are active.

**Why do date-filtered or long-running ads look old?** `daysRunning` counts from the start date to the last day Meta shows the ad (today for active ads).

**My image URL no longer opens.** Meta's media links expire after a few days. Download them right after the run.

**Can my Facebook account get restricted?** No Facebook account is used.

**Page URL returned `page_id_not_found`.** Some Pages are shown only to signed-in users. Use the numeric Page ID: open the advertiser in the Ad Library and copy `view_all_page_id` from the URL.

### Use with AI agents

Available through the Apify MCP server. Auth: your Apify token. Minimal input: `{"searchTerms": ["running shoes"], "country": "US", "maxAdsPerSource": 30}`. Output: one row per ad as above. Billing: $0.0003 per ad returned.

### Support & feature requests

Found a bug, a missing field, or need another field or integration? Open an issue in the **Issues** tab. We add it to this Actor so you can use it right here on Apify. We aim to reply within one working day.

### Disclaimer

This Actor reads only what Meta publishes in its public Ad Library. Advertiser names can be the names of individuals; you are responsible for having a legitimate reason to process that data (GDPR and other laws). The developer is not the controller of the data you collect. Not affiliated with or endorsed by Meta.

### Keywords

facebook ads library scraper, meta ad library scraper, facebook ad spy, instagram ads scraper, facebook ads api alternative, competitor ads monitor, new ads alert, winning ads finder, ad library api

### Related Actors

- [Facebook Posts Scraper](https://apify.com/first-penguin/facebook-posts-scraper) – posts, reactions and comments with new-post alerts
- [Facebook Search Scraper](https://apify.com/first-penguin/facebook-search-scraper) – search Facebook posts, Pages and people by keyword, no login
- [Facebook Group Posts Scraper](https://apify.com/first-penguin/facebook-groups) – posts from public Facebook groups, with new-post alerts
- [Instagram Profile Monitor](https://apify.com/first-penguin/instagram-profile-monitor) – follower tracking with alerts
- [Google Search Scraper](https://apify.com/first-penguin/google-search-scraper) – rankings with change alerts
- [Google Ads Transparency Scraper](https://apify.com/first-penguin/google-ads-transparency-scraper-monitor) – Google ads with new-ad alerts

# Actor input Schema

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

Search the Meta Ad Library by keyword, like typing in its search box. Each keyword is one search in the country below.

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

2-letter country code where the ads were shown (US, GB, DE, FR, BR…) or ALL.

## `pages` (type: `array`):

All ads of an advertiser. Use the Page URL (https://www.facebook.com/nike) or the numeric Page ID (the view_all_page_id in an Ad Library link). Numeric IDs are the most reliable.

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

Paste a URL from facebook.com/ads/library after setting the search and filters there. Country, status, media type and exact-phrase search are taken from the URL.

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

Active ads only (what the Ad Library shows by default), or all ads including ones that have stopped.

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

Filter by the ad creative type.

## `exactPhrase` (type: `boolean`):

Match the whole keyword phrase instead of any of its words.

## `maxAdsPerSource` (type: `integer`):

Hard limit. The run never returns more than this per source.

## `minDaysRunning` (type: `integer`):

Ads that run for weeks or months are usually the ones that work. 0 = no filter. Filtered ads are not charged.

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

Return only ads that were not there on the previous run with the same monitor name, plus a free 'stopped' row for each ad that disappeared. The first run returns everything. The list of ad IDs you have seen is stored only in your own Apify account.

## `monitorName` (type: `string`):

Use different names to keep separate watch lists.

## `slackWebhookUrl` (type: `string`):

Optional. In monitor mode, one message per search when there are new or stopped ads.

## `discordWebhookUrl` (type: `string`):

Optional. Same as Slack.

## `webhookUrl` (type: `string`):

Optional. In monitor mode, receives a JSON POST per search: event, source, newAds (full rows), stoppedAds, detectedAt.

## `maxConcurrency` (type: `integer`):

How many searches to run at the same time.

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

Residential proxy is required: Meta blocks datacenter IPs on the Ad Library.

## Actor input object example

```json
{
  "searchTerms": [
    "running shoes"
  ],
  "country": "US",
  "activeStatus": "active",
  "mediaType": "all",
  "exactPhrase": false,
  "maxAdsPerSource": 100,
  "minDaysRunning": 0,
  "onlyNewAds": false,
  "monitorName": "default",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per ad. Failed sources and stopped ads (monitor mode) are free rows with a reason.

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

Per search: how many ads Meta reported, how many were returned, and why it stopped.

# 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": [
        "running shoes"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("first-penguin/facebook-ads-library-scraper-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": ["running shoes"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("first-penguin/facebook-ads-library-scraper-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": [
    "running shoes"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call first-penguin/facebook-ads-library-scraper-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,first-penguin/facebook-ads-library-scraper-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/yFKfleh8LVzLaqiNg/builds/6Pew5zK43q4DLBOro/openapi.json
