Facebook Ad Library Scraper (Meta Ads Library)
Pricing
from $3.00 / 1,000 ad scrapeds
Facebook Ad Library Scraper (Meta Ads Library)
Facebook Ad Library scraper for the Meta Ads Library, also called the Meta Ad Library or Facebook Ads Library. Export Facebook, Instagram and Messenger ads by keyword, advertiser page ID or Ad Library URL: ad text, images, videos, links, run dates and platforms. No login needed.
Pricing
from $3.00 / 1,000 ad scrapeds
Rating
0.0
(0)
Developer
PulseData
Maintained by CommunityActor stats
0
Bookmarked
33
Total users
11
Monthly active users
an hour ago
Last modified
Categories
Features
Share
This actor exports ads from the Facebook Ad Library, also called the Meta Ad Library, covering Facebook, Instagram and the other Meta platforms. Search by keyword, advertiser page ID or a pasted Ad Library URL, and get one JSON row per ad with text, headline, link, call to action, media URLs, carousel cards, run dates, platforms and advertiser page. It costs $3.00 per 1,000 ads plus $0.03 per run (runs started before 20 November 2026 pay $0.01 per run).
Monitor a competitor's new Facebook ads weekly
Turn on onlyNewAds to get only the ads an advertiser launched since your last run:
{ "queries": ["15087023444"], "country": "ALL", "maxAdsPerQuery": 0, "onlyNewAds": true }
15087023444 is an advertiser page ID. How to find one is explained under Input below.
The actor stores the ID of every delivered ad in a key-value store in your Apify account; on later runs those ads are neither output nor charged. The first run returns every ad up to maxAdsPerQuery and fills the store. Save the input as a task, add an Apify schedule and an integration (email, Slack, Google Sheets, Make, Zapier or a webhook); a ready task is on the example page Track new Facebook ads of a competitor. For n8n there is a ready workflow that posts the new ads to Slack every week.
Weekly brand monitoring. In Apify Console open Schedules, click Create new, set the cron 0 7 * * 1 (Mondays at 07:00 UTC) or @daily, add the saved task and click Enable; new schedules start disabled.
To watch who advertises with your brand name, put the name in double quotes as a keyword, for example "Acme" as one line of queries, keep onlyNewAds on, and each run returns only the new ads Meta finds for that phrase, from any page.
maxAdsPerQuerysets how far down the list a run looks, and ads seen before count towards it. Use0to watch every ad.- Without
monitorStoreNameeach different input keeps its own history; the run log names the store. - An ad cut off by the run timeout or the maximum cost per run is not remembered and comes on the next run.
- Schedule one run per store; two parallel runs can both deliver the same new ad.
Features
- Scrape all Facebook ads of an advertiser by numeric page ID, active and inactive.
- Search the Facebook Ad Library by keyword in one country or all countries, or as an exact phrase.
- Scrape a Facebook Ad Library URL you set up in the browser, with its filters.
- Filter Facebook ads by country, status, media type and platform.
- Export political and issue ads with spend and impressions ranges, plus the "paid for by" disclaimer.
- Search housing, employment and credit ads, the special ad categories Meta files separately.
- Track new Facebook ads of a competitor with a scheduled run that returns only ads not delivered before.
- Export Meta Ad Library data to CSV, Excel or JSON through the Apify dataset.
Use cases
- Competitor and creative research: every creative a competitor runs, when it started and whether it is still live, for a swipe file or an LLM.
- Agency pitches and audits: a prospect's current Meta ads and run dates.
- Market scans by country: which brands advertise a product category in Germany, France or the US right now.
- Lead generation: check which companies advertise on Meta at all. Pass a list of page IDs and set
maxAdsPerQueryto 1.
Input
| Field | What it does |
|---|---|
queries (required) | One search per line. A keyword such as running shoes, "running shoes" for the exact phrase, a numeric page ID such as 15087023444 for every ad of one advertiser, or a URL copied from facebook.com/ads/library. |
country | ISO code (US, DE, GB), a country name such as Germany, or ALL. Default ALL. |
activeStatus | all (default), active or inactive. |
mediaType | all (default), image, video, meme or none (text only). |
adType | all (default), political_and_issue_ads, housing_ads, employment_ads or credit_ads. |
publisherPlatforms | Only ads shown on these platforms: facebook, instagram, messenger, audience_network, threads, whatsapp. Empty (default) means all. |
maxAdsPerQuery | Stop after this many ads per line. Default 100, 0 for no limit. |
proxyConfiguration | Residential Apify Proxy by default; Meta blocks datacenter IPs. |
onlyNewAds | Monitor mode: output and charge only ads not delivered on an earlier run. Default false. |
monitorStoreName | Key-value store that remembers delivered ads. Empty (default) means a name derived from the searches and filters. |
Example input:
{"queries": ["nike", "\"running shoes\"", "15087023444"],"country": "US","activeStatus": "active","mediaType": "all","adType": "all","maxAdsPerQuery": 200}
A pasted Ad Library URL keeps its own filters, whatever the country and media type fields say. URLs with view_all_page_id= return every ad of that advertiser.
How to find a page ID
Vanity URLs such as facebook.com/nike cannot be resolved logged out. Open the advertiser in the Ad Library and copy the number after view_all_page_id= in the address bar. Lines the actor cannot use are skipped with a note in the log.
Output
One item per ad:
{"query": "adidas","country": "GB","adArchiveId": "1654579272491885","adLibraryUrl": "https://www.facebook.com/ads/library/?id=1654579272491885","pageId": "182162001806727","pageName": "adidas","pageUrl": "https://www.facebook.com/adidas/","pageLikeCount": 43588716,"pageCategories": ["Product/service"],"isActive": true,"startDate": "2026-05-21","endDate": "2026-09-26","daysActive": 128,"publisherPlatforms": ["FACEBOOK", "INSTAGRAM"],"displayFormat": "DPA","title": "Copa Mundial","body": "Refresh your wardrobe with adidas icons.","linkUrl": "https://www.adidas.co.uk/","ctaText": "Shop now","ctaType": "SHOP_NOW","imageUrls": [],"videos": [],"cards": [{"title": "Copa Mundial Boots","linkUrl": "https://www.adidas.co.uk/copa-mundial-boots/015110.html","imageUrl": "https://scontent..."}],"collationCount": null,"categories": ["UNKNOWN"],"disclaimer": null,"spend": null,"impressions": null,"currency": null,"reachEstimate": null,"scrapedAt": "2026-09-26T17:10:00.000Z"}
For a political ad in the US, the same row carries the ranges Meta publishes:
{"categories": ["POLITICAL"],"disclaimer": "Facebook, Inc.","spend": ">$1M","impressions": ">1M","currency": "USD","reachEstimate": ">1M"}
Items also include caption, linkDescription, pageProfilePictureUrl, collationId, targetedOrReachedCountries and containsSensitiveContent. Each video has hdUrl, sdUrl and previewImageUrl. collationCount is the number of near-identical versions Meta groups under one ad.
What Meta publishes
Spend, impressions and reach are published as ranges for political and issue ads only; for ordinary commercial ads they come back as null. The actor does not open each ad's detail page, so the EU reach and targeting breakdown is not included, and neither are clicks, conversions or media files.
Pricing
| Event | Price |
|---|---|
ad-scraped, per ad returned | $0.003 |
apify-actor-start, per run | $0.03 (from 20 November 2026, $0.01 before) |
That is $3.00 per 1,000 ads plus $0.03 per run. Worked example: 300 active Nike ads in the US cost 300 × $0.003 + $0.03 = $0.93. A search that finds no ads costs only the $0.03 start. Platform usage is included in the event prices.
In monitor mode (onlyNewAds) only new ads are charged. A daily run that finds 10 new ads costs 10 × $0.003 + $0.03 = $0.06, and a run with nothing new costs only the $0.03 start.
If you set a maximum cost per run, the actor stops cleanly at that amount and keeps everything collected so far.
FAQ
Do I need a Facebook account or a Meta API token? No. The actor reads the public Ad Library logged out, with no cookies, and sees only what a logged-out visitor sees.
Can I get all ads of an advertiser, not just 100?
Set maxAdsPerQuery to 0. Large advertisers have thousands of ads and each one is charged, so set a maximum cost per run.
How fast is it? In our test runs 50 to 300 ads took 20 to 80 seconds, and 1,200 ads of one advertiser took about 15 minutes.
How long do the image and video links work? Meta signs media URLs and they expire after some days, so download files soon after the run.
Does the country filter mean the ad targeted that country? It means the ad was shown there, as in the Ad Library's own country filter.
Is it legal to use this data? The actor returns public ad data only. If you process personal data from ads or "paid for by" disclaimers, handling it lawfully (for example under the GDPR) is your responsibility.
Use it from Claude, ChatGPT or Cursor (Apify MCP server)
Any AI assistant that speaks the Model Context Protocol can call this actor. Add the Apify MCP server with this URL:
https://mcp.apify.com?tools=pulsedata/facebook-ad-library-scraper
Then ask in plain language, for example "show the active video ads Gymshark runs in the UK", and the assistant fills the input, runs the actor and reads the ads back. Billing is the same as a normal run.
Paying from an AI agent without an Apify account (x402 and Skyfire)
An agent can buy a prepaid, spend-capped Apify token at Apify AGI, paid in USDC through x402 or from a Skyfire wallet, and use it for both the API and the MCP server. This actor runs with limited permissions, so it works with these tokens. The smallest token is $1, tokens expire 14 days after purchase, and Apify marks agentic payments as experimental.
Example pages
- Track new Facebook ads of a competitor
- Export every ad a Facebook page has run
- Nike ads in the Facebook Ad Library in the US
- Active adidas ads on Facebook and Instagram in the UK
- US political ads about the election with spend and impressions
- Video ads for running shoes shown in Germany
- Scrape a Meta Ad Library search URL
- Find the Facebook ads an advertiser has stopped running
- Job ads in the Meta Ad Library in the US
- Temu ads on Facebook and Instagram in Germany
Related actors
- Google Ads Transparency Center Scraper: the same competitor view for Google Search, YouTube, Shopping, Maps and Play ads.
- LinkedIn Ad Library Scraper: B2B ads with impressions per country and targeting for EU ads.
- TikTok Ad Library Scraper: TikTok video ads shown in Europe, with run dates and audience size.
- Website Tech Stack Detector: what an advertiser's landing pages are built with.