Skip to content

Meta Ad Library API: What It Covers, How to Get Access, and What to Use for Commercial Ads

What Meta’s API returns, how to get it, and where it stops.

Neeraj Ramachandran, Co-founder & CTO

23 Nov 2026 · 7 min read

Ad libraries

Use the API for politics and the EU.

Use the library for everything else.

The post’s own line, set as a cover: Use the API for politics and the EU. Use the library for everything else.

The Meta Ad Library API lets a developer query Meta’s ad archive with code instead of the search page, and the first thing to know is its scope: it is built for ads about social issues, elections or politics and for ads delivered in the EU, not for every commercial ad. This guide uses Meta’s own documentation wherever it can, sets out the access steps and the limits worth planning for, and says what to use if you want to see commercial ads in markets such as India or the United States.

People also search for the same thing as the facebook ad library api, and the two names point at one interface. We opened Meta’s reference pages and research tools page on 23 November 2026 and quote only what they say. One Meta page, the one for requesting access, would not open for our reading tool, so we do not quote it and say so where it matters.

On this page

What the Meta Ad Library API covers

Meta’s Ad Library tools page (opens in a new tab) describes the API as covering ads about social issues, elections or politics, plus ads delivered in the EU and associated territories. It says ads shown in the EU are archived for one year after their last impression, and Meta’s help page on the Ad Library (opens in a new tab) says ads in the social issues, elections or politics category are stored for 7 years. The same help page says that for all other ads you can search only those that are currently active.

Use the API for politics and the EU.

Use the library for everything else.

The endpoint’s reference page (opens in a new tab) puts the limit in one sentence: ads that did not reach any location in the EU are returned only if they concern social issues, elections or politics. It lists five values for the ad type: ALL, EMPLOYMENT_ADS, FINANCIAL_PRODUCTS_AND_SERVICES_ADS, HOUSING_ADS and POLITICAL_AND_ISSUE_ADS. It also notes that only reading is supported on this endpoint, so there is nothing to create, update or delete.

What comes back depends on the kind of ad. Meta’s reference page for the Archived Ad (opens in a new tab) object gives each field its own availability, which is the part most guides skip. Spend and impressions are given only for political and issue ads, and only as ranges. Reach is an EU field. The table sets the main ones side by side.

Meta Ad Library API fields and where Meta says each one applies

FieldWhat it holdsWhere Meta says it applies
spendMoney spent on the ad, in rangesPolitical and issue ads only
impressionsTimes the ad was shown, in rangesPolitical and issue ads only
bylinesWho funded the ad, as the buyer provided itPolitical and issue ads only
eu_total_reachEstimated reach across the EUAds delivered to the EU only
beneficiary_payersReported beneficiaries and payersAds delivered to the EU only
target_ages, target_gender, target_locationsTargeting chosen for the adUK and EU ads, and political and issue ads delivered to Brazil
ad_creative_bodiesText shown in each ad cardNo restriction listed
Source: Meta’s Graph API reference page for the Archived Ad object (developers.facebook.com/docs/graph-api/reference/archived-ad), opened 23 Nov 2026; availability wording summarised by Muffin Media. No figures.

What it does not cover

Read the scope the other way round and the gap is plain. A hospital in Pune, a school in Jaipur or a US jewellery brand that runs ordinary commercial ads outside the EU is not in scope, unless the ad is about social issues, elections or politics. Muffin Intel has collected 89,049 Meta ads for Indian markets, and they are the ordinary commercial kind: hospitals, colleges, restaurants, property and similar businesses. The Ad Library website still shows currently active ads, which is why most competitor research starts there, but the API is not a back door to the same ads. It also gives no spend for commercial ads, because spend is a field for political and issue ads.

Demand tells you how many people hit this wall. About 320 people a month in the United States search for the Meta Ad Library API, and about 90 for the facebook ad library api. In India the numbers are about 210 and 50. Most of them probably want to see what competitors run, and for that purpose the API is the wrong tool.

  • 320US searches a month for 'meta ad library api'
  • 90US searches a month for 'facebook ad library api'
  • 210India searches a month for 'meta ad library api'
  • 50India searches a month for 'facebook ad library api'
Source: Muffin Media keyword research, 23 Nov 2026, Google monthly search volume for each phrase, United States and India.

How to get access to the Meta Ad Library API

Meta’s own page for requesting access is the authority on the current steps, and they change, so check it before you plan a project around the API. That page did not open for our reading tool, so the three stages below come from the sources we could open.

First, confirm who you are. The researchers behind Mozilla’s EU ad transparency report describe how they had to confirm their identity (opens in a new tab) through Facebook’s identity confirmation page. It says the process took about 11 days from submitting the request to receiving a confirmation code by mail, and that the confirmed account then received an application token. Your timeline may differ, so allow for a delay.

Second, get a token. Every call needs an access token. Meta’s authentication page (opens in a new tab) for its Marketing API explains the kinds: user tokens made in the Graph API Explorer, which are short-lived, and system user tokens, which it says do not expire. That page is about the Marketing API in general, so treat the permission names on it as examples and use the ones Meta lists for the Ad Library API. The reference page for the endpoint lists error code 190 for an invalid access token.

Third, call the endpoint and test small. Start with one country, one search term and one ad type, read what comes back and widen from there. Keep the limits below in mind from the first call.

Limits to plan around

The reference page lists limits that shape any build. A search term can be at most 100 characters, and keywords are not translated, so you must write them in the language of the ads. For India that means Hindi and Hinglish terms as well as English, a point our post on Hindi ads puts in numbers. You can pass up to 10 Page IDs in one call. Only active ads are returned by default, and rate limiting and parameter errors have their own codes.

Meta Ad Library API: the limits Meta’s reference page lists

ItemWhat the reference page says
Ad typeMarked required, default ALL; five values listed
Search termsAt most 100 characters; not translated, so write them in the ads’ language
Page IDsUp to 10 per call
Active statusDefaults to ACTIVE ads
LanguagesISO 639-1 codes, plus CMN and YUE
Errors613 rate limit exceeded; 100 invalid parameter; 190 invalid access token
MethodsReading only
Source: Meta’s Graph API reference page for the ads_archive endpoint (developers.facebook.com/docs/graph-api/reference/ads_archive), opened 23 Nov 2026; summarised by Muffin Media.

Experience matters too. The Mozilla methods page reports that the API returned 25 ads per page by default, that pagination sometimes failed, and that repeated searches could give different results. That was one team’s experience at one time and Meta may have changed things since, so test your own queries and do not assume a result set is complete.

What to use for commercial ads

For commercial ads you have four routes, and each answers a different question. The search page of the Ad Library is free and shows active ads from any Page. Our Meta Ad Library guide gives the steps for India and the US, and the ad library comparison sets Meta’s library beside Google’s, LinkedIn’s and TikTok’s. The Ad Library report gives aggregated data on social issue, election and political ads for a country and period, and nothing on individual commercial ads. The API suits a political or EU study. And a collection service reads commercial ads for you.

Four ways to look at Meta ads, and what each is for

RouteWhat it coversThe limit that matters
Ad Library search pageAds running across Meta technologies; for all ads, active ones; political ads kept 7 yearsNo spend for commercial ads
Ad Library APISocial issue, election and political ads, and ads delivered in the EUCommercial ads outside the EU are not returned; token and limits apply
Ad Library reportAggregated figures on political ads for a country and periodNothing on individual commercial ads
Muffin IntelCommercial ads on Meta, Google and LinkedIn for the markets we follow, read one by oneNo spend, clicks or leads, because the libraries do not publish them
Source: Meta’s research tools page and help page on the Ad Library (opened 23 Nov 2026), and Muffin Media’s own description of Muffin Intel. No figures.

How Muffin Intel collects ads

Muffin Intel collects what the platforms’ ad libraries show to anyone: the Meta Ad Library (opens in a new tab), the Google Ads Transparency Center and LinkedIn’s ad library. It starts from your website, proposes the competitors it finds, and you approve the list before anything is counted. Each competitor is tied to its own site and ad accounts, so one brand is one row and an agency’s ads for its other customers stay out of the count. One collection keeps up to 400 Google, 250 Meta and 150 LinkedIn ads per competitor, so a count at that ceiling is a minimum.

It then reads each ad for its hook, angle, offer, format and call to action, and counts what several competitors share. It cannot see spend, clicks, leads or bids on any platform, because the libraries do not publish them, and where it shows a spend range it labels it as an estimate with the assumption stated. How Muffin Intel works explains each step, and our guide to competitor ad spend shows what the library can and cannot tell you about money.

A practical route for a competitor study

If you need to know what three or four competitors run today, open the library and read their Pages. If you need a market’s ads counted, read and kept over time, that is the work of Muffin Intel, and the free Market Report applies it to your own competitors: get your free Market Report, free and in your inbox in 48 hours. Use the API when your question is about political or issue advertising, or about ads that reached the EU.

Frequently asked questions

Frequently asked questions

Is the Meta Ad Library API free?

The Meta pages we opened state no fee for the Ad Library API, but they are not a pricing page. Check Meta’s current terms before you build on it.

Can the Meta Ad Library API show competitor ad spend?

Only for political and issue ads. Meta’s reference page gives spend and impressions as ranges for those ads and lists no spend field for commercial ads.

Does the Meta Ad Library API return ads in India?

Only ads about social issues, elections or politics. Meta’s reference page says ads that reached no EU location are returned only if they concern those topics, so ordinary commercial ads from Indian businesses are not in scope.

What is the difference between the Ad Library API and the Ad Library report?

The API lets you query ads with code. The report is an aggregated view of social issue, election and political ads for a country and time period, available as a download.

Is the facebook ad library api a different tool?

No. People still search for it under that name, but Meta’s pages call it the Ad Library API and describe one interface.

How does Muffin Intel collect ads?

It collects what the platforms’ ad libraries show for the markets it follows, ties each competitor to its own site and ad accounts, and reads each ad one by one. It cannot see spend, clicks or leads.

Your competitors’ ads, read for you.

Reading one competitor by hand takes twenty minutes. Our team reads your market on Muffin Intel.

  1. 1Send your website.
  2. 2Approve your competitor list.
  3. 3We build the report.
  4. 4Our team walks you through it.

Example · hospital chain, names withheld

Example Market Report cover for a hospital chain market, stamped Confidential. It opens with its key points: 10 of 10 use video, 0 of 12 ideas do, 9 of 12 ideas show care of loved ones, and 9 competitor ads miss a disclaimer. A report is 10 chapters and 11 to 20 pages.