Ad Library API

  • Updated October 18, 2026

The Ad Library API is Meta's developer interface for running custom searches of the Meta Ad Library. It returns two kinds of ads: ads about social issues, elections or politics delivered anywhere outside the EU in the past seven years, and ads of any type delivered to the UK or EU in the past year. Ordinary commercial ads shown only elsewhere are not in it.

What does the Ad Library API cover?

Meta's API page says the API "helps you perform customized searches" for:

  • "Ads about social issues, election or politics that were delivered anywhere in the world during the past 7 years"
  • "Ads of any type that were delivered to the United Kingdom (UK) or European Union during the past year"

Meta's release notes carve the EU out of the first bucket: since October 6, 2025, a political and issue query with ad_reached_countries "for any countries in the European Union will no longer be available."

The same page then sends everyone else back to the website: "To search for all ads currently running across Meta technologies, please use the Ad Library."

What data does the API return per ad?

Less for commercial ads than people expect. Meta's page lists three tiers:

AdsWhat the API returns
All available adsLibrary ID, the ad creative, Page name and ID, delivery dates, and where the ad appeared
Ads about social issues, elections or politicsAlso "Total amount spent (range)", "Total impressions received (range)" and reach demographics
Ads delivered to the UK and EUAlso estimated UK and EU impressions, targeting and reach demographics, and "Advertiser and payer information (EU Only)"

The same page's field table limits the impressions field to political and issue ads, so the UK and EU impressions in that summary have no field to come back in. Spend and impressions come back as ranges, not values. For an ordinary commercial ad outside the UK and EU, the API returns no performance data at all.

How do I get access to the Ad Library API?

Access starts with identity confirmation. Meta's page lists the steps:

  1. "Go to Facebook.com/ID and follow the confirmation process required to run ads about social issues, elections or politics. It can take a few days to confirm the information you submit."
  2. Create a Meta for Developers account, agreeing to Meta's Platform Policy.
  3. Create an app, then query the ads_archive endpoint through the Graph API.

Which parameters trip people up?

  • ad_reached_countries is required. Its note on the page still reads: "Ads that did not reach any location in the EU will only return if they are about social issues, elections or politics." That leaves out the UK coverage the page's summary lists.
  • ad_active_status has two documented defaults. The parameter table says it "Defaults to ACTIVE". Meta's release notes say the default changed to ALL, as the API post found. Set it explicitly.
  • ad_type filters special categories, such as POLITICAL_AND_ISSUE_ADS, HOUSING_ADS and EMPLOYMENT_ADS. It does not widen what the API covers.

What it means for your ads

  • Political, issue, UK or EU ads: the API is the right tool. Seven years of political history outside the EU, with spend and impression ranges, plus reach demographics.
  • US-only commercial competitors: use the website. The API has nothing on ads of theirs that reached nobody in the UK or EU, and the Meta Ad Library website keeps those only while they run.
  • Budget for identity confirmation. Plan around "a few days" before your first query.
  • Don't expect a CPM. Spend and impression ranges can only bracket one loosely, and commercial ads return no spend at all.

Common mistakes

  • Building a competitor tracker on it. For most commercial advertisers the result set is empty by design.
  • Reading an empty result as a bug. A domestic, non-political advertiser returning nothing is the correct answer.

Sources


Meta revises these without notice, so confirm against the current docs before building on any of it.

Terrads makes new image and video ads in your brand, so research ends in creative you can run rather than a spreadsheet of other people's ads.