Facebook Ads Library Scraper
Pricing
from $2.72 / 1,000 ads
Facebook Ads Library Scraper
Meta Ad Library scraper: export the ads of any Facebook page, keyword or Ad Library URL (filters kept) without a Facebook account. Ad copy, creatives, CTA, links, platforms, start and end dates, and optionally the products behind each ad. Exact limit, pay per ad.
Pricing
from $2.72 / 1,000 ads
Rating
0.0
(0)
Developer
Badr Bouargan
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
2
Monthly active users
2 days ago
Last modified
Categories
Features
Share
What is Facebook Ads Library Scraper?
Facebook Ads Library Scraper exports the ads of any brand, Facebook page or keyword from the public Meta Ad Library into one clean table, so you can study competitors' copy, creatives and calls to action without a Facebook account. It covers every ad the Ad Library shows logged-out visitors, in every country, plus spend and reach wherever Meta publishes them. You pay per ad saved.
- Paste the Ad Library URL as it is: country, language, media type, status and category filters are kept. Page URLs,
@pagenames and keywords work too. - Get every creative: ad text, images, videos, carousels, headline, call to action, link and platforms (Facebook, Instagram, Messenger, Threads, WhatsApp, Audience Network).
- See spend, reach and audience when Meta publishes them: political, social-issue and EU ads, with age, gender, country, payer and beneficiary.
- Find long-running ads with Minimum days running, and the
daysRunningof every ad. - Add the products behind the ads (optional add-on): name, price, brand and rating from the landing page.
- Use no account, cookies or Meta API token: the Actor reads the public Ad Library.
- Open a visual report of every run, with ad cards, charts, filters and exports.
Who uses it: performance marketers and media buyers doing competitor research, agencies building creative swipe files, e-commerce teams watching products and prices, and researchers tracking political and EU ads.
This Actor is not affiliated with, endorsed by or sponsored by Meta. Facebook, Instagram and Meta are trademarks of Meta Platforms, Inc. It reads only what the public Meta Ad Library shows logged-out visitors: no login, no cookies, no CAPTCHA solving.
What data can you extract from the Facebook Ad Library?
One row per ad. Values Meta does not show stay null.
| Field | Description | Example |
|---|---|---|
🏢 pageName, pageID, facebookUrl | Advertiser page | Sephora, 16453004404 |
🆔 adArchiveID | Ad Library id of the ad | 1138251732463165 |
🟢 isActive, startDateFormatted, endDateFormatted, daysRunning | Status, dates and days running | true, 2026-11-01, 27 |
📱 publisherPlatform | Where the ad runs | FACEBOOK, INSTAGRAM, THREADS |
✍️ snapshot.body.text, snapshot.title | Ad text and headline | Beauty picked just for you |
👆 snapshot.ctaText, snapshot.linkUrl, snapshot.caption | Call to action, destination and caption | Shop now, sephora.com |
🖼️ snapshot.images, snapshot.videos, snapshot.cards | Creatives, including carousels and catalogue ads | 6 cards |
🗂️ snapshot.displayFormat, categories | Format and ad category | DPA |
💸 spend, reachEstimate, impressionsWithIndex | Spend, reach and impressions when Meta publishes them | null |
👍 snapshot.pageLikeCount, snapshot.pageCategories | Page likes and category | 20347634, Health/beauty |
🛒 ecommerceData | Products behind the ad (add-on) | Soft Pinch Liquid Blush, 25 USD |
With Include extra ad details, each row also gets ad_details: advertiser page and Instagram data, page spend, and for EU ads the audience and reach by country, age and gender, payer and beneficiary. With Include page "About" information, it gets pageInfo. With Get only the total ad count, you get one row per URL with totalCount.
How to scrape the Facebook Ad Library
- Click Try for free on this page, or create a free Apify account.
- Open the Meta Ad Library, set your filters and copy the address bar. A Facebook page URL such as
https://www.facebook.com/nikealso works. - Paste it in Meta Ad Library URL or Facebook Page URL, or type keywords such as
running shoesin Search keywords / page names. - Set Results limit per URL, for example 50, and run the Actor with Start.
- Download your data as JSON, CSV, Excel or HTML, or open the visual report.
Try it free: run it once with the default input. The prefill reads 20 active ads of the Sephora page and took 4 seconds on Nov 27, 2026. With an empty input, the Actor runs the same example and says so in the log.
What you can paste:
| You paste | What you get |
|---|---|
https://www.facebook.com/SHEINOFFICIAL (also m., web., fb.com, /pg/…) | All ads of that page |
https://www.facebook.com/profile.php?id=100064… | All ads of that page |
https://www.facebook.com/ads/library/?…&view_all_page_id=… | That advertiser, with the URL's filters |
https://www.facebook.com/ads/library/?…&q=shoes&country=FR | That search, with the URL's filters |
https://www.facebook.com/ads/library/?id=1106694961565426 | That one ad |
Keyword running shoes | Ads whose text matches, in the chosen country |
Page name @nike | All ads of that page |
Several URLs on one line, duplicates and extra spaces are cleaned. Anything that is not Facebook (an Instagram link, a Facebook group) is skipped, listed in FAILED_INPUTS and never billed.
How much does it cost to scrape the Facebook Ad Library?
You pay per ad saved. Platform usage is included.
| Event | Free | Starter | Scale | Business and above |
|---|---|---|---|---|
| Ad, or one total with Get only the total ad count (per 1,000) | $4.64 | $4.00 | $3.36 | $2.72 |
| Add-on: E-commerce enrichment, per product found (per 1,000) | $4.56 | $2.56 | $2.24 | $1.92 |
| Actor start (per GB of memory, minimum one) | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
The default memory is 1 GB, so a run starts at $0.00005.
The Apify Free plan gives you $5 of platform credit each month. That covers about 1,050 ads a month at Free plan prices.
Examples on the Free plan:
- The prefill (20 ads) costs about $0.09.
- 1,000 ads cost $4.64.
- 100 ads with the e-commerce add-on finding 40 products cost about $0.46 + $0.18 = $0.65.
What is never billed:
- Failed inputs: listed in
FAILED_INPUTS. - Ads below Minimum days running: skipped, not saved.
- Add-on pages without a product: sign-up pages, app links and catalogue templates.
Results limit per URL is exact. You can also set a maximum cost per run in the run options, and the Actor stops cleanly before going over it.
Advertiser profiles, competitor comparison, AI analysis and new-ads monitoring are free during launch and priced from December 24, 2026. AI tokens are billed by your own AI provider.
⬇️ Input
The prefill:
{"startUrls": [{ "url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&media_type=all&search_type=page&view_all_page_id=16453004404" }],"resultsLimit": 20}
A competitor watch:
{"startUrls": [{ "url": "https://www.facebook.com/SHEINOFFICIAL" }],"searchQueries": ["running shoes", "@nike"],"resultsLimit": 50,"country": "US","activeStatus": "active","sorting": "total_impressions","onlyAdsNewerThan": "3 months","minDaysRunning": 14,"runTag": "competitor-watch-week-45"}
| Field | What it does |
|---|---|
| Meta Ad Library URL or Facebook Page URL | Pages, Ad Library searches or one ad. |
| Search keywords / page names | Keywords or @page names, without building a URL. |
| Results limit per URL | Exact. Empty = every ad the Ad Library lists. |
| Country (for page URLs) | ALL by default. |
| Active status, Sorting | Used when the URL doesn't set them. Sorting by impressions or most recent. |
| Scrape ads newer / older than | Dates, or relative values such as 7 days or 3 months. |
| Minimum days running | Keep only ads that ran at least N days. |
| Get only the total ad count | One row per URL, for market sizing. |
| Include extra ad details, Include page "About" | Spend, reach, Instagram data and EU audience; page information. |
| Enrich with e-commerce data | The paid add-on. |
| Run tag | A label copied to every row. |
The field names match the Store's reference Facebook Ads scraper (startUrls, resultsLimit, onlyTotal, isDetailsPerAd, includeAboutPage, activeStatus…), so an existing input works as it is.
⬆️ Output
Each run saves a dataset with one row per ad. You can download your data as JSON, CSV, Excel, XML or HTML, or read it through the API. A row from the run below, shortened (creative links removed: Facebook signs them and they expire after a few days):
{"inputUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=ALL&media_type=all&search_type=page&view_all_page_id=16453004404","facebookUrl": "https://www.facebook.com/sephora/","pageID": "16453004404","adArchiveID": "1138251732463165","pageName": "Sephora","isActive": true,"startDateFormatted": "2026-11-01T07:00:00.000Z","endDateFormatted": "2026-11-27T08:00:00.000Z","daysRunning": 27,"publisherPlatform": ["FACEBOOK", "INSTAGRAM", "THREADS"],"categories": ["UNKNOWN"],"spend": null,"reachEstimate": null,"snapshot": {"pageName": "Sephora","pageLikeCount": 20347634,"pageCategories": ["Health/beauty"],"title": "{{product.name}}","body": { "text": "Beauty picked just for you 💐" },"caption": "sephora.com","ctaText": "Shop now","ctaType": "SHOP_NOW","linkUrl": "http://www.sephora.com/","displayFormat": "DPA","cards": [{"title": "CLINIQUE Acne Solutions™ Clarifying Lotion Liquid Exfoliator with Salicylic Acid 6.7 oz/ 200 mL","ctaText": "Shop Now","linkUrl": "https://www.sephora.com/product/acne-solutions-clarifying-lotion-P188307?skuId=1027473&om_mmc=paid_social_Facebook_DPA"}]}}
The table view of the run's visual report (first 12 of 20 ads; the Page, Status, Ends and Link columns hidden to fit the width):

Real run PlYi1lLXB0YgbtVw9 · Nov 27, 2026 · prefill: 20 active ads of the Sephora page
Every run also saves a visual report: key figures (ads, share of active and video ads, median days running, pages), platforms, busiest start months and calls to action, data completeness, then one card per ad the way it looks in the library, with search, filters, sorting, a creative viewer and JSON, CSV or Excel export. Open it from the Output tab (Visual report) or the REPORT record. Creatives load from Facebook in your browser; nothing is re-hosted. Facebook's links expire after a few days, so an older report shows placeholders where creatives used to be, and the data stays. The report holds the first 1,000 ads, and the dataset keeps every row.

Real run PlYi1lLXB0YgbtVw9 · Nov 27, 2026 · prefill: 20 active ads of the Sephora page
Records in the run's key-value store:
RUN_SUMMARY: status, ads saved, products billed, URLs, failed inputs,refusedRequests,technicalRetries,stoppedByBudgetandproxyNote.FAILED_INPUTS: what gave nothing, with the reason. Never billed.REPORT: the visual report. Saving it is never billed and can never make a run fail.
A request Facebook refuses (403, 429, login or CAPTCHA page, rate limit) is not tried again: the input is marked blocked, or partial when some ads were saved, and nothing more is charged for it. A technical error (network, timeout, 5xx) gets at most 2 new tries.
Optional: advertiser profiles, comparison, AI and monitoring
All are off by default. Everything is computed from the ads saved in the run: nothing is estimated.
| Option | What you get |
|---|---|
Advertiser profiles (advertiserProfiles) | One row per advertiser: ads, active share, dates, median days running, platforms, formats, calls to action, landing domains, repeated texts. Spend and reach only when Meta published them. |
Competitor comparison (competitorComparison) | With 2 or more advertisers: one row comparing formats, platforms, counts, keywords and dates. |
| AI analysis per ad, AI advertiser report | With your own OpenAI, Anthropic or Gemini key: summary, sector, selling arguments, with checked facts kept apart from labelled hypotheses. |
New-ads monitoring (monitorNewAds) | For scheduled runs: only ads not seen before, plus a summary of new, now inactive and no longer shown ads. |
Your AI key is a secret input: never logged and never saved in the results. Limits: aiMaxAds (20), aiMaxAdvertiserReports (10), aiMaxOutputTokens (800). Ad text is treated as untrusted data, and suspicious text is flagged with injectionSuspected. AI text never estimates spend, reach or audience.
Monitoring finds changes each time you run it, so use a schedule. The first run of a search is the baseline. The ids are kept in a named store of your own account (fb-ads-monitoring by default).
Integrations and API
You can start runs and read results from code with the apify-client package (npm, PyPI). The full reference is in the Apify API docs.
Python:
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("badr_xba/facebook-ads-library-scraper").call(run_input={"startUrls": [{"url": "https://www.facebook.com/nike"}],"searchQueries": ["running shoes"],"resultsLimit": 50,"country": "US",})for ad in client.dataset(run["defaultDatasetId"]).iterate_items():print(ad["pageName"], ad["adArchiveID"], (ad.get("snapshot") or {}).get("linkUrl"))
JavaScript:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('badr_xba/facebook-ads-library-scraper').call({startUrls: [{ url: 'https://www.facebook.com/nike' }],resultsLimit: 50,country: 'US',});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.length);
cURL (runs the Actor and returns the ads in one call):
curl -X POST "https://api.apify.com/v2/acts/badr_xba~facebook-ads-library-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"startUrls": [{"url": "https://www.facebook.com/nike"}], "resultsLimit": 20}'
Other ways to connect it:
- Make, n8n and Zapier: push new ads into Google Sheets, Airtable, Notion or Slack when a run ends.
- Webhooks: trigger an action when a run ends, and branch on
RUN_SUMMARY.status(docs). - Schedules: a daily run with Scrape ads newer than =
1 daytracks competitors' new ads (docs). - MCP: add
https://mcp.apify.com/?actors=badr_xba/facebook-ads-library-scraperto Claude, ChatGPT or Cursor (docs).
Other ad and social media scrapers
More Actors by the same developer:
- Competitor Ads Spy – Meta & Google Ads: a brand's Meta and Google ads in one dataset.
- Google Ads Transparency Scraper: Google ads by domain or advertiser.
- Shopify Trending Products Scraper: look at the store behind an ad.
- Instagram Profile Scraper: the advertiser's Instagram presence.
- TikTok Scraper: the advertiser's TikTok presence.
- AI Document & Web Analyzer (Claude): classify ad angles and messages with AI.
❓ FAQ
Is it legal to scrape the Facebook Ad Library?
The Actor reads only public data that Meta shows logged-out visitors in the Ad Library. You are responsible for complying with Meta's terms and with data-protection law. Some fields, such as payer and beneficiary names or page details, may be personal data under the GDPR, so use them for a legitimate purpose only. The Apify blog explains the general rules in Is web scraping legal?.
Can I use Facebook Ads Library Scraper through an MCP server?
Yes. Add https://mcp.apify.com/?actors=badr_xba/facebook-ads-library-scraper to your MCP client (Claude, ChatGPT, Cursor). You can then ask, for example, "get the 30 latest active ads of Nike in the US".
Can I integrate Facebook Ads Library Scraper with other apps?
Yes. It works with Make, n8n, Zapier, Google Sheets, Google Drive, Slack and any tool that accepts webhooks.
Can I use Facebook Ads Library Scraper with the Apify API or in Python?
Yes. Use apify-client for Python or JavaScript, or call the REST API directly. The examples above show all three.
How much does it cost to scrape the Facebook Ad Library?
$4.64 per 1,000 ads on the Free plan, down to $2.72 on Business, plus $0.00005 per run start. The e-commerce add-on is billed only per product found. Failed inputs are never billed.
Do I need proxies to scrape the Facebook Ad Library?
No. The Actor uses its default connection. A residential proxy group set in Proxy is not used, and RUN_SUMMARY.proxyNote says so.
Is there an official Facebook Ad Library API?
Yes. Meta's official Ad Library API requires identity verification and returns mainly political and social-issue ads, plus ads delivered in the EU. This Actor does not use it: it reads what the public Ad Library website shows, for every ad type, without an account or token.
Can I get spend and reach for any ad?
Only when Meta publishes them: political, social-issue and EU ads. Meta publishes no spend or reach for ordinary commercial ads outside the EU. totalCount = 50001 means "more than 50,000 ads", because the Ad Library stops counting there.
What can't it do?
- Not available: ads Meta does not show in the Ad Library.
- Not available: the confirmed owner, address and page history (shown only to signed-in users).
- Keyword search works like the Ad Library search box: words match anywhere in the ad. For exact results, search with quotes in the Ad Library and paste that URL.
Facebook Ads Library Scraper not working?
- A URL in
FAILED_INPUTSwith "not found": the page has no ads, or its alias differs. Select the page in the Ad Library and paste that URL (it containsview_all_page_id). - "No ads match these settings": your filters exclude every ad. Try active and inactive ads, or country ALL.
- "Partial: Facebook rate-limited": you keep, and pay for, only what was saved. Run it again later for the rest.
- The run stopped early:
stoppedByBudget: trueinRUN_SUMMARYmeans your maximum cost per run was reached. - A run blocked everywhere ends Succeeded:
RUN_SUMMARYstatus isBLOCKEDorCUSTOMER_ERRORand nothing is charged. Turn onfailRunOnErrorto get a Failed run instead. Technical errors always end Failed.
Your feedback
Found a bug, a missing field or a page that should have worked? Open an issue on the Issues tab with your run ID. A short review on the Store page also helps other marketers find the Actor.