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

17

Total users

0

Monthly active users

8 days ago

Last modified

Features

Limited permissions

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

Run with real data

{
"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
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:

EventWhen it is chargedPrice
Actor startOnce when the run starts, one event per GB of memory (minimum one). At the default 2 GB of memory a run starts at $0.20$0.10 per GB
Ad ScrapedPer ad scraped$0.10
ResultEach item written to the default dataset$0.00001

If you set a maximum charge per run, the scrape stops at the last ad that fits within it. An ad is returned only after it is charged, so you never get more ads than you paid for and never pay for ads you did not get. The run's status message says when the limit stopped it.


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?

No API key is needed. The prefilled input reads 3 live ads from one public Facebook page (Nike, page ID 15087023444). Set demoMode to true, or run with no page IDs and no search term, and it returns labeled sample ad data showing the exact live output format. Every sample item carries demo: true and a _notice field, and sample runs charge no task events.


Built by John Rippy | Actor Arsenal