Facebook Ad Library API
Get public Facebook Ad Library data as typed JSON: ad details, search, company ads and search for companies. One API key, and a published credit cost for every endpoint.
Facebook Ad Library endpoints
All endpoints authenticate via x-api-key
Ad Details
/v1/facebook/adLibrary/ad
Get one Facebook Ad Library ad by its Library ID or ads/library/?id= URL, active or inactive. Returns adArchiveID, pageName, isActive, startDate, endDate, publisherPlatform and the snapshot (body, cards, images, videos, display_format, link_url, cta_text), with the advertiser's pageInfo and, for ads shown in the EU, aaa_info audience data. An ad no longer in the library is a 404. Ids are strings.
Search
/v1/facebook/adLibrary/search/ads
Search the Meta Ad Library by keyword, with the Ad Library's own filters: country, language, status, media type, ad type, exact phrase, sort, and an impressions date range. Returns searchResults (one card per creative group, as the Ad Library shows them: ad_archive_id, page_name, is_active, publisher_platform, collation_count, start/end dates and a snapshot with body text, images, videos, cards and cta_text), searchResultsCount and a cursor. Page 1 holds up to 30 results; later pages about 10. To page, send the same filters with cursor. A cursor from page 2 on is tied to a short-lived upstream session: if it has expired, the response says so and you start again without a cursor. Use GET normally; for long cursors, use POST with the same parameters in the JSON body. Ids are strings.
Company Ads
/v1/facebook/adLibrary/company/ads
Provide one of: pageId, companyName. A company's ads from its Ad Library page, with the same filters as ad search. Returns results and a cursor. An empty page costs 0 credits, and an unknown companyName is a 404 at 0 credits.
Search for Companies
/v1/facebook/adLibrary/search/companies
Search Ad Library pages by name and get each page id for /v1/facebook/adLibrary/company/ads, with likes and Instagram details. An empty result costs 0 credits.
Facebook Ad Library guides
How to search the Facebook Ad Library with an API
Get any brand's Facebook and Instagram ads from the Meta Ad Library as JSON: by page, with filters, or by keyword across all advertisers. 1 credit a page.
How to scrape the Meta Ad Library: search ads and pull creatives
Search every advertiser's Facebook and Instagram ads by keyword, then pull any ad's creative, copy, dates and video URLs by Library ID. 1 credit per call.
Facebook Ad Library API FAQ
How much does the Facebook Ad Library API cost?
Every Facebook Ad Library endpoint costs 1 credit per call by default. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
Do I need a Facebook Ad Library account or developer app?
No. You call Fetchproof with one API key in the x-api-key header. It returns public Facebook Ad Library data only, so there's no Facebook Ad Library login, OAuth or app review.
What happens when a call fails or finds nothing?
Errors cost 0 credits, and so do cache hits on endpoints that take cache_max_age. An empty result costs 0 on Company Ads and Search for Companies. Each endpoint page lists its own rules.
Which Facebook Ad Library data can I get?
4 endpoints: Ad Details, Search, Company Ads and Search for Companies.
Is there a free trial?
Yes. Sign up with an email address to get 100 free credits, with no card. Credits never expire.
Ready to try it? Get 100 free credits or compare credit packs.