Facebook Ad Library Scraper
Pricing
$3.00 / 1,000 ad scrapeds
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.
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
| Field | Description |
|---|---|
searchTerms | Advertiser names / keywords, e.g. ["Nike","black friday"] |
pageIds | Numeric Facebook Page IDs to pull one advertiser's ads, e.g. ["15087023444"] |
country | ISO country code (US, BR, GB, DE, …) or ALL. Default US |
adType | all (default) or political (political & issue ads, with spend/impression ranges) |
activeStatus | active (default), inactive, or all |
maxItems | Max ads to collect in total across all targets (default 30) |
proxyConfiguration | Residential proxy (default & recommended) |
timeoutSecs | Per-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: 0honestly.