- Is there an official API?
- Yes. The Ad Library API is part of Meta's Graph API, at the ads_archive endpoint. It searches by keyword or by Facebook Page ID, up to ten Page IDs in one request, and needs an access token. Meta has described the steps to get access as confirming your identity, creating a Meta developer account and accepting its platform terms.
- Which ads the API returns
- Not all of them. Meta's reference says: ads that did not reach any location in the EU are returned only if they are about social issues, elections or politics. So an ordinary commercial ad that ran only in the United States does not come back. The reference lists reach and targeting fields for ads delivered to the UK and EU, but it does not say that ads which reached only the UK are returned.
- What you get for an ordinary ad
- The library ID, the Page that ran it, when it was created, when delivery started and stopped, the ad text, link titles, captions and descriptions, a link to a snapshot of the ad, the Meta platforms it appeared on and its languages. For ads delivered to the EU there is also an estimated total reach in the EU, the age, gender and location targeting, and who paid and who benefits.
- What it does not tell you
- Spend and impressions. Meta publishes both, as ranges, only for ads about social issues, elections or politics. For an ordinary competitor ad there is no spend figure in the library or the API. Neither one tells you what changed since you last looked. The reference lists a rate-limit error but gives no request allowance on that page.
- The library website, and alerts
- Meta says people can search all active ads running across its products. Ads about social issues, elections or politics are kept for seven years, and ads delivered to the EU are archived for one year after their last impression. Meta has said past searches are saved for people logged in to Facebook. As of 3 December 2026 we found no feature in Meta's own pages that notifies you when an advertiser starts a new ad.
- Automated access
- Meta's Terms of Service say: you may not access or collect data from our Products using automated means (without our prior permission). The official API is the route Meta provides. In January 2024 a US federal court ruled in Meta v. Bright Data that those terms did not reach the logged-off collection of public data at issue in that case.
- Google and LinkedIn
- Google's Ads Transparency Center lets you look up an advertiser's ads; as of 3 December 2026 we found no official API for it in Google's documentation. LinkedIn's Ad Library is a public database of ads that ran after 1 June 2023, kept for one year after their last impression, with impressions, targeting and run dates shown only for ads targeted to the EU.