Scrape the Meta Ad Library for Facebook and Instagram ads by keyword, advertiser Page or Ad Library link. Get ad text, headline, link, images and videos, start date, platforms, political spend and impressions. Optional EU and UK reach with age and gender split. No login. From $0.70 per 1,000 ads.
New optional languages filter: only ads in those languages (two-letter codes such as en, es). A count-only check on "netflix" gave 26,494 English ads, 11,033 Spanish and 50,000+ unfiltered. Old "Only new ads" memories still match when it is left empty.
New optional maxConcurrency (1-16, default 4): how many searches run side by side.
Hidden maxItems / maxResults: one limit for the whole run across all searches; the status message says when it was reached.
New row field pageIsDeleted: whether the advertiser's Page has since been deleted.
README: question headings and a table of measured runs.
Not added: objective and "spark ad" filters (the Ad Library has no such filters), and resuming a stopped run from where it left off (Meta's page cursors don't outlive the run; "Only new ads" covers repeat runs).
0.1.x (2026-11-07)
Sort by: impressions (high to low) or newest launch month first. Unset keeps the Ad Library's default order.
Single ads: look up ads by Library ID or Ad Library share link (adIds), in every country and status. IDs that aren't found are free.
Count only (onlyTotal): one free row per search with the number of matching ads, and no ads.
New row fields: containsAiMedia (Meta's digitally created or altered label), isCatalogAd, and, with Audience data on, pageInstagramUsername and pageInstagramFollowers.
2026-11-05
Store copy rewritten.
0.1 (2026-11-01)
First release.
Search the Meta Ad Library by keyword, by advertiser (Page link, Page ID or name), or by pasting an Ad Library link.
Filters: country, ad category (all, political and issue, housing, employment, financial), status, media type, platforms, start date range, exact phrase.
Per ad: advertiser Page, status, start and end dates, days active, platforms, format, text, headline, button, link and domain, images, videos, carousel cards, number of versions, and spend, impressions and paid-for-by for political and issue ads.
Optional audience data: age, gender and region split for political and issue ads; EU and UK reach with its breakdown, targeting, payer and beneficiary.
Only new ads mode for scheduled runs. Not-found, empty, duplicate and already-seen ads are free.