Facebook Ads Library Scraper: Meta Ad Library & Instagram Ads avatar

Facebook Ads Library Scraper: Meta Ad Library & Instagram Ads

Pricing

$0.50 / 1,000 ads

Go to Apify Store
Facebook Ads Library Scraper: Meta Ad Library & Instagram 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

Data for Agents

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

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

FieldWhat it does
queriesKeywords, as typed in the Ad Library search box. One search each.
pageIdsNumeric page IDs (view_all_page_id in an Ad Library link): every ad of one advertiser.
urlsAd Library links copied from your browser; their filters are kept.
countryTwo-letter code (US, GB, DE...) or ALL. Default ALL.
maxAdsAds per search, 1 to 5,000. Default 50.
activeStatusactive (default), inactive or all.
mediaTypeall, image, video, meme, image_and_meme, none.
exactPhraseMatch the keywords as an exact phrase.
startedAfter, startedBeforeOnly ads that started in this date range (YYYY-MM-DD).
minDaysRunning, maxDaysRunningOnly ads running at least / at most this many days, e.g. 30+ for proven ads or up to 7 for new ones.
excludeAdIdsAd Library IDs you already have: skipped, never charged.
dedupead (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, and cards lists 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_result row.

  • 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_memory row. 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_codeMeaningRetry helps
missing_input, invalid_inputThe input or one entry cannot be usedNo, fix the input
no_dataThe Ad Library has no ads for this search and filtersNo, change filters
blocked, access_restrictedFacebook showed a check or a login pageLater
rate_limitedFacebook stopped sending more adsLater
timeout, network_error, proxy_errorThe page did not load in timeYes
partial_resultFewer ads than asked; the ones returned are completeSometimes
site_changedThe page no longer has the known shapeNo, the Actor needs an update
cost_limitYour maximum charge was reachedRaise the limit
run_timeoutThe run's time limit was reached before a searchGive more time
internal_errorA bug on our sideReport 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.