Meta Ad Library Scraper
Pricing
from $5.00 / 1,000 results
Go to Apify Store
Meta Ad Library Scraper
Scrape ads from Meta Ad Library by keyword search or from Facebook page URLs. Extracts ad creatives, CTAs, platforms, and targeting data.
Pricing
from $5.00 / 1,000 results
Rating
0.0
(0)
Developer
Admo Solutions
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
12 hours ago
Last modified
Categories
Share
Scrape ads from Meta's Ad Library using Playwright. Supports two modes:
- Keyword search — Search the Ad Library by keyword
- Facebook page scraping — Scrape all ads from specific Facebook pages
Extracts ad creatives, CTAs, platforms, and targeting data. No API key required.
Features
- Dual-mode — Ad Library search + Facebook page scraping
- Relay cache extraction — Parses embedded GraphQL data for complete field coverage
- Residential proxy support — Built-in proxy rotation
- Deduplication — Automatically deduplicates by ad archive ID
- Clean output — Structured JSON dataset
Input
| Field | Description | Default |
|---|---|---|
| URLs | Ad Library or Facebook page URLs | [] |
| Search Term | Keyword for Ad Library search (if URLs empty) | "" |
| Country Code | ISO 2-letter country code | "ALL" |
| Ad Type | Filter by ad category | "ALL" |
| Active Status | Active/Inactive/All | "ALL" |
| Max Items | Maximum ads per source | 100 |
| Max Scrolls | Scroll iterations | 20 |
| Scroll Delay | Delay between scrolls (ms) | 2000 |
Supported URL formats
https://www.facebook.com/ads/library/?active_status=all&ad_type=all&country=US&q=skincarehttps://www.facebook.com/ZapierApphttps://www.facebook.com/profile.php?id=123456facebook.com/YourPage
Output
Each ad contains:
| Field | Description |
|---|---|
| adArchiveId | Unique ad identifier |
| pageId | Facebook page ID |
| pageName | Advertiser page name |
| pageUrl | Page URL |
| body | Ad text content |
| title | Ad headline |
| linkUrl | CTA destination URL |
| ctaText | CTA button text |
| ctaType | CTA type (SHOP_NOW, LEARN_MORE, etc.) |
| startDate | When ad started running |
| isActive | Whether ad is active |
| platforms | Where ad runs (Facebook, Instagram, etc.) |
| mediaType | Ad format (image, video, carousel) |
| source | Which source this ad came from |
Usage
Search by keyword
{"searchTerm": "skincare","country": "US","maxItems": 100}
Scrape from Facebook pages
{"urls": ["https://www.facebook.com/ZapierApp","https://www.facebook.com/ceraveusa"],"maxItems": 50}
Mixed mode
{"urls": ["https://www.facebook.com/ads/library/?active_status=all&q=skincare&country=US","https://www.facebook.com/ZapierApp"],"maxItems": 100}
Cost
- 100 ads: ~$0.05-0.15 compute
- 1000 ads: ~$0.50-1.50 compute
- Residential proxy additional
Disclaimer
This scraper only extracts publicly available data from Meta Ad Library. Users are responsible for complying with applicable laws and regulations.