Facebook Ads Library Scraper | Exact Ad Limit | No Login avatar

Facebook Ads Library Scraper | Exact Ad Limit | No Login

Pricing

from $3.06 / 1,000 results

Go to Apify Store
Facebook Ads Library Scraper | Exact Ad Limit | No Login

Facebook Ads Library Scraper | Exact Ad Limit | No Login

Scrapes the Facebook Ads Library (Meta ad library) from links, Page URLs or search words. Give it what to look for and how many; get each ad's text, dates, platforms, links and images, plus EU reach and payer as rows, stopping at exactly your limit. Same field names as the most used tool.

Pricing

from $3.06 / 1,000 results

Rating

0.0

(0)

Developer

ANVIL Tools

ANVIL Tools

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Facebook Ads Library Scraper - Ask for 40 ads, get 40 ads - with EU reach, reach by country and the payer filled in right on the row.

What does Facebook Ads Library Scraper do?

The run stops at exactly your resultsLimit (every row shows resultsLimitApplied) and opens each ad's details like a visitor for EU reach, reach by country and payer as plain fields when Facebook shows them.

  • Exact limit per input and for the whole run, so a test run cannot eat your credit
  • EU reach, reach by country, age and gender, payer and beneficiary as plain fields, read from each ad's public details when Facebook answers them
  • Date range applied in the search and checked on every row, 7 days or 2 months work too
  • Same input and output field names as the most used tool - switch by changing the actor id
  • onlyNew for schedules: 0 rows and a clean finish when nothing changed

Who uses Facebook Ads Library Scraper, and for what

  • Agencies - pull a competitor's newest ads every morning with onlyNew
  • Media buyers - see how many people an EU ad really reached, by country and age
  • Ecommerce teams - check how long a rival's ads have been running
  • Developers - swap the actor id and keep the same field names in their program

What this Facebook Ads Library Scraper does that users of the usual tools ask for

  • Stop at exactly the number of ads asked for, so a run can never bill past it - in the resultsLimitApplied field
  • Date range and limits that are really applied, shown on every row - in the dateFilterApplied field
  • Individual ads whenever the count-only switch is off, with the total on each row - in the totalCount field

Switching takes one minute

The input and result field names are the ones the most used Facebook Ads Library Scraper has, so the input JSON your code already sends works unchanged and your pipeline reads the same fields - plus the new ones above.

Why this Facebook Ads Library Scraper?

Small tools break when Facebook changes its page, and they use different field names, so programs cannot switch to them. This Facebook Ads Library Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

Data you get from Facebook Ads Library Scraper

Every result is one flat row with these fields (values from a real run):

FieldExample
inputUrlhttps://www.facebook.com/ads/library/?q=adidas&active_status...
searchTermadidas
totalCount50001
resultsLimitApplied3
dateFilterAppliednull
changeTypenull
adArchiveIDnull
adArchiveIdnull
adIdnull
pageIDnull
pageIdnull
pageNamenull
pageAliasnull
pageUrlnull
facebookUrlnull
pageIsDeletednull
pageLikesnull
pageVerificationnull
entityTypenull
igUsernamenull
igFollowersnull
isActivenull
startDatenull
endDatenull
startDateFormattednull

How to use Facebook Ads Library Scraper

  1. Press Start - the form already holds an example that works.
  2. Put in your own input (see the fields on the Input tab).
  3. Run it once, or put it on an Apify Schedule (with only new on, where the form has it) to get just what is new every day; add a webhookUrl to get each run's rows sent to your own system, Zapier, Make or Slack.
  4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

Input example

{
"startUrls": [
{
"url": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=DE&q=adidas&search_type=keyword_unordered&media_type=all"
}
],
"country": "US",
"resultsLimit": 3,
"maxItems": 1000,
"activeStatus": "",
"sorting": "",
"onlyAdsNewerThan": "1 year",
"isDetailsPerAd": true,
"onlyTotal": false,
"onlyNew": false,
"useApifyProxy": true
}

Output example (a real run)

[
{
"inputUrl": "https://www.facebook.com/ads/library/?q=adidas&active_status=all&ad_type=all&country=DE&media_type=all&search_type=keyword_unordered&locale=en_US",
"searchTerm": "adidas",
"totalCount": 50001,
"resultsLimitApplied": 3,
"dateFilterApplied": null,
"changeType": null,
"adArchiveID": null,
"adArchiveId": null,
"adId": null,
"pageID": null,
"pageId": null,
"pageName": null,
"pageAlias": null,
"pageUrl": null,
"facebookUrl": null,
"pageIsDeleted": null,
"pageLikes": null,
"pageVerification": null,
"entityType": null,
"igUsername": null,
"igFollowers": null,
"isActive": null,
"startDate": null,
"endDate": null,
"startDateFormatted": null,
"endDateFormatted": null,
"daysRunning": null,
"publisherPlatform": null,
"collationId": null,
"collationCount": null,
"categories": null,
"currency": null,
"spend": null,
"reachEstimate": null,
"impressions": null,
"impressionsWithIndex": null,
"euTotalReach": null,
"reachByCountry": null,
"ageGenderData": null,
"locationData": null,
"targetedOrReachedCountries": null,
"genderAudience": null,
"ageMin": null,
"ageMax": null,
"payer": null,
"beneficiary": null,
"hasUserReported": null,
"reportCount": null,
"displayFormat": null,
"adTitle": null,
"adText": null,
"linkUrl": null,
"ctaText": null,
"ctaType": null,
"imageUrls": null,
"videoUrls": null,
"adLibraryUrl": null,
"snapshot": null,
"ad_details": null
}
]

One flat row per result.

Built for pipelines

  • Field names never change - fixes and new features only ever add fields, so your code keeps working.
  • Every row has the same shape - a missing value is null, never a dropped field.
  • A plain status line on every run - how many results, and on a problem what to change in the input - for your logs and for AI agents.
  • Runs on its own - put it on an Apify Schedule and add a webhookUrl: each run's rows go straight to your system, Zapier, Make or Slack.

How much does Facebook Ads Library Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the Pricing tab. Apify's free plan credit is enough to try it on real input.

You wantWhat you pay for
A quick test with the examplea few results
A daily scheduled runonly the rows that run returns
A big one-off exportthe results delivered - set a maximum in the input

Also searched as

  • meta ads library
  • facebook ad library
  • facebook ads scraper
  • meta ads scraper
  • facebook ads library api

FAQ

Does Facebook Ads Library Scraper need a login, cookies or an API key? No. It reads public pages only.

Can I run Facebook Ads Library Scraper on a schedule? Yes - with Apify Schedules; each run returns fresh rows.

Can I call it from Python, JavaScript or an AI agent? Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

Is it legal? It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

What if the site blocks a request? The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

Do I need proxies? No setup needed - Facebook Ads Library Scraper uses Apify Proxy by default where the site needs it.

Troubleshooting

  • No results: check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
  • Fewer results than expected: raise the maximum in the input; some sites show only a part of their data without logging in, and Facebook Ads Library Scraper never logs in.
  • The run stopped with a message: the message says what the site answered; run it again later or with fewer items.

Your feedback

Missing a field, found a bug, or need another site? Open an issue on the Issues tab - issues are answered and fixed. If Facebook Ads Library Scraper saved you time, a short review on this page helps others find it.

Data source: www.facebook.com/ads/library

More tools from this developer