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
2
Total users
1
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.
