Facebook Ad Library Scraper avatar

Facebook Ad Library Scraper

Pricing

from $0.40 / 1,000 results

Go to Apify Store
Facebook Ad Library Scraper

Facebook Ad Library Scraper

Scrapes ads from Facebook Ad Library. Select the brand and extract the historical ads.

Pricing

from $0.40 / 1,000 results

Rating

0.0

(0)

Developer

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Extracts ads from Facebook's public Ad Library by intercepting internal GraphQL calls. No API key or Facebook login required.

Uses Playwright + residential proxy to load the Ad Library page and capture GraphQL ad data. 4 GB memory recommended.

What it does

Navigates to facebook.com/ads/library with your search query, scrolls to load more results, and intercepts the internal GraphQL responses that contain ad data.

Two search modes

ModeFieldWhen to use
Domain searchdomainYou know the advertiser's website (e.g. leroy-merlin.es). More precise — uses exact-phrase matching.
Keyword searchkeywordYou only know the brand name. Broader results.

If both are set, domain takes priority.

Output fields

FieldDescription
ad_archive_idFacebook ad archive ID (deduplication key)
page_idAdvertiser page ID
page_nameAdvertiser page name
page_urlAdvertiser page URL
statusactive / inactive
bodyAd text content (max 600 chars)
link_urlDestination URL
link_titleLink card title
start_dateFirst shown date
end_dateLast shown date (null if still active)
platformsPlatforms (facebook, instagram, etc.)
media_typetext / image / video

Example input

{
"domain": "leroymerlin.es",
"country": "ES",
"maxResults": 100
}

Cost estimate

  • 50 ads (test): ~€0.10, ~1–2 minutes
  • 200 ads: ~€0.25, ~3–5 minutes
  • 500 ads: ~€0.50, ~8–12 minutes

Memory: 4096 MB (Playwright required; Facebook runs heavy JS).

Proxy

Residential proxies are required — Facebook blocks datacenter IPs systematically. The actor defaults to RESIDENTIAL proxy from Spain (matching the default country ES).

Notes

  • Facebook may show a cookie consent dialog; handled automatically
  • Results depend on scroll depth: more maxResults = more scrolling = more time
  • Deduplicates by ad_archive_id
  • The Ad Library shows all active and recently inactive ads (last 7 years for political ads, 90 days for others)

Accesses only publicly visible ad data — the same data available at facebook.com/ads/library without login. No personal user data is collected.