Facebook Ads Scraper avatar

Facebook Ads Scraper

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Facebook Ads Scraper

Facebook Ads Scraper

Scrape the public Facebook Ad Library to find competitor ads by page ID or search term. Features: -Scrape ads by Facebook Page ID -Search ads by keyword -Filter by country and status -Extract ad creatives, text, and targeting info

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

14

Total users

1

Monthly active users

4 days ago

Last modified

Share

Facebook Ad Library Scraper - Competitor Ad Intelligence

Discover competitor Facebook ads by scraping Meta's Ad Library. Find active and inactive ads, see creatives, and analyze messaging. No per-campaign fees.


Quick Start

Test with Demo Mode (free, no API key needed)

{
"demoMode": true
}

Run with real data

{
"demoMode": false,
"countryCode": "US",
"maxItems": 50,
"adActiveStatus": "ALL",
"webhookPlatform": "custom"
}

Input Parameters

ParameterTypeDefaultRequiredDescription
pageIdsarray-NoList of Facebook Page IDs to scrape ads from
searchTermstring-NoSearch term to find ads (alternative to pageIds)
countryCodestring"US"NoCountry to filter ads (ISO 2-letter code)
maxItemsinteger50NoMaximum number of ads to scrape per page
adActiveStatusstring"ALL"NoFilter by ad status
demoModebooleantrueNoRun with sample data to test without real scraping. Returns realistic sample output instantly. Set to false and provide pageIds or searchTerm for real scraping.
webhookUrlstring-NoURL to POST results when scraping completes (Zapier, Make, n8n, custom endpoint)
webhookPlatformstring"custom"NoPlatform type for webhook formatting
webhookHeadersobject-NoCustom HTTP headers to send with webhook (JSON object)

Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
Ad ScrapedEach Facebook ad scraped from Ad Library$0.04

Demo mode is free -- no charges for sample data.


Troubleshooting

"API error 429" or "Rate limit"

Too many requests. Wait a minute and try again, or reduce the number of items per run.

No results or empty dataset

Check the run log for error messages. Common causes:

  • Invalid input format (check the examples above)
  • The target data doesn't exist or is too small to track

How do I test without an API key?

Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.


Built by John Rippy | Actor Arsenal