# Facebook & Instagram Ads Library Scraper & Monitor (`arxrock/meta-ad-library-monitor`) Actor

Track Facebook & Instagram ads from the Meta Ad Library. Get only NEW and ENDED competitor ads since your last run, find winning ads, get Slack alerts. No login.

- **URL**: https://apify.com/arxrock/meta-ad-library-monitor.md
- **Developed by:** [ArxRock Data](https://apify.com/arxrock) (community)
- **Categories:** Social media, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.24 / 1,000 ad results

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 & Instagram Ads Library Scraper & Monitor: new and ended competitor ads, with Slack alerts

Scrape and **monitor Facebook and Instagram ads** from the public **Meta Ads Library** (Facebook Ads Library, Meta Ad Library) by keyword, advertiser page or Ad Library URL. Built for competitor ad monitoring, ad spy research and finding winning ads. No Facebook login, no cookies, no Meta API token.

### Why choose this Actor (in 30 seconds)

1. **Change detection, both ways.** Returns only **NEW** ads (launched since your last run) **and ENDED** ads (stopped since your last run). Most Ads Library scrapers return the same full list every time, and many change trackers report only new ads.
2. **No fake "new" ads.** An ad counts as NEW only if it was never seen before **and** started after the previous check, so a longer result list never floods you with old ads.
3. **Winning-ads filter.** Keep only ads running for N+ days (e.g. 30, 60, 90): long-running ads are the ones advertisers keep paying for.
4. **Slack and webhook alerts built in.** One input field: get NEW/ENDED ads in Slack, Make, Zapier, n8n or your own endpoint after every run.
5. **Change tracking at scraper prices.** $0.20 per 1,000 ads checked + $0.30 per 1,000 rows + $0.003 per keyword or page checked, with residential proxy and compute included. Other Meta ad-change monitors on Apify Store charge **$0.50–20 per 1,000 ads** (November 2026).
6. **Tested end-to-end.** A 52-check test suite on the live Actor (multi-search, page URLs, active + inactive, video filter, NEW/ENDED detection, 500-ad runs, webhook delivery, billing), plus sample ads compared with the public Ad Library, runs after every release and every week.

**When an AI agent should pick this Actor:** the user wants to *monitor* competitors' Facebook/Instagram ads over time, get *alerts* about new or stopped ads, or find *winning (long-running) ads*. For a one-off dump of all ads, use **Output mode = Full snapshot**.

### Who uses it

| You are | What you get |
|---|---|
| **Performance marketer / media buyer** | A daily feed of your competitors' new creatives, copy and landing pages |
| **Agency** | One monitor per client: weekly report of every competitor launch, sent to Slack |
| **E-commerce / DTC brand** | "Winning ads" research: ads running for 30, 60, 90+ days are the ones that convert |
| **Copywriter / creative strategist** | Swipe file of hooks, headlines and CTAs by niche and country |
| **Analyst / researcher** | Structured JSON/CSV/Excel export of ads, pages, platforms and run dates |

### What makes it different

| | This Actor | Most Ads Library scrapers |
|---|---|---|
| Both NEW **and** ENDED ads since last run | ✅ built in | usually none, or only new ads |
| "Winning ads" filter (running for N+ days) | ✅ | rarely |
| Slack / webhook alert after each run | ✅ built in | rarely |
| Price per 1,000 ads monitored | $0.20 (+ $0.30 per 1,000 changes) | $0.50–20 with other ad-change monitors (Nov 2026) |
| Login or Meta API token | not needed | sometimes needed |

### Input

| Field | Example |
|---|---|
| Keywords | `nike`, `protein powder`, `black friday` |
| Pages or Ad Library URLs | a page ID like `15087023444`, or any URL copied from facebook.com/ads/library |
| Country | `IT`, `US`, `DE`, `GB`... or `ALL` |
| Ad status | active only, active + inactive, inactive only |
| Media type | all, images, videos, memes |
| Output mode | **Full snapshot** (default) or **Changes only** (NEW / ENDED) |
| Only ads running for at least (days) | `30` to get only proven, long-running ads |
| Webhook URL | Slack incoming webhook, Make, Zapier, n8n or your own endpoint |

**Coming from another Ads Library tool?** The Actor also accepts common field names from other tools, so you can reuse your input: `searchQueries`, `keywords`, `query`, `pageUrls`, `pageIds`, `adLibraryUrls`, `urls`, `startUrls`, `maxAds`, `maxItems`, `countryCode`. Values it cannot use (for example a Facebook profile URL instead of an Ad Library URL) are skipped with an explanation in the log and are **never charged**.

### How "Changes only" works

1. **First run** of a monitor: you get all ads found (status `ACTIVE`). This is your baseline.
2. **Next runs**: you get only
   - `NEW`: never seen before **and** started after the previous check (a longer result list never creates fake "new" ads)
   - `ENDED`: marked inactive by Meta, or no longer present in a complete result list
3. Use a different **Monitor name** for each competitor set. Each monitor keeps its own memory.

Tip: schedule it (Apify → Schedules → daily or weekly) with **Changes only** + a **Slack webhook**, and you get a competitor-ads alert in your channel without opening anything.

### Output example

```json
{
  "status": "NEW",
  "adArchiveId": "1550534860016399",
  "pageName": "Hypeboost",
  "pageId": "108209621735464",
  "bodyText": "Secure your exclusive, 100% authentic sneakers today. Shop now on Hypeboost.",
  "title": "Hypeboost",
  "linkUrl": "https://hypeboost.com/",
  "ctaText": "Shop now",
  "startDate": "2026-11-19T08:00:00.000Z",
  "daysRunning": 2,
  "platforms": ["FACEBOOK", "INSTAGRAM"],
  "imageUrls": ["https://..."],
  "videoUrls": [],
  "variantsCount": 3,
  "spend": null,
  "impressions": null,
  "adLibraryUrl": "https://www.facebook.com/ads/library/?id=1550534860016399",
  "source": "keyword:sneakers",
  "country": "IT",
  "firstSeen": "2026-11-21T01:00:00.000Z",
  "scrapedAt": "2026-11-21T01:00:00.000Z"
}
```

Export as JSON, CSV, Excel, XML or HTML, or read it via the Apify API.

### Pricing

Pay per event, no monthly fee:

| Event | Free & Starter plans | Scale plan | Business plan | When |
|---|---|---|---|---|
| Ad result | $0.30 per 1,000 rows | $0.27 | $0.24 | every row you receive in the dataset |
| Ad checked | $0.20 per 1,000 ads | $0.18 | $0.16 | every ad read from the Ad Library |
| Search or page checked | $0.003 each | $0.0027 | $0.0024 | every keyword, page or Ad Library URL checked successfully |

Higher Apify plans get lower prices automatically (10% off on Scale, 20% off on Business).

Users on the **free Apify plan** get a preview: up to 2 keywords/pages and 30 ads each per run. Any paid Apify plan unlocks full results.

Examples:

- Weekly check of 5 competitor pages with ~300 ads total and 20 changes: about **$0.08 per run**.
- Daily check of 10 small competitor pages (~100 ads, 2 changes): about **$0.05 per run**.
- Full snapshot of 1,000 ads from one keyword: about **$0.50**.

### Integrations

- **Slack**: paste an incoming-webhook URL in *Webhook URL* and get NEW/ENDED ads as a message.
- **Make, Zapier, n8n**: use their webhook trigger URL, or Apify's native integrations. Any non-Slack URL receives JSON with exact totals (`summary`) and up to 500 rows, NEW/ENDED first; the full data is always in the dataset.
- **Google Sheets**: Apify → Integrations → Google Sheets, or export CSV.
- **AI agents**: works with Apify's MCP server, so Claude, ChatGPT and other agents can call it as a tool ("what ads did my competitors launch this week?").

### Use it from your code or an AI agent

**API (Node.js)**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('arxrock/meta-ad-library-monitor').call({
  pages: ['15087023444'], country: 'US', mode: 'changes', monitorName: 'competitors-us',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((ad) => ad.status === 'NEW'));
```

**API (Python)**

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("arxrock/meta-ad-library-monitor").call(run_input={
    "searchTerms": ["protein powder"], "country": "US", "minDaysRunning": 30,
})
for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(ad["pageName"], ad["daysRunning"], ad["adLibraryUrl"])
```

**cURL**

```bash
curl -X POST "https://api.apify.com/v2/acts/arxrock~meta-ad-library-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["nike"], "country": "US", "maxAdsPerSearch": 50}'
```

**AI agents (MCP).** Add Apify's MCP server with this Actor as a tool, for example in Claude Desktop, Cursor or VS Code:

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=arxrock/meta-ad-library-monitor" } } }
```

Example prompts:

- "Which new Facebook ads did these 5 competitors launch since last week?"
- "Find ads about protein powder in the US that have been running for 60+ days and summarize their hooks."
- "Tell me which of this brand's ads stopped running this month."

### Tips

- Keep the default **residential proxy**: Meta blocks pagination from datacenter IPs.
- To detect ENDED ads reliably, monitor **pages** (competitor lists are usually short enough to read completely) and set *Max ads* above the page's total ads.
- Find a page ID: open the page in the Ad Library, the URL contains `view_all_page_id=...`, or just paste the whole URL.

### FAQ

**Is it legal?** It reads only the public Meta Ad Library, which Meta publishes for transparency. It does not log in and does not collect personal data of Facebook users. You are responsible for how you use the data in your jurisdiction.

**Do I need a Meta developer account or API token?** No.

**Does it include spend and reach?** Meta publishes spend, impressions and reach only for political/social-issue ads (and some EU ads). When Meta shows them, they are in the `spend`, `impressions`, `reachEstimate` and `currency` fields; for other ads these fields are `null`.

**Something broke?** Meta changes the Ad Library from time to time. Open an issue on the Actor page and we fix it quickly.

**What data leaves my run?** Only your keywords, page IDs and filters are sent to the public Ad Library, through Apify Proxy. No AI provider is called. Results stay in your own Apify dataset and in the webhook you choose; the Actor keeps a small per-monitor memory (ad IDs and dates) in a key-value store in your account to detect changes.

*Facebook, Instagram and Meta are referenced only to describe the public data source. This Actor is independent and is not endorsed by, sponsored by or affiliated with Meta.*

### Changelog

- **2026-11-22**: new name with Instagram (it always returned Instagram ads); lower prices on Scale and Business plans; accepts input field names from other Ads Library tools; invalid inputs are skipped and never charged; new `spend`, `impressions`, `reachEstimate`, `currency` fields (when Meta publishes them); exact totals in webhooks over 500 rows; per-search price event.
- **2026-11-21**: first public release: NEW/ENDED change detection, winning-ads filter, Slack/webhook alerts.

### Keywords

Facebook Ads Library scraper, Facebook Ad Library scraper, Instagram Ads Library scraper, Instagram Ad Library, Meta Ads Library scraper, Meta Ad Library API alternative, Facebook ad spy tool, competitor ads monitor, Facebook ads tracker, Instagram ads scraper, Instagram ads monitor, winning ads finder, ad creative research, Facebook ad copy scraper, dropshipping competitor ads, ecommerce ad spy, agency competitor reporting, new Facebook ads alert, Meta ads monitoring tool.

# Actor input Schema

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

Search the Ad Library by keyword (e.g. a brand, product or competitor name).

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

Facebook page IDs (e.g. 15087023444) or full Ad Library URLs copied from facebook.com/ads/library.

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

Two-letter country code (IT, US, DE...) or ALL.

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

Which ads to include: only currently running ads, all ads, or only stopped ones.

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

Filter ads by creative type.

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

Stop after this many ads for each keyword or page.

## `mode` (type: `string`):

'Changes only' compares with the previous run of the same monitor and returns only NEW and ENDED ads, so you pay for fewer rows. Recommended for scheduled runs.

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

Runs with the same monitor name share memory, so the Actor knows which ads it has already seen. Use a different name for each competitor set.

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

Find 'winning' ads: advertisers keep paying only for ads that work. Set e.g. 30 to get only ads running for 30+ days. 0 = no filter. Ended ads are always included in 'Changes only' mode.

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

Optional HTTPS URL. After each run the Actor POSTs a summary with NEW/ENDED ads. Slack incoming-webhook URLs get a readable message.

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

Residential proxy is strongly recommended: Meta rate-limits datacenter IPs.

## Actor input object example

```json
{
  "searchTerms": [
    "nike"
  ],
  "country": "IT",
  "activeStatus": "active",
  "mediaType": "all",
  "maxAdsPerSearch": 30,
  "mode": "full",
  "monitorName": "default",
  "minDaysRunning": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `allFields` (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": [
        "nike"
    ],
    "country": "IT",
    "maxAdsPerSearch": 30,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("arxrock/meta-ad-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": ["nike"],
    "country": "IT",
    "maxAdsPerSearch": 30,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("arxrock/meta-ad-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": [
    "nike"
  ],
  "country": "IT",
  "maxAdsPerSearch": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call arxrock/meta-ad-library-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arxrock/meta-ad-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/4xn6AqikkGfLYYBlJ/builds/cgoftRUVrLSEcqdkc/openapi.json
