Meta Ad Library API: search Facebook and Instagram ads
Every Meta Ad Library endpoint of the virev.ai API: search ads and advertisers, read one ad, and stored ad history and insights, priced per call.
10 Meta Ad Library endpoints
- GET /v1/meta_ads/company_ads Meta Ad Library ads API: every ad a Facebook Page runs, by page id Reads the ads one advertiser (a Facebook Page) runs or ran from the Meta Ad Library as
Page[Post], up to 30 a page: the copy iscaption, the start istaken_at, and the CTA, link, platforms and countries sit underextra. Send thepage_id, which the advertiser search API finds by name. $0.0025 per page - GET /v1/meta_ads/search_ads Meta Ad Library search API: find Facebook and Instagram ads by keyword Searches the copy of Meta Ad Library ads across every advertiser and returns
Page[Post], up to 30 ads a page: the copy iscaption, the start istaken_at, and the CTA, link, platforms and countries sit underextra. Send the keyword asquery, and narrow it withcountry,statusandmedia_type. $0.0025 per page - GET /v1/meta_ads/search_companies Meta Ad Library advertiser search API: find a page id by brand name Returns the Facebook Pages the Meta Ad Library suggests for a name as
Account[], each with its page id asidand its category, Page likes and URL underextra. Send the name asquery, then pass a page id to the Meta ads API for its ads. $0.0025 per call - GET /v1/meta_ads/ad Meta Ad Library ad API: copy, creatives and run dates by ad id Reads one ad from its advertiser's Meta Ad Library page and returns
Post: copy, creatives, run dates, CTA, platforms and countries. Send the Ad Library id asad_archive_id. An id the library does not answer is a404. $0.0025 per call - POST /v1/meta_ads/stored/search Meta Ad Library stored search API: filter tracked ads by CTA, domain Searches the Meta Ad Library ads we track, with filters on advertiser, page id, CTA type, link domain, platform, media type, running ads, days active and start date, all sent as a JSON body. Sort by start date, longevity (
daysActive) or A/B-test breadth (collation); the answer carriestotal, the exact match count, and anext_cursorfor the next page. $0.0010 per call - GET /v1/meta_ads/stored/advertiser Meta Ad Library stored advertiser API: ad counts and likes by page id Returns one tracked advertiser (a Meta Page): name, username, category, verification, Instagram account, Page likes and total and active ad counts. Send the
page_id. This is a stored read: an advertiser we do not track is a404. $0.0002 per call - GET /v1/meta_ads/stored/advertiser/ads Meta Ad Library stored ads API: an advertiser's ad history by page id Returns one tracked advertiser's stored ads as
Posts, running ads first and then the newest start, with the advertiser as anAccount. Send thepage_id;active_only=truelists only running ads, andnext_cursorgoes back ascursorwhilehas_moreis true. This is a stored read: an advertiser we never stored is a404, is not billed and never starts a crawl. $0.0005 per call - GET /v1/meta_ads/stored/insights Meta Ad Library insights API: an advertiser's ad strategy by page id Returns the ad strategy of one tracked advertiser: total and active ad counts, how long ads run, the split by format, CTA and platform, top link domains, a 6-month launch series and the 5 longest-running active ads. Send the
page_id. This is a stored read: an advertiser we do not track is a404. $0.0010 per call - GET /v1/meta_ads/stored/advertisers Meta Ad Library advertiser directory API: tracked advertisers by name Returns the advertisers we track whose Page name or handle starts with
query, sorted by active ads, total ads or Page likes: page id, name, category, ad counts, Page likes and Instagram account. Withoutqueryit lists every tracked advertiser, andtotalcounts every match. Use apageIdfrom the answer with the stored advertiser, ads, insights and search APIs. $0.0010 per call - POST /v1/meta_ads/stored/advertisers/lookup Meta Ad Library watchlist API: new ads of many advertisers by page id Returns many tracked Meta advertisers in one call, each with its latest ad start (
latestAdStartedAt), newest ingest time (ingestCursor) andnewAdCount, the ads ingested after that page'snewSincetime. SendpageIdsandnewSincein a JSON body, and store eachingestCursoras the nextnewSince. An id we do not track is left out and not billed. $0.0002 per result