Facebook Ad Library Scraper avatar

Facebook Ad Library Scraper

Pricing

$3.00 / 1,000 ad scrapeds

Go to Apify Store
Facebook Ad Library Scraper

Facebook Ad Library Scraper

Scrape the public Facebook Ad Library by keyword or page: advertiser, ad copy, media, CTA, start date and platforms. No login required.

Pricing

$3.00 / 1,000 ad scrapeds

Rating

0.0

(0)

Developer

Bruno

Bruno

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Facebook Ad Library Scraper (no login)

Scrape the public Facebook Ad Library with a real headless browser (Playwright) behind an Apify residential proxy — no login, no account, no cookies, no email or password. The Ad Library is Meta's public ad-transparency tool, so its results are served to logged-out visitors.

What it does

Search the library by advertiser name / keyword or by Facebook Page ID, choose a country and ad type, and get back the ads currently in the library. Instead of fragile DOM scraping, the actor intercepts the Ad Library's own public GraphQL search_ads responses (the exact data the public site renders) and scrolls to paginate until it has enough ads.

Input

FieldDescription
searchTermsAdvertiser names / keywords, e.g. ["Nike","black friday"]
pageIdsNumeric Facebook Page IDs to pull one advertiser's ads, e.g. ["15087023444"]
countryISO country code (US, BR, GB, DE, …) or ALL. Default US
adTypeall (default) or political (political & issue ads, with spend/impression ranges)
activeStatusactive (default), inactive, or all
maxItemsMax ads to collect in total across all targets (default 30)
proxyConfigurationResidential proxy (default & recommended)
timeoutSecsPer-navigation timeout, 20–180 (default 60)

At least one of searchTerms or pageIds is required.

Output (per ad)

ad_archive_id, ad_library_url, is_active, advertiser (page id / name / url / profile picture), ad_copy (body / title / caption / link description), cta (text / type / destination_url), media (image URLs, video URLs + preview, carousel cards, display format), start_date, end_date, publisher_platforms (Facebook / Instagram / Messenger / Audience Network), and political transparency fields (currency / spend / impressions / byline) for political & issue ads.

Notes

  • No login, ever. The Ad Library is public; the actor never authenticates.
  • A residential proxy is strongly recommended — datacenter IPs get blocked or return empty.
  • It never fabricates ads: if a query returns none, it reports adsFound: 0 honestly.