# Facebook Ads Library Scraper · Meta Ad Library, No Login (`instagram-data-api/meta-ads-library-scraper`) Actor

Facebook Ads Library scraper, no login, 6× cheaper than Apify's. Meta Ad Library: Facebook & Instagram ads by keyword, page, Ad Library URL or ad ID: text, link, CTA, images, videos, cards, dates, platforms; political spend & impressions; EU reach, targeting, payer with one tick. CSV, Excel, JSON.

- **URL**: https://apify.com/instagram-data-api/meta-ads-library-scraper.md
- **Developed by:** [Instagram Data API](https://apify.com/instagram-data-api) (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.65 / 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 (Meta Ad Library) — Facebook & Instagram ads, no login

**Paste keywords, advertiser pages, Ad Library links or ad IDs — get the ads Meta's Ad Library shows for them: text, headline, link, images, videos, dates, platforms, advertiser. No login, no cookies. $0.75 per 1,000 ads on the Starter plan — Apify's own Facebook Ads Scraper is $5.00. 2,000 ads of 20 keywords in 58 seconds on Apify (17 Nov 2026).**

![Meta Ads Library Scraper output: advertiser, format, start date, days running, platforms, headline, button, EU reach and payer for each ad](https://media.fypspy.com/instagram-data-api/meta-ads-library-scraper/rows-v1.png)

**Real row, 17 Nov 2026:** Sneakerjagers Deutschland's ad «Nike V5 RNR» — running 81 days on 5 platforms, EU reach 2,875,238, payer «Sneakerjagers B.V.», targeting Germany, ages 18–65.

- 🔎 **One box takes anything:** a keyword, a page link or ID, `page:Exact Name`, an Ad Library link (keeps its filters), an ad ID.
- 🧾 **68 fields per ad**; what Meta does not show is `null` and named — never a fake 0.
- 🗳️ **Political and issue ads** carry spend, impressions, estimated reach and «paid for by».
- 🇪🇺 **EU / UK reach, targeting, payer** with one tick — «Include ad details» ($0.70 per 1,000 ads on Starter).
- 📊 **A free summary row per line:** Meta's counter, delivered, why it stopped.
- 🔓 **Never charged:** duplicates, keywords and pages with no ads, wrong ad IDs, bad links, anything that failed.

**Try it:** press **Start** — the prefilled `running shoes` returns 50 ads running in the US and one summary row.

### What data does the Meta Ad Library scraper return?

| Group | Fields |
|---|---|
| Ad | `adId`, `adLibraryUrl`, `isActive`, `startDate`, `endDate`, `daysRunning`, `platforms`, `format`, `categories`, `variationsCount` |
| Creative | `body`, `title`, `caption`, `linkUrl`, `linkDescription`, `ctaText`, `ctaType`, `images`, `videos`, `videoPreviewImages`, `cards`, `cardsCount` |
| Advertiser | `pageId`, `pageName`, `pageUrl`, `pageLikes`, `pageCategories`, `pageProfilePictureUrl` |
| Political and issue ads | `spend`, `spendMin`, `spendMax`, `currency`, `impressions`, `impressionsMin`, `impressionsMax`, `reachEstimate`, `byline`, `disclaimer`, `bylineContact` |
| With «Include ad details» | `euTotalReach`, `euReachByCountry`, `euReachByAgeGender`, `euTargeting`, `ukTotalReach`, `ukReachByAgeGender`, `ukTargeting`, `payer`, `beneficiary`, `pageAbout`, `pageAlias`, `pageCategory`, `pageVerification`, `pageInstagramUsername`, `pageInstagramFollowers`, `politicalReachByRegion`, `politicalAgeGender`, `pageSpendByDisclaimer`, `isTakenDown` |
| Always | `query`, `searchCountry`, `notCollected`, `scrapedAt` |

Catalogue ads (formats DPA and DCO) hold a template like `{{product.name}}` in Meta's own data; the row gives the text of the first card people actually saw, and every card is in `cards`.

### Input

| Field | What it does |
|---|---|
| `queries` | Keywords, page links / IDs, `page:Name`, Ad Library links, `ad:ID` — one per line, any mix |
| `maxAdsPerQuery` | Ads per line (default 100, up to 10,000) |
| `maxAds` | Optional cap for the whole run |
| `includeDetails` | EU / UK reach, targeting, payer, page details — one more read per ad, charged per ad |
| `country` | Two-letter code or `ALL` (default `US`) |
| `activeStatus` | `active` (default), `inactive`, `all` |
| `adType` | `all` or `political_and_issue_ads` |
| `mediaType` | `all`, `image`, `meme`, `image_and_meme`, `video`, `none` |
| `platforms` | `facebook`, `instagram`, `audience_network`, `messenger`, `threads`, `whatsapp` |
| `searchType` | `keyword_unordered` or `keyword_exact_phrase` |
| `startDate`, `endDate` | A date or a period back («7 days»): ads that were running in the range |
| `startedInRangeOnly` | Keep only ads that started inside the range (the rest are not charged) |
| `sortBy` | `impressions` (most shown first) or `newest` |
| `contentLanguages` | Language codes as in the Ad Library filter |
| `maxConcurrency` | Input lines read side by side, each on its own proxy IP (default 16, the most) |

```json
{
  "queries": ["running shoes", "https://www.facebook.com/nike", "ad:1550534860016399"],
  "country": "US",
  "maxAdsPerQuery": 50,
  "includeDetails": false
}
```

### Output example

A real row of a run on 17 Nov 2026 (links shortened, lists cut to their first items):

```json
{
  "rowType": "ad",
  "query": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=DE&q=nike&search_type=keyword_unordered&media_type=all",
  "adId": "2858097847888338",
  "adLibraryUrl": "https://www.facebook.com/ads/library/?id=2858097847888338",
  "pageId": "632738836863808",
  "pageName": "Sneakerjagers Deutschland",
  "pageUrl": "https://facebook.com/sneakerjagersde",
  "pageLikes": 113120,
  "pageCategories": ["Media/news company"],
  "isActive": true,
  "startDate": "2026-08-29",
  "endDate": "2026-11-17",
  "daysRunning": 81,
  "platforms": ["facebook", "instagram", "audience_network", "messenger", "threads"],
  "format": "IMAGE",
  "body": "🍷 NEU EINGETROFFEN. Der Nike V5 RNR „Burgundy Crush“ ist jetzt zum günstigen Verkaufspreis von nur 89,99 € erhältlich! …",
  "title": "Nike V5 RNR",
  "caption": "sneakerjagers.com",
  "linkUrl": "https://sneakerjagers.com/d/dRgK4E",
  "linkDescription": "„Burgundy Crush“",
  "ctaText": "Shop now",
  "ctaType": "SHOP_NOW",
  "images": ["https://scontent-lga3-3.xx.fbcdn.net/v/t39.35426-6/788438761_…_n.jpg"],
  "videos": [],
  "cards": [],
  "cardsCount": 0,
  "variationsCount": 1,
  "isPolitical": false,
  "searchCountry": "DE",
  "spend": null,
  "impressions": null,
  "detailsCollected": true,
  "euTotalReach": 2875238,
  "euReachByCountry": [{"country": "DE", "reach": 2710507}],
  "euReachByAgeGender": [{"ageRange": "18-24", "male": 142419, "female": 125133, "unknown": 4786}],
  "euTargeting": {"gender": "All", "ageMin": 18, "ageMax": 65, "locations": ["Germany"], "excludedLocations": []},
  "ukTotalReach": null,
  "payer": "Sneakerjagers B.V.",
  "beneficiary": "Sneakerjagers B.V.",
  "pageAbout": "Sneakerjagers.com - deine Platform für Sneaker.",
  "pageAlias": "sneakerjagersde",
  "pageCategory": "Media/news company",
  "pageVerification": "NOT_VERIFIED",
  "pageInstagramUsername": "outfitsbysneakerjagers",
  "pageInstagramFollowers": 8620,
  "isTakenDown": false,
  "notCollected": [
    "spend, impressions, reachEstimate: Meta shows them only for political and issue ads",
    "ukTotalReach, ukReachByAgeGender, ukTargeting: Meta publishes them only for ads delivered in the UK"
  ],
  "scrapedAt": "2026-11-17T14:59:36Z"
}
```

Every input line also ends with one free `rowType: "summary"` row: `totalInLibrary` (Meta's counter), `delivered`, `duplicatesSkipped`, `stoppedBecause`, `note`.

### How much does it cost to scrape the Meta Ad Library?

Pay per result — no subscription.

| Event | Free | Starter | Scale | Business |
|---|---|---|---|---|
| Ad (per 1,000) | $0.80 | $0.75 | $0.70 | $0.65 |
| Ad details (per 1,000 ads, only when ticked) | $0.75 | $0.70 | $0.65 | $0.60 |
| Run start | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

Examples on Starter: 1,000 ads for a keyword — $0.75. 200 ads of a competitor's page with EU reach and payer — $0.29. Set «Maximum cost per run» and the run stops there and says so in its status and in each unfinished line's summary row; the log says at the start what the run can cost at most. Checked on Apify (17 Nov 2026): with a $0.02 limit and details ticked the run delivered 13 ads, each with its details, for $0.02 — with details on, the limit buys complete ads, not more ads without them.

### FAQ

**Do I need a Facebook account, cookies or an API token?**
No. Nothing to log in with; your account is never used.

**Is it the same data as on facebook.com/ads/library?**
Yes — what a visitor of the Ad Library sees for the same search and filters, read the way the site reads it.

**Am I charged for keywords with no ads, wrong IDs or duplicates?**
No. They end with a free summary row that says what happened. An ad that matches two of your lines is delivered and charged once.

**Why are spend and impressions null?**
Meta shows spend, impressions and estimated reach only for political and issue ads. Choose «Political and issue ads» to get them; for other ads the row says so in `notCollected`.

**Why is EU reach null with details on?**
Meta publishes reach, targeting, payer and beneficiary only for ads delivered in the EU (and reach for the UK). For other ads the details still bring the page's category, verification and Instagram account.

**What does the date range mean?**
Meta's own meaning: ads that were running in the range — an ad that started a year ago and still runs is in. Tick «Only ads that STARTED inside the date range» to keep new ads only; the ads left out are not charged.

**How do I get one advertiser's ads, running and stopped, in every country?**
Paste its Facebook page link or page ID, set «Status» to All and «Country» to `ALL`.

**How fast is it?**
Our own runs on Apify, 17 Nov 2026, default settings (256 MB, Apify Proxy):

| Job | Ads | Whole run |
|---|---|---|
| The prefilled `running shoes` | 50 | 9–11 s (two runs) |
| 20 keywords, 100 ads each | 2,000 | 58 s |
| The same with «Include ad details» | 2,000 | 146 s |
| One keyword, one long search | 2,000 | 5–6 min (270–371 s in five runs) |

Meta gives 10 ads a request and the pages of one search come one after another — about 6–7 ads a second for one line. Different lines run side by side (16 by default), so twenty short searches are six times quicker than one long search for the same number of ads. Rows appear while the run goes.

**Does Meta refuse requests?**
Through datacenter IPs — always («Rate limit exceeded» on the Actor's start-up check in every run), so the Actor works through Apify's residential IPs and pays that traffic itself. There, in our 21 Apify runs of 17 Nov 2026: 4,414 requests, 1 refused (retried on a new IP, the search went on) and none lost. A line Meta refuses five times in a row on fresh IPs gets a free row that says so.

**How many ads can I get for one search?**
Up to 10,000 per line. One search is one cursor, and Meta's cursor grows with each ad read (a third of the traffic at 2,000 ads), so long searches get slower: for more, or for speed, split the search into several lines — by country, media type, status, or by months with «Only ads that STARTED inside the date range» — they run side by side. Meta's counter (`totalInLibrary`) stops at 50,001.

**How does `page:Exact Name` find the advertiser?**
Two tries: the ads of a keyword search for the name (any status, the first 20 results) are checked for a page with exactly that name; if none, `facebook.com/<the name without spaces>` is opened and taken only when that page's title is the name. In our runs of 17 Nov 2026 nine of nine brands were found this way (Depop, Notion, HelloFresh, Dollar Shave Club, The Ordinary, Nike, Gymshark, Lululemon, Allbirds); an invented name ended with a free «not found» row. A brand whose page address differs from its name and whose ads do not mention it will not be found — paste its Facebook link or page ID.

**Do image and video links last?**
No — Meta's media links expire. Download what you need soon after the run.

**Coming from another Ad Library Actor?**
The usual field names work as they are: `startUrls`, `urls`, `adLibraryUrls`, `keywords`, `pageIDs`, `resultsLimit`, `count`, `limitPerSource`, `maxAdsPerTarget`, `isDetailsPerAd`, `scrapeAdDetails`, `euTransparency`, `minDate`, `maxDate`, `sorting`, `scrapePageAds.*`.

**Can I try it for free?**
Yes — the free plan's $5 credit is about 6,000 ads at the Free-plan price ($0.80 per 1,000); there is no cap of ours on top. The Actor runs in 256 MB and uses Apify's residential proxy, which Apify lists for the Free plan too; you are not charged for that traffic — it is inside the price per ad.

### Not supported

- Meta's own advertiser-name suggestions (that box needs a login): use the page link, the page ID or `page:Exact Name` (see the FAQ for how it finds a page).
- More than 10,000 ads on one line; region-level and «estimated audience size» filters; saved searches.
- Housing, employment and financial-products categories as a filter in the form (a pasted Ad Library link with that category works).
- Downloading the media files, video transcripts, landing-page data.
- Spend and impressions for ads that are not political or issue ads — Meta does not publish them.

### Related scrapers

Prices on the Starter plan.

**Ads intelligence**

- [Google Ads Transparency Center Scraper](https://apify.com/instagram-data-api/google-ads-transparency-scraper) — a website's or advertiser's Google ads with format, first and last shown, days shown and a preview; 2,000 ads in 24 s on Apify. From $1.65 / 1,000 ads.
- [LinkedIn Ad Library Scraper](https://apify.com/instagram-data-api/linkedin-ad-library-scraper) — a company's LinkedIn ads with format, headline, text, images and video; payer, run dates, EU impressions and targeting with one tick; 2,000 ads of 20 keywords in 19–28 s on Apify. From $2.40 / 1,000 ads.

**News**

- [Google News Scraper](https://apify.com/instagram-data-api/google-news-scraper) — articles by keyword, topic, place or publisher with Google's operators, 83 editions and any dates; 1,994 articles from 20 searches in 22 s on Apify. From $3.10 / 1,000 articles.

# Changelog

This Actor's version history is a separate document: https://apify.com/instagram-data-api/meta-ads-library-scraper/changelog.md

# Actor input Schema

## `queries` (type: `array`):

One per line, any mix:
• a keyword — `running shoes`
• an advertiser's Facebook page — `https://www.facebook.com/nike` or its page ID `15087023444`
• an advertiser by exact page name — `page:Nike`
• an Ad Library link — a pasted search link keeps its own filters (country, status, media, dates, sort)
• one ad — its Library ID `ad:1550534860016399` or its link `https://www.facebook.com/ads/library/?id=…`
Duplicates are removed before anything is read.

## `maxAdsPerQuery` (type: `integer`):

How many ads to return for each line above. Meta's results are read 10 ads a request (the first request brings 30 and Meta's total counter).

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

Optional. The run stops when this many ads are delivered in total.

## `includeDetails` (type: `boolean`):

One more read per ad: EU and UK reach by country, age and gender, targeting (locations, ages, gender), payer and beneficiary — Meta publishes these for ads delivered in the EU / UK — plus the page's category, verification and Instagram account for every ad. Charged per ad whose details were read (event «Ad details»); an ad Meta did not answer for is not charged.

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

Two-letter country code where the ads were delivered (US, GB, DE, FR, IN, BR…) or ALL for every country. A pasted Ad Library link keeps its own country.

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

Ads running now, ads that stopped, or both.

## `adType` (type: `string`):

«Political and issue ads» rows carry spend, impressions, estimated reach and the «paid for by» line — Meta shows these only for that category.

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

Keep only ads with this kind of creative.

## `platforms` (type: `array`):

Keep only ads delivered on these platforms. Empty = all.

## `searchType` (type: `string`):

Any order of the words, or the exact phrase.

## `startDate` (type: `string`):

A date (YYYY-MM-DD) or a period back from today («7 days», «3 months»). Meta's own meaning: ads that were RUNNING in the range, whenever they started.

## `endDate` (type: `string`):

A date (YYYY-MM-DD) or a period back from today.

## `startedInRangeOnly` (type: `boolean`):

Leaves out ads that started before the range and were still running in it. Ads left out are not charged. Use it with «Newest first».

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

The order Meta returns the ads in.

## `contentLanguages` (type: `array`):

Optional language codes as in the Ad Library's own filter (en, de, es, fr…). Empty = all.

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

Leave as it is: the run checks Apify's datacenter IPs with one small request and switches to residential IPs by itself if Meta refuses them; the log says which was used. Set a group or your own proxies only to force them.

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

How many input lines are read side by side, each through its own proxy IP. 16 is the measured default: 20 keywords of 100 ads each took 48 s at 16 and 99 s at 4, with no refused request (Apify runs, 17 Nov 2026). One line's pages always come one after another.

## `docIds` (type: `object`):

Meta's internal query IDs change with its site releases; the Actor finds the new ones by itself. Use this only if support asks you to: {"AdLibrarySearchPaginationQuery": "…", "AdLibraryV3AdDetailsQuery": "…", "AdLibraryFoundationRootQuery": "…"}.

## Actor input object example

```json
{
  "queries": [
    "running shoes"
  ],
  "maxAdsPerQuery": 50,
  "includeDetails": false,
  "country": "US",
  "activeStatus": "active",
  "adType": "all",
  "mediaType": "all",
  "searchType": "keyword_unordered",
  "startedInRangeOnly": false,
  "sortBy": "impressions",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 16
}
```

# Actor output Schema

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

All rows of this run (JSON, CSV, Excel).

# 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 = {
    "queries": [
        "running shoes"
    ],
    "maxAdsPerQuery": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("instagram-data-api/meta-ads-library-scraper").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 = {
    "queries": ["running shoes"],
    "maxAdsPerQuery": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("instagram-data-api/meta-ads-library-scraper").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 '{
  "queries": [
    "running shoes"
  ],
  "maxAdsPerQuery": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call instagram-data-api/meta-ads-library-scraper --silent --output-dataset

```

## MCP server setup

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

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/85MFaSgPLCj04uRjb/builds/4vaKFQtyr8ChRfANE/openapi.json
