Pricing
$15.99/month + usage
Facebook Ads Library Scraper
The Facebook Ads Library Scraper extracts ad data from Facebookβs Ad Library, including advertiser details, ad text, impressions, and targeting info. Ideal for ad research, marketing insights, and competitor analysis, it delivers clean, structured data for analysis or integration via API.
Pricing
$15.99/month + usage
Rating
4.2
(6)
Developer
Actor stats
5
Bookmarked
400
Total users
2
Monthly active users
3 days ago
Last modified
Categories
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
| Field | Description |
|---|---|
| urls | Required. Ads Library URLs (/ads/library/...) or Facebook page URLs. Bulk: list of strings or { "url": "..." }. |
| proxyConfiguration | Apify Proxy. Runs without proxy first; on block β datacenter β residential (3 tries), then stays on residential. |
| limitPerSource | Global max ads across all sources. |
| scrapeAdDetails | Default 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-Scraperpython -m venv .venv.venv\Scripts\activate # Windowspip install-r requirements.txtplaywright install chromiumsetAPIFY_TOKEN=...python -m src
Use Apify CLI: apify run with INPUT.json in the actor directory.
Legal
Public Ad Library data only. You are responsible for compliance with Metaβs terms and applicable laws.
