Facebook Ad Library Scraper avatar

Facebook Ad Library Scraper

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Facebook Ad Library Scraper

Facebook Ad Library Scraper

Scrapes Meta Ad Library via internal APIs -> no browser, no slow crawling. Competitor ad intelligence at $1/1k results.

Pricing

from $1.00 / 1,000 results

Rating

5.0

(1)

Developer

Spectre

Spectre

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

4 hours ago

Last modified

Share

Scrape ads from Meta's Ad Library at scale. Search by keyword, filter by country, or pull every ad running on a specific Facebook page. This actor hits Meta's internal GraphQL APIs directly, so there's no login, no cookies, and no browser automation overhead. Feed the output into your competitive research workflow, ad monitoring dashboard, or automation pipeline.

Who is this for?

Media buyers and performance marketers doing competitor research. See what creatives your competitors are running, how long they've been active, and which platforms they target (Facebook, Instagram, Audience Network).

Marketing agencies automating weekly ad intelligence reports. Schedule runs on Apify, export to CSV or JSON, and pipe the data straight into your client dashboards.

Developers and automation builders (n8n, Make, Zapier) who need Facebook ad data programmatically. Trigger runs via API, process results in your pipeline, and build alerting systems around competitor ad launches.

How to use it

Scraping search results

  1. Go to Meta Ad Library and run a search.
  2. Copy the full URL from your browser's address bar.
  3. Open Facebook Ad Library Scraper on Apify.
  4. Paste the URL into the Input URLs / Keywords field.
  5. Set your Max ads limit and pick a Proxy (datacenter works for most cases).
  6. Click Start.
  7. When the run finishes, click Export to download your data as JSON, CSV, or Excel.

Scraping a specific Facebook page

Paste the Facebook page URL directly into the input field. The scraper will extract all ads currently running (or previously run) by that page.

Input options

FieldDescriptionDefault
Input URLs / KeywordsAd Library search URLs or Facebook page URLs
Max ads to scrapeCap on total ads extracted. Leave empty for all.100
Deep ScrapeExtract EU transparency data, spend estimates, and reach (slower)Off
Active statusFilter: all, active, or inactiveall
Country2-letter ISO code (e.g. US, IN, GB) or ALL for globalALL
Proxy configurationDatacenter recommended. Use residential if blocked.Datacenter

Why this scraper?

  • No login or cookies required. Works out of the box.
  • Hits Meta's internal APIs directly. Fast extraction, no brittle DOM scraping.
  • Search results and page-level scraping. Two input modes, one actor.
  • Deep Scrape mode. Optionally pull EU transparency fields, spend estimates, and reach data.
  • JSON, CSV, Excel export. One click in the Apify console.
  • Proxy support built in. Datacenter and residential proxy rotation handled automatically.
  • Scheduled runs. Set it and forget it. Apify handles cron-style scheduling natively.

Data fields

The scraper extracts these fields for each ad:

FieldFieldField
Ad IDAd Archive IDArchive Types
CategoriesContains Digitally Created MediaCollation Count
Collation IDCurrencyEnd Date
Entity TypeGated TypeHas User Reported
Hidden Safety DataHide Data StatusImpressions With Index
Is AAA EligibleIs ActiveIs Profile Page
Page IDPage NamePolitical Countries
Reach EstimateReport CountSnapshot (creatives, CTA, links, cards)
SpendStart DateState Media Run Label
Publisher PlatformMenu ItemsAdvertiser
InsightsAAA Info

Sample output

[
{
"ad_archive_id": "975498021164030",
"collation_count": 1,
"collation_id": "390607310753339",
"is_active": false,
"page_id": "104542139222761",
"page_name": "Book More Showings",
"snapshot": {
"page_id": "104542139222761",
"page_profile_uri": "https://www.facebook.com/bookmoreshowings/",
"page_name": "Book More Showings",
"caption": "WWW.BOOKMORESHOWINGS.COM",
"cta_text": "Learn more",
"cards": [
{
"body": "🚀 Ready to Transform Your Business?\nAgents are closing $100K+ GCI annually with BMS...",
"cta_text": "Learn More",
"link_url": "https://www.bookmoreshowings.com/learn",
"title": "🔥 Agents Closing $100K GCI Use BMS. Be Next!"
}
],
"display_format": "DCO"
},
"publisher_platform": [
"FACEBOOK",
"INSTAGRAM",
"AUDIENCE_NETWORK"
],
"start_date_formatted": "2025-02-03 08:00:00",
"end_date_formatted": "2025-07-15 07:00:00",
"ad_library_url": "https://www.facebook.com/ads/library/?id=975498021164030"
}
]

API access

Trigger runs programmatically and retrieve results via the Apify API. Works with any HTTP client, cURL, or SDK.

curl --request POST \
--url https://api.apify.com/v2/acts/spectre_scrape~facebook-ads-library-scraper/runs?token=YOUR_TOKEN \
--header 'Content-Type: application/json' \
--data '{
"searchQueries": ["marketing"],
"maxAds": 100,
"proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}'

Fetch results after the run completes:

curl --request GET \
--url https://api.apify.com/v2/acts/LcR8loRYD3Rx1bFET/runs/last/dataset/items?token=YOUR_TOKEN

Full API docs: Apify API reference

Integrations

Connect this scraper to your existing stack:

  • Make (Integromat) and Zapier: Use the Apify integration to trigger runs and process results automatically.
  • n8n: Use the HTTP Request node or the Apify node to build custom workflows.
  • Google Sheets: Export results directly from the Apify console.
  • Slack / Email: Set up Apify webhooks to get notified when a run finishes.

Pricing

This actor costs $1.00 per 1,000 results in Apify usage credits. Deep Scrape mode uses more credits due to additional API requests per ad. You can scrape up to 25,000 ads per month on the Apify Starter plan.

Meta's Ad Library is a public transparency tool. This scraper does not extract private user data. It only collects information that Meta has made publicly available. That said, your results may contain personal data (advertiser names, page info). Personal data is protected by GDPR in the EU and by similar regulations elsewhere. If you're unsure whether your use case is compliant, consult a lawyer.

Feedback

Found a bug or have a feature request? Open an issue on the actor's Issues tab in the Apify Console. We read every report.


Try it free on Apify. No credit card required for the first run.

👉 Launch Facebook Ad Library Scraper


Keywords: facebook ads scraper, meta ads scraper, facebook ads library scraper, scrape facebook ads, competitor ad analysis, facebook ad intelligence, instagram ads scraper, meta ads API, ad creative scraper, facebook page ads