Facebook Ads Library Scraper: Meta Ad Library & Instagram Ads
Pricing
$0.50 / 1,000 ads
Facebook Ads Library Scraper: Meta Ad Library & Instagram Ads
Facebook and Instagram ads from the Meta Ad Library by keyword, page ID or Ad Library link. $0.50 per 1,000 ads; errors free. One row per ad: advertiser, ad text, headline, CTA, landing page, image and video URLs, carousel cards, start date, days running. Filters: country, status, media, dates.
Pricing
$0.50 / 1,000 ads
Rating
0.0
(0)
Developer
Data for Agents
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
What it returns
One row per ad from the Meta Ad Library (Facebook, Instagram, Messenger, Audience Network, Threads): advertiser and page, ad text, headline, call-to-action, landing page link, image and video URLs, carousel cards, start and end date, days running, platforms and format. Search by keyword, by advertiser page ID, or paste any Ad Library link. No login, no API token.
Price: $0.50 per 1,000 ads. No start fee. Error rows, ads your filters skip, ads found twice and ads in excludeAdIds are free: you pay only for ads delivered.
Measured on Apify (2,048 MB, 2026-11-20): 30 ads in 9 s, 50 ads in 23 s for the whole run, 757 to 828 ads from one search in 6 to 9 minutes.
Example input
{ "queries": ["running shoes"], "country": "US", "maxAds": 30 }
Example output
{"status": "ok","ad_archive_id": "2113133805898508","ad_library_url": "https://www.facebook.com/ads/library/?id=2113133805898508","page_name": "HIKE Footwear","page_id": "275270825974823","is_active": true,"start_date": "2026-06-18","days_running": 147,"platforms": ["facebook", "instagram", "audience_network", "messenger", "threads"],"display_format": "video","title": "Best Pain Relief Shoe 2025!","body": "After years of knee pain, I thought my running days were over. ...","cta_text": "Shop now","link_url": "https://offers.hike-footwear.com/l/li06","video_urls": ["https://video-...fbcdn.net/..."]}
Input
| Field | What it does |
|---|---|
queries | Keywords, as typed in the Ad Library search box. One search each. |
pageIds | Numeric page IDs (view_all_page_id in an Ad Library link): every ad of one advertiser. |
urls | Ad Library links copied from your browser; their filters are kept. |
country | Two-letter code (US, GB, DE...) or ALL. Default ALL. |
maxAds | Ads per search, 1 to 5,000. Default 50. |
activeStatus | active (default), inactive or all. |
mediaType | all, image, video, meme, image_and_meme, none. |
exactPhrase | Match the keywords as an exact phrase. |
startedAfter, startedBefore | Only ads that started in this date range (YYYY-MM-DD). |
minDaysRunning, maxDaysRunning | Only ads running at least / at most this many days, e.g. 30+ for proven ads or up to 7 for new ones. |
excludeAdIds | Ad Library IDs you already have: skipped, never charged. |
dedupe | ad (default): an ad found by several searches comes once, charged once. creative: also one row for the same advertiser, text and link under different ad IDs. none: every search returns all its ads. |
Date filters are passed to the Ad Library itself, so it leaves out ads that cannot match, and every ad is checked again exactly; ads outside the range are skipped and never charged.
Limits
-
Dynamic ads (
dco) show different text to different people; the row takes its text from the first card, andcardslists every variant. -
Image and video links are Facebook CDN links and expire after some days; download what you need to keep.
-
Spend, impressions and reach are shown by the Ad Library for political and issue ads only.
-
Very large searches stop where the Ad Library stops loading more; the run then adds a free
partial_resultrow. -
One search keeps every ad it showed in memory: at the default 2,048 MB one search stops cleanly at about 750 to 830 ads with a free
low_memoryrow. For more ads per search run with 4,096 MB or more, or split the search by date (startedAfter,startedBefore).
Errors
Every error is a row with status: "error", an error_code and a sentence saying what to do. Error rows are free.
| error_code | Meaning | Retry helps |
|---|---|---|
missing_input, invalid_input | The input or one entry cannot be used | No, fix the input |
no_data | The Ad Library has no ads for this search and filters | No, change filters |
blocked, access_restricted | Facebook showed a check or a login page | Later |
rate_limited | Facebook stopped sending more ads | Later |
timeout, network_error, proxy_error | The page did not load in time | Yes |
partial_result | Fewer ads than asked; the ones returned are complete | Sometimes |
site_changed | The page no longer has the known shape | No, the Actor needs an update |
cost_limit | Your maximum charge was reached | Raise the limit |
run_timeout | The run's time limit was reached before a search | Give more time |
internal_error | A bug on our side | Report it |
FAQ
Is it legal? It reads the public Meta Ad Library, which anyone can open without an account. You are responsible for following Meta's terms and the law where you use the data.
Personal data? Rows can contain advertiser names and ad text. If you store or use personal data you need a lawful basis, such as one under GDPR.