Facebook Ad Library Scraper
Pricing
from $0.40 / 1,000 results
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
Rastriq — Structured data from the world
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
11 days ago
Last modified
Categories
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
| Mode | Field | When to use |
|---|---|---|
| Domain search | domain | You know the advertiser's website (e.g. leroy-merlin.es). More precise — uses exact-phrase matching. |
| Keyword search | keyword | You only know the brand name. Broader results. |
If both are set, domain takes priority.
Output fields
| Field | Description |
|---|---|
ad_archive_id | Facebook ad archive ID (deduplication key) |
page_id | Advertiser page ID |
page_name | Advertiser page name |
page_url | Advertiser page URL |
status | active / inactive |
body | Ad text content (max 600 chars) |
link_url | Destination URL |
link_title | Link card title |
start_date | First shown date |
end_date | Last shown date (null if still active) |
platforms | Platforms (facebook, instagram, etc.) |
media_type | text / 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)
Legal
Accesses only publicly visible ad data — the same data available at facebook.com/ads/library without login. No personal user data is collected.
🔗 Related Rastriq Actors
Ad library scrapers
All four share a normalized output schema — same field names, same formats. Merge datasets from different platforms without a mapping layer.
| Actor | What it adds |
|---|---|
| TikTok Ad Library Scraper | Ad creatives, targeting and spend data from TikTok's EU transparency archive |
| Google Ads Transparency Scraper | Search, Display and YouTube ads from Google's Ads Transparency Center |
| LinkedIn Ad Library Scraper | B2B ad intelligence — impressions by country, paying entity and targeting segments |
TikTok Creative Center
| Actor | What it adds |
|---|---|
| TikTok Top Ads Scraper | Top-performing ad creatives — CTR, likes, video URLs, landing pages across 49 countries and 21 industries |
| TikTok Trending Videos Scraper | Trending videos with creator profiles, engagement rates and 6-second view-through rates |
| TikTok Trends Scraper | Trending hashtags with view counts, post volumes and industry tags across 27 countries |
Competitive intelligence
| Actor | What it adds |
|---|---|
| SimilarWeb Data Extractor | Traffic estimates and top pages for the landing pages these ads point to |