Facebook Ads Library Scraper avatar

Facebook Ads Library Scraper

Pricing

from $1.19 / 1,000 results

Go to Apify Store
Facebook Ads Library Scraper

Facebook Ads Library Scraper

Facebook Ads Library Scraper SD - Facebook Ads Library Scraper is a market research tool that extracts ads from the public Meta Ad Library by keyword or advertiser page with texts, images, videos, links, dates and platforms - Meta ad library extractor.

Pricing

from $1.19 / 1,000 results

Rating

0.0

(0)

Developer

Neuro Scraper

Neuro Scraper

Maintained by Community

Actor stats

0

Bookmarked

17

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Facebook Ads Library Scraper — ads by keyword or advertiser page

The Facebook Ads Library Scraper collects public Facebook ads library data and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the Facebook Ads Library Scraper your input, start it and get structured Facebook data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

⭐ Featured by Neuro Scraper: Facebook Reels Scraper - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. Try the Facebook Reels Scraper →

The Facebook Ads Library Scraper exports ads from the public Meta Ad Library by keyword or advertiser page: ad text, title, link, call to action, images, videos, carousel cards, dates, platforms and page details.

It runs on Apify, needs no Facebook login and no cookies, and exports to JSON, CSV, Excel or an API call. Every session key it needs (tokens, query ids, cursors) is read from Facebook on each run, so it keeps working when Facebook ships new code.

What the Facebook Ads Library Scraper does

  • Searches the Ad Library by keyword, or lists every ad of an advertiser page id.
  • Filters by country, status, ad type and media type.
  • Follows the Ad Library's cursor (30 per page).
  • Returns video and image links of each creative.

Who uses the Facebook Ads Library Scraper

  • Marketers studying competitors' ads.
  • Agencies building ad swipe files.
  • Researchers tracking political and issue ads.

How the Facebook Ads Library Scraper works

Facebook serves public pages, videos and listings to logged-out visitors and embeds the first page of data in the HTML.

Query ids that a page does not preload are read from the JavaScript bundles the page lists, and the variable names of each query come from its own module, so the request always matches Facebook's current code.

Nothing is guessed: if Facebook stops publishing a value the Facebook Ads Library Scraper needs, the run log names it and the item is skipped instead of being filled with a stale value.

Input of the Facebook Ads Library Scraper

FieldTypeDefaultWhat it does
searchTermsarray["nike"]A keyword, an advertiser page id (digits) or an Ad Library URL with view_all_page_id.
countrystringUSTwo-letter country code (US, GB, DE, IN ...) or ALL.
activeStatusstringactiveWhich ads to include.
adTypestringallAd category filter.
mediaTypestringallCreative type filter.
maxItemsinteger50Upper limit per keyword or page (30 per page, paginated).
maxTotalItemsinteger0Stops the whole run after this many dataset rows.
proxyConfigurationobject{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}Facebook limits logged-out visitors per IP address. Residential proxies (the default) give the most reliable results; the Actor switches to a fresh IP when Face

Example input for the Facebook Ads Library Scraper:

{
"searchTerms": [
"nike"
],
"country": "US",
"activeStatus": "active",
"adType": "all",
"mediaType": "all",
"maxItems": 50
}

Output of the scraper

Each dataset row is one ad. These are the fields the Facebook Ads Library Scraper produced in its test runs:

FieldMeaning
adArchiveIdAd Library id
adLibraryUrladLibraryUrl
bodyTextAd text
captionCaption text
cardscards
categoriescategories
collationCountcollationCount
collationIdcollationId
containsDigitallyCreatedMediacontainsDigitallyCreatedMedia
countrycountry
ctaTextctaText
ctaTypectaType
currencycurrency
displayFormatdisplayFormat
endDateLast delivery date
imagesimages
impressionsTextimpressionsText
isActiveisActive
linkDescriptionlinkDescription
linkUrllinkUrl
pageCategoriespageCategories
pageIdpageId
pageLikespageLikes
pageNameAdvertiser page
pageUrlpageUrl
platformsFacebook, Instagram, Messenger, Audience Network
reachEstimatereachEstimate
scrapedAtWhen this row was read
searchTermsearchTerm
spendspend
startDateFirst delivery date
titleTitle
videosvideos

Fields that Facebook does not publish for an item are left empty rather than guessed. Download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the Apify API.

Example row from a the scraper test run

A real row from the local test run (long values shortened):

{
"adArchiveId": "925321173274919",
"adLibraryUrl": "https://www.facebook.com/ads/library/?id=925321173274919",
"isActive": true,
"pageId": "89516513179",
"pageName": "Nordstrom Rack",
"pageUrl": "https://www.facebook.com/NordstromRack/",
"pageLikes": 2518543,
"pageCategories": [
"Clothing (Brand)"
],
"startDate": "2026-08-03T07:00:00.000Z",
"endDate": "2026-10-02T07:00:00.000Z",
"platforms": [
"FACEBOOK",
"INSTAGRAM",
"MESSENGER"
],
"displayFormat": "VIDEO",
"bodyText": "Buy online and pick up in store for free! Get up to 70% off Nike, Vince, Madewell, adid...",
"title": "Fast & Free Pickup",
"caption": "Nordstromrack.com",
"linkUrl": "https://fb.com/canvas_doc/1072291375736811",
"linkDescription": "Fast & Free Pickup",
"ctaText": "Learn more",
"ctaType": "LEARN_MORE",
"images": null,
"videos": [
{
"hdUrl": "https://video.fdac5-1.fna.fbcdn.net/o1/v/t2/f2/m366/AQPMHFeiZ7eLWAaUSfl9UjSZ2QaJHkx2VTZ...",
"sdUrl": "https://video.fdac5-2.fna.fbcdn.net/o1/v/t2/f2/m412/AQMV2s6BM70XySEODiEt8eTNuMKZMp2op1h...",
"previewUrl": "https://scontent.fdac5-2.fna.fbcdn.net/v/t39.35426-6/765069451_1338486861688039_3992643..."
}
],
"cards": null
}

Data quality of the scraper

  • Every value in a Facebook Ads Library Scraper row is read from Facebook during your run; nothing is filled from a cache or an old snapshot.
  • Rows are de-duplicated by id inside a run, so the same ad never appears twice in one dataset.
  • Counts are numbers you can sort and sum (not "1.2K" text) wherever Facebook publishes the exact number.
  • Dates are UTC in ISO 8601 format, which Excel, Google Sheets, Python and SQL all read directly.

The scraper test results

These numbers come from live test runs of the Facebook Ads Library Scraper on 2026-10-03 (home connection, no proxy). Runs on the Apify platform use residential proxies and can be faster or slower.

TestRowsTime
ads keyword US (70, paginated)7012 s
advertiser page id, all statuses123 s

The scraper limits, stated plainly

  • Measured locally: 70 ads for "nike" in the US in 12 seconds; Facebook reported 23,130 matching ads.
  • Spend and impressions are published only for political and issue ads.

How to run the scraper

  1. Open the Facebook Ads Library Scraper in Apify Console and fill in the input fields described above.
  2. Keep the default residential proxy unless you have a reason to change it; Facebook limits logged-out visitors per IP address.
  3. Start the run, watch the log, and download the dataset when the status says Done.
  4. To automate it, call the Facebook Ads Library Scraper from the Apify API, schedule it, or connect it to Make, Zapier, n8n or Google Sheets through an integration or webhook.

Python example with the Apify API client:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run_input = {
"searchTerms": [
"nike"
],
"country": "US",
"activeStatus": "active",
"adType": "all",
"mediaType": "all",
"maxItems": 50
}
run = client.actor("neuro-scraper/facebook-image-photos-downloader").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

The scraper pricing

The Facebook Ads Library Scraper uses pay-per-event pricing: you pay per dataset row (event "result"), plus the Apify platform usage of your run. Free-plan users get up to 30 rows per run, which is enough to test the Facebook Ads Library Scraper on real data.

Set a maximum cost per run in Apify and the Facebook Ads Library Scraper stops cleanly when it is reached.

Tips for large runs of the scraper

  • Start with a small limit to check the Facebook Ads Library Scraper output, then raise it; the first rows arrive within seconds.
  • Split very large jobs into several inputs and run them in parallel tasks; each run gets its own proxy sessions.
  • Set a maximum cost per run in Apify; the Facebook Ads Library Scraper stops cleanly when the budget is reached and keeps every row it already saved.
  • Schedule repeat runs instead of one huge run when you track the same targets over time.
  • Keep the residential proxy: datacenter IPs are refused by Facebook far more often for logged-out visitors.

The scraper compared with copying by hand

Facebook Ads Library ScraperManual work
SpeedSeconds per page of resultsMinutes per item
FieldsEvery public field, same order every timeWhatever you copy
FormatJSON, CSV, Excel, APISpreadsheet you build yourself
RepeatableSchedule it dailyStart again each time
ErrorsLogged per itemUnnoticed typos

Using the scraper in a workflow

  • Send every new row to Google Sheets or Airtable with the Apify integration and keep a live table.
  • Trigger a Make, Zapier or n8n scenario with a webhook when the run finishes.
  • Load the JSON export into Python or BigQuery for analysis and dashboards.
  • Use the Apify API: start the Facebook Ads Library Scraper with a POST request and read the dataset items endpoint when the run finishes.
  • Chain it: pass the Facebook Ads Library Scraper output to another Apify Actor (for example a downloader or a transcript Actor) in an Apify task.
  • Export straight to Excel from the dataset tab when you only need a one-off report.

Troubleshooting the scraper

  • The run ends with no rows: open the log. The Facebook Ads Library Scraper writes one line per target saying what Facebook returned, for example a login wall or a missing item.
  • Fewer rows than expected: the target may have fewer public items, or Facebook may stop serving more pages to logged-out visitors. The log names the reason.
  • Slow run: large limits mean many pages; the Facebook Ads Library Scraper waits briefly between pages so Facebook keeps answering. Split big jobs into several runs.
  • Proxy errors: keep the RESIDENTIAL group. The Facebook Ads Library Scraper already switches to a fresh IP when one is blocked.
  • Free plan stops at 30 rows: that is the free-plan cap of the Facebook Ads Library Scraper; any paid Apify plan removes it.

What changed in this version of the scraper

  • Pay-per-event pricing (one event per row) replaces the old monthly rental; free-plan users can test with 30 rows per run.
  • Residential proxy by default, with automatic switch to a fresh IP when Facebook blocks one.

The Facebook Ads Library Scraper reads only data that Facebook shows to any logged-out visitor. It never logs in and never touches private content.

Personal data may still be in public posts, so check GDPR and the other laws that apply to you before you store or reuse it, and respect Facebook's terms.

Leave a review

If the Facebook Ads Library Scraper saved you time, please leave a star rating and a short review on its Apify page. Reviews help other users find the Facebook Ads Library Scraper and tell us what to improve next.

Frequently asked questions

Does the scraper need a Meta API token?

No. It reads the public Ad Library pages logged out.

Does the scraper need my Facebook login?

No. The Facebook Ads Library Scraper works logged out and never asks for your password or cookies. It reads only what Facebook shows to any visitor.

Do I need my own proxy for the scraper?

No. The Facebook Ads Library Scraper uses Apify residential proxies by default and switches to a fresh IP when Facebook blocks one. You can choose another proxy in the input.

What formats can I export from the scraper?

JSON, CSV, Excel, XML, HTML and RSS from the dataset tab, or any format through the Apify API, webhooks and integrations.

How fast is the scraper?

In the test runs above the Facebook Ads Library Scraper took between 3 and 12 seconds per run. Speed depends on how many items you ask for and on the proxy.

Why did the scraper return fewer rows than I asked for?

The Facebook Ads Library Scraper stops when Facebook has nothing more to show logged out, when your limit is reached, or when the free-plan cap of 30 rows applies. The run log always says which one happened.

Can I schedule the scraper?

Yes. Create a schedule in Apify Console to run the Facebook Ads Library Scraper daily or hourly and send the results to Google Sheets, Make, Zapier or n8n through an integration.

Can the scraper read private accounts or private groups?

No. The Facebook Ads Library Scraper reads public data only. Private content needs a login, and the Facebook Ads Library Scraper never logs in.

What happens when Facebook changes its website?

The Facebook Ads Library Scraper reads every key it needs from Facebook at run time, so routine changes are picked up automatically. If something can no longer be read, the log says so instead of returning wrong data.

Can I use the scraper with Make, Zapier or n8n?

Yes. Add the Facebook Ads Library Scraper as an Apify step in Make, Zapier or n8n, or send a webhook when the run finishes and fetch the dataset items from the Apify API.

Does the scraper work in every country?

The Facebook Ads Library Scraper reads Facebook through residential proxies that rotate across countries. Content that Facebook restricts by country follows those rules.

How do I collect only new items with the scraper?

Schedule the Facebook Ads Library Scraper and keep the item ids from earlier runs. Every row has a stable id, so a simple de-duplication against your previous export keeps only the new ones.

Can the scraper process many targets in one run?

Yes. Put as many targets as you like in the input; the Facebook Ads Library Scraper handles them one after another and a failing target never stops the others.

Why use the scraper

The Facebook Ads Library Scraper is a Facebook scraper and Facebook data extractor for anyone who needs public Facebook ads library data as clean data. The Facebook Ads Library Scraper handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the Facebook Ads Library Scraper for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

  • No login and no code: the Facebook Ads Library Scraper runs on Apify with one click or one API call.
  • Pay per result: the Facebook Ads Library Scraper charges only for rows delivered - no monthly Facebook API fee.
  • Complete fields: the Facebook Ads Library Scraper returns every public field, with a stable schema for automation.
  • Integrations: connect the Facebook Ads Library Scraper to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

The scraper use cases

  • Market research: the Facebook Ads Library Scraper collects Facebook ads library data at scale, so you can compare trends across weeks and niches.
  • Competitor analysis: run the Facebook Ads Library Scraper on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
  • Lead generation and B2B prospecting: the Facebook Ads Library Scraper gives a sales or agency team a clean list to load into a CRM.
  • Content and social media monitoring: the Facebook Ads Library Scraper keeps a fresh copy of Facebook data through an Apify schedule and a webhook.
  • Analytics and dashboards: send the Facebook Ads Library Scraper output as JSON through the Apify API into Python, Node.js or a BI tool.
  • Academic and data science projects: the Facebook Ads Library Scraper returns a consistent schema, ready for pandas, R or a notebook.
  • Price, product and brand tracking: the Facebook Ads Library Scraper turns public Facebook data into a dataset you can diff run by run.
  • Automation workflows: connect the Facebook Ads Library Scraper to Zapier, Make or n8n so every new row starts your next step.

How to run it with the API, Python and Node.js

Start the Facebook Ads Library Scraper from the Apify Console, or call it from code. The Facebook Ads Library Scraper returns its dataset as JSON, CSV or Excel. With the Apify API you can run the Facebook Ads Library Scraper from Python or Node.js, wait for it to finish and read the rows, which makes the Facebook Ads Library Scraper easy to plug into an automation, a data pipeline or a scheduled export.

  1. Open the Facebook Ads Library Scraper on Apify and fill in the input (or send the same input as JSON to the API).
  2. Start the Facebook Ads Library Scraper. Follow the run log while the Facebook Ads Library Scraper collects public Facebook data.
  3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
  4. Schedule the Facebook Ads Library Scraper to keep your Facebook data fresh for monitoring and analytics.

Tips for better results

  • Start small: run the Facebook Ads Library Scraper with a low maximum first, check the fields, then scale up the same input.
  • Split big jobs: several smaller Facebook Ads Library Scraper runs (by keyword, URL list or date) finish faster and are easier to resume.
  • Keep a history: name a dataset or use a schedule so each Facebook Ads Library Scraper run adds to your Facebook data over time.
  • Filter early: use the input filters of the Facebook Ads Library Scraper so you only pay for the Facebook ads library data you really need.
  • Automate the hand-off: a webhook or the Zapier and Make integrations can move every Facebook Ads Library Scraper result straight to Google Sheets, a CRM or a database.
  • Watch the run log: the Facebook Ads Library Scraper writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

The scraper FAQ

Get started

Open the Facebook Ads Library Scraper, paste your input and press Start. In a few minutes the Facebook Ads Library Scraper hands you clean Facebook data as JSON, CSV or Excel, ready for analytics, monitoring, research or your CRM. Questions or a missing field? Write to us from the Facebook Ads Library Scraper page on Apify - we answer fast and add features users ask for.

More scrapers from Neuro Scraper

ActorWhat it extracts
⭐ Facebook Reels ScraperFacebook Reels with exact views, plays, every reaction type, comments and shares
Facebook Comments ScraperFacebook comments with all public fields, exported to JSON, CSV or Excel
Facebook Followers ScraperFacebook followers with all public fields, exported to JSON, CSV or Excel
Facebook Groups ScraperFacebook groups with all public fields, exported to JSON, CSV or Excel
Facebook Hashtag ScraperFacebook hashtag data with all public fields, exported to JSON, CSV or Excel
Facebook ID FinderFacebook id data with all public fields, exported to JSON, CSV or Excel
Facebook Photos ScraperFacebook photos with all public fields, exported to JSON, CSV or Excel
Facebook Posts ScraperFacebook posts with all public fields, exported to JSON, CSV or Excel
Facebook Profile ScraperFacebook profile data with all public fields, exported to JSON, CSV or Excel
Snapchat Profile ScraperSnapchat profile data with all public fields, exported to JSON, CSV or Excel
Amazon ScraperAmazon data with all public fields, exported to JSON, CSV or Excel
Instagram Reels ScraperInstagram reels with all public fields, exported to JSON, CSV or Excel
Facebook Video Details ScraperFacebook video details with all public fields, exported to JSON, CSV or Excel