Facebook Ads Library Scraper avatar

Facebook Ads Library Scraper

Pricing

$14.99/month + usage

Go to Apify Store
Facebook Ads Library Scraper

Facebook Ads Library Scraper

Scrapes ads from the Facebook Ads Library, capturing ad creatives, headlines, texts, spend ranges, impressions, advertiser details, launch dates, regions, and URLs. Ideal for competitor analysis, ad research, market insights, and automated creative tracking

Pricing

$14.99/month + usage

Rating

0.0

(0)

Developer

Scrapio

Scrapio

Maintained by Community

Actor stats

0

Bookmarked

14

Total users

0

Monthly active users

9 days ago

Last modified

Share

Facebook Ad Library Scraper (Apify Actor)

Scrapes Meta Ad Library using the same strategy as the standalone script: Playwright cookies → discover GraphQL doc_id from JS bundles → paginated search → optional per-ad details query. Dataset rows match the original output.json shape (snapshot, advertiser, transparency, etc.).

Input

FieldDescription
urlsRequired. Ads Library URLs (/ads/library/...) or Facebook page URLs. Bulk: list of strings or { "url": "..." }.
proxyConfigurationApify Proxy. Runs without proxy first; on block → datacenter → residential (3 tries), then stays on residential.
limitPerSourceGlobal max ads across all sources.
scrapeAdDetailsDefault true: merge AdLibraryV3AdDetails into each ad.
scrapePageAds.*Country / active status for page-type URLs.

Output

Default dataset: one object per ad — same fields as the reference scraper (ad_archive_id, snapshot, ad_library_url, ads_count, merged details when enabled).

Local run

cd Facebook-Ads-Library-Scraper
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -r requirements.txt
playwright install chromium
set APIFY_TOKEN=...
python -m src

Use Apify CLI: apify run with INPUT.json in the actor directory.

Public Ad Library data only. You are responsible for compliance with Meta’s terms and applicable laws.