Apify Store
AS
Apify Store
/curious_coder/facebook-ads-library-scraper

Search Facebook Ads Library

Scrape ads from facebook ads library search results and facebook pages. Cost: $0.75 per 1K ads

liveverifiedasyncdegraded · 3.7s~30s typical
facebookadsmeta ads librarycompetitors
$0.0020
per result + $0.01 call
plus $0.001 platform fee per run
Usage-based actor: event charges passed through at cost plus 25%
Bring your own Apify Store key: provider portion drops to $0.
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run apify /curious_coder/facebook-ads-library-scraper for me.

Input

FieldTypeDescription
urls*arrayList of facebook ads search URLs or Page URLs to scrape ads from
scrapeAdDetailsbooleanEnable this option to scrape ads details such as EU Reach info
limitPerSourceintegerLimit number of ads scraped per input URL. Leave it blank to scrape all available ads ℹ️ Actual number might exceed the given limit by upto 30
countintegerLeave this field empty if you want to limit number of ads scraped
scrapePageAds.periodstring ( | last24h | last7d | last14d | last30d)Search ads in given date range default ""
scrapePageAds.activeStatusstring (all | active | inactive) default "all"
scrapePageAds.sortBystring (impressions_desc | most_recent)Sort by impressions or date. Default: Impressions default "impressions_desc"
scrapePageAds.countryCodestring2-letter ISO country code (ISO 3166-1 alpha-2). This should be the official uppercase country code, such as `IN` for India, `US` for United States, etc. Use `ALL` for targeting all countries default "ALL"
runTagstringAdd this value to 'runTag' column in the output
proxyobjectYou can use this option to customise the proxy country

Call it

curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
  -H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
  -d '{"provider":"apify","endpoint":"/curious_coder/facebook-ads-library-scraper","input":{"urls":[{"url":"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=peptides&search_type=keyword_unordered"}],"count":50},"wait":false}'
poll
curl "https://cracked-ai-pearl.vercel.app/v1/runs/<runId>?wait=30" -H "Authorization: Bearer ck_live_..."
cli
npx cracked-ai run -p apify -e /curious_coder/facebook-ads-library-scraper -i '{"urls":[{"url":"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=peptides&search_type=keyword_unordered"}],"count":50}' -w 120
mcp
run_tool({ provider: "apify", endpoint: "/curious_coder/facebook-ads-library-scraper", input: {"urls":[{"url":"https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&q=peptides&search_type=keyword_unordered"}],"count":50}, wait: false })

Try it

Runs against your signed-in workspace balance. Sign in if you have not.