agenttoolworks

An Apify Actor live

Facebook Ad Library scraper, with Google and Bing ads in the same run

Search a brand, a keyword or a domain once. Get the public ads of the Meta Ad Library, the Google Ads Transparency Center and the Microsoft Ad Library back in one table: advertiser, text, creatives, landing page, dates, reach and targeting. Or paste the Meta Ad Library URL you already have. No Facebook account, no API token.

One search for nike in France goes in; the Actor reads the Meta, Google and Microsoft ad libraries and returns one row per ad in the same format, with Meta's EU reach, payer and beneficiary: 100 of 100 Meta ads unique, matching the keyword and carrying EU reach
The output row and the counts are from a real cloud run, trimmed for space.

What you get

One row per ad, the same fields on every platform.

Where a library does not publish a field, it is null rather than guessed, so a Meta row and a Bing row sit in the same spreadsheet without a mapping step.

The Ads view of a real run in Apify Console: Meta ads for nike in France with creative, advertiser, title, text, dates, countries, EU reach, payer, beneficiary, landing page and a check that the ad's own text shows the keyword
The Ads view of a real run, in Apify Console.

Meta, Google and Microsoft, side by side

What each ad library actually publishes.

The three libraries do not expose the same things. This is what the Actor reads from each, logged out.

FieldMetaGoogleMicrosoft
Read fromThe public Ad Library search page, logged out, in a real browserThe Ads Transparency Center's public pagesMicrosoft's official public Ad Library API, no key
CountriesAll; one search per countryAll; reach for the EEAEEA only
Ad textTitle, body and every cardHeadline and description when Google renders the ad as text; else in the archived imageTitle and body
CreativesImage and video URLsArchived image or preview URLImage URLs
DatesFirst and last day shown, active todayFirst and last day shown, per country tooFirst and last day shown
ReachPeople reached in the EU, per country (EU ads)Impressions range, per countryImpressions range, share per country
TargetingAudience: locations, ages, gender (EU ads)Criteria used and excludedCriteria used and excluded
PayerPayer and beneficiary (EU ads)Not publishedWhere named
Depth per runUp to 1,000, by start dateUp to 1,000Up to 1,000

Google alone, with platform and format filters, advertiser IDs, Transparency Center URLs and an only-new-ads monitor: the Google Ads Transparency scraper uses the same Google reader and the same row format.

Past the first 30 Meta ads

Meta shows 30 results logged out. The Actor reads 1,000.

Logged out, the Ad Library page shows the first 30 results of a search and answers "Rate limit exceeded" to every request for more, from every network we tried. So the Actor never asks for page two. It reads the top 30 by impressions, then the page's own "most recent" order, moving the start-date filter back one day at a time: each page load brings up to 30 ads that started before the last one read.

1,000Nike ads in France in one run, 139 seconds on Apify, no proxy
500in 69 seconds, 20 page loads
30new ads at most per page load, so at most 30 per start day
0accounts, logins or cookies

The blind spot: a start day with more than 30 new ads shows only its first 30. The run summary says so whenever it makes a result short, and every platform reports "partial" with the reason when the library shows more than was read. The guide explains the walk step by step.

Reach by country

The transparency data the EU requires, in one view.

The EU's Digital Services Act requires very large platforms to keep a public, searchable ad repository with, at least, the content of each ad, who it was presented for, who paid, the period, the main targeting parameters and the recipients reached, broken down by Member State for targeted groups (Regulation (EU) 2022/2065, Article 39). Google and Microsoft publish those figures per ad, and Meta publishes the people reached per country for ads shown in the EU; the Actor reads them with details on and lays them out one row per ad and country.

The Reach by country view of a real run: one row per Meta ad and country with the people reached in that country, as Meta publishes it for ads shown in the EU
The Reach by country view of a real run (Meta rows: people reached per country).

A real run

Nike in France, three platforms, 22.5 seconds.

This input returned 60 ads (20 per platform) on 2026-10-02, then with advertiser rows on. Two rows, trimmed (the Meta row from a cloud run of 2026-10-05 on the current build, with its EU transparency):

input
{
  "query": "nike",
  "countries": ["FR"],
  "platforms": ["meta", "google", "microsoft"],
  "maxResultsPerPlatform": 20,
  "includeDetails": true
}
a Meta rowreal
{
  "rowType": "ad",
  "platform": "meta",
  "adId": "1870984290951787",
  "adLibraryUrl": "https://www.facebook.com/ads/library/?id=1870984290951787",
  "advertiserName": "Nike",
  "firstShown": "2026-09-02",
  "lastShown": "2026-10-04",
  "isActive": true,
  "format": "dynamic",
  "title": "Nike Primary",
  "body": "Get the gear that's up for it all. Any time. Anywhere.",
  "linkUrl": "https://www.nike.com/",
  "ctaText": "Shop now",
  "publisherPlatforms": ["FACEBOOK", "INSTAGRAM", "AUDIENCE_NETWORK", "MESSENGER", "THREADS"],
  "payer": "NIKE, Inc.",
  "beneficiary": "NIKE, Inc.",
  "countries": ["DE", "IT", "FR", "ES", "NL", "PL", "GB"],
  "countriesBasis": "reach",
  "euReach": 7231158,
  "reachByCountry": [
    { "country": "DE", "countryReach": 1290022 },
    { "country": "IT", "countryReach": 1167694 }
  ],
  "audience": { "locations": ["Italy", "Netherlands", "Spain", "Poland", "France", "Germany"], "ageMin": 18, "ageMax": 65, "gender": "All" },
  "matchesQuery": true,
  "totalInLibrary": 6632
}
a Microsoft rowreal
{
  "rowType": "ad",
  "platform": "microsoft",
  "adId": "71124892377247",
  "advertiserName": "Groupe COURIR",
  "firstShown": "2023-06-03",
  "lastShown": "2026-09-30",
  "title": "Baskets & Vêtements Streetwear NIKE pour - Tendances 2026",
  "displayUrl": "courir.com",
  "countries": ["FR", "LU"],
  "impressionsMin": 1000000,
  "impressionsMax": 2500000,
  "reachByCountry": [
    { "country": "FR", "countrySharePercent": 100 },
    { "country": "LU", "countrySharePercent": 0 }
  ],
  "targeting": { "included": ["location", "microsoft_audiences", "advertiser_audiences"], "excluded": ["location"] }
}

A search for a brand also returns ads that mention it: in France, "nike" brings Courir, Foot Locker and Amazon.fr ads alongside Nike's own. Meta also matches words inside images and videos; by default the Actor keeps only ads whose own text shows the keyword, and leaves the rest out before charging. For one advertiser only, paste its Facebook Page URL, or use the advertiser domain.

Ready-to-run examples

Open one, change the input, run it.

Each example opens the Actor on Apify with its input filled in. All examples on the Apify Store.

Pricing

Pay per ad, no subscription.

$0.50 per 1,000 ads on any platform, billed by Apify with platform usage included. 1,000 Meta ads cost $0.50; the 60 ads above cost $0.03. A repeated ad is never returned or charged twice, and an ad left out by the keyword check is not charged. Advertiser records are off unless you ask for them ($0.003 each). Apify's free plan covers about 10,000 ads a month.

What a brand posts, next to what it pays to say

Threads posts too.

The Threads scraper reads the public posts of any Threads profile, a post with the replies under it, and keyword searches, without an account: text, date, likes, replies, reposts and quotes, one row per post.

For developers

The Apify Actor, in one HTTP call.

Run it and get the ads back in the same request through the Apify API. Snippets for Node.js and Python are in the Actor's README.

http
curl -X POST "https://api.apify.com/v2/acts/agenttoolworks~ad-library-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "nike", "countries": ["FR"], "maxResultsPerPlatform": 50}'

Questions

Do I need a Facebook account to scrape the Facebook Ad Library?

No. The Actor reads the Ad Library the way a logged-out visitor sees it, in a real browser with no account and no cookies. Meta's own Ad Library API needs a Facebook account and an identity confirmation, and it returns commercial ads only when they reached the EU.

How many ads can it read from the Facebook Ad Library?

Up to 1,000 per platform per run. Logged out, Meta shows the first 30 results of a search and refuses further pages, so the Actor walks back through start dates instead: 1,000 Nike ads in France came back in a 139-second run. A start day with more than 30 new ads shows only its first 30, and the run summary says so.

Which platforms does it cover?

Meta (Facebook, Instagram, Messenger, Threads, Audience Network), Google (Search, YouTube, Display, Shopping, through the Ads Transparency Center) and Microsoft (Bing, through Microsoft's official public Ad Library API, which covers ads served in the European Economic Area only).

Does it return reach and targeting?

Yes, with details on. Meta: for ads shown in the EU, the people reached in the EU and per country, the payer, the beneficiary and the audience (locations, ages, gender), read from Meta's own EU transparency panel without logging in. Google and Microsoft: impressions per country, first and last day shown, and the targeting criteria used and excluded.

Does it return the text of Google ads?

When Google renders it as text. Text ads that come with a preview script (local ads) get their headline, description and display domain; text ads Google archives as an image carry their text only in the image, which the row links. Google publishes no landing URL, only the display domain. Meta and Microsoft rows carry the title and body text.

What does it cost?

$0.50 per 1,000 ads on any platform, billed by Apify with platform usage included. Advertiser rows are off unless you ask for them ($0.003 each). A repeated ad is never returned or charged twice. Apify's free plan includes $5 of monthly usage, about 10,000 ads.

Can I paste a Meta Ad Library URL or a Facebook Page?

Yes. Paste Ad Library search URLs (the keyword, country, active status, ad type, media type and dates you set on Meta's page are kept), a page's ads URL, a Facebook Page URL such as facebook.com/nike, or a page ID. Each becomes its own Meta search.

Public ad library data only: no login, no account, no data about the people who saw the ads. Not affiliated with Meta, Google or Microsoft.