Guide

Facebook Ad Library API Limitations: What the Official API Leaves Out

Meta offers an official Ad Library API, and for some jobs it is the right tool. For many others it quietly returns nothing. Before you spend a week on identity checks and app settings, here is what the official API actually gives you, where its limits are, and what reading the public Ad Library adds.

Published 6 min read

How you get access

The official API is the ads_archive edge of the Graph API. To call it you need three things: a Facebook account that has completed Meta's identity confirmation (an ID document checked through facebook.com/ID, which can take from minutes to several days), a Meta developer account with an app, and an access token generated for that app. The token is tied to a person, not to a company, so agencies and teams usually end up depending on one employee's verified account.

None of this is hard, but it is slow and personal. If you are evaluating whether the data answers your question at all, you are asked to verify your identity before you can find out.

What it covers, and what it does not

This is the limitation that matters most. The official API returns two families of ads:

  • Ads about social issues, elections or politics, in the countries where Meta applies those rules, kept for seven years, with spend and impressions ranges, the "Paid for by" disclaimer and demographic distribution.
  • Every ad delivered in the European Union, commercial ones included, added for the Digital Services Act. These are available for about a year after their last impression, with EU reach, targeting (ages, gender, locations), a reach breakdown by country, age and gender, and the payer and beneficiary.

What is missing is everything else: ordinary commercial ads shown only outside the EU. A US e-commerce brand, an app running install campaigns in India, a course creator in Australia: you can see their ads on the public Ad Library website, logged out, but the API answers with an empty list. For competitive research outside Europe this single gap usually decides the question.

Search is narrower than the website

The query parameters are close to the website filters but not identical. ad_reached_countries is required and expects a list of countries; search_terms matches keywords; search_page_ids takes up to a handful of page ids; ad_type chooses between all ads and political or issue ads; ad_active_status and the ad_delivery_date_min/max pair filter by status and dates. The fields you want back must be listed explicitly in fields, and some only exist for certain ad types (spend and impressions only for political ads, EU reach only for ads delivered in the EU).

No image or video files

The API returns the creative texts (bodies, link titles, captions, descriptions) and an ad_snapshot_url: a link to a rendered page of the ad that needs your access token to open. There is no field with the image or video file itself. If you need the creative, for a swipe file, a classifier or a client deck, you have to load each snapshot page and extract the media from it, which is scraping again, one ad at a time. Our creatives guide shows what a direct media URL saves you.

Rate limits you cannot plan around

Meta does not publish a fixed quota for the Ad Library API. In practice heavy use runs into Graph API throttling (error code 613, "Calls to this API have exceeded the rate limit"), and the threshold depends on the app and the token rather than on a number you can read in advance. Large backfills therefore need back-off logic and patience, and it is hard to promise a client that a weekly export will finish on time.

Terms of use

Data obtained through the API comes under Meta's Platform Terms and the Ad Library API terms, which restrict how the data can be used and shared. If you plan to build a commercial product on it, have someone read those terms for your use case first. The legal guide covers the wider picture, including scraping of the public website.

Summary of the limits

TopicOfficial ads_archive APIPublic Ad Library website
AccessIdentity confirmation, developer app, tokenAnyone, logged out
Commercial ads outside the EUNot returnedShown while active
Ads delivered in the EUYes, about a year after the last impressionYes
Political and issue adsYes, seven yearsYes, seven years
Images and videosSnapshot link onlyShown in the page
EU reach and breakdownsYesYes, in the ad detail
Rate limitNot published (error 613)Anti-bot measures

What reading the public library adds

Because the public website shows more than the API returns, reading it is how commercial ad research outside Europe gets done. Doing that yourself means solving an anti-bot challenge, following GraphQL queries that change, and using residential IPs to paginate: the scraping guide explains each step. An Ad Library API does it for you and answers JSON.

With ScrapeAdLibrary you sign up with an e-mail address, no identity document, and get an API key with 65 free calls a month. The same request works for any country, commercial or political, and every ad comes with its creatives as direct media URLs:

# Active commercial ads in the United States: the official API returns none of these
curl -s "https://api.scrapeadlibrary.com/v1/ads/search?q=meal%20kit&country=US&status=active&limit=30" \
  -H "X-API-Key: $SCRAPEADLIBRARY_API_KEY"

For the EU data the official API is known for, GET /v1/ads/{ad_id} returns the ad detail with transparency.eu (reach, ages, gender, locations, breakdown by country, age and gender), transparency.uk where Meta publishes it, and payers. The EU transparency guide explains every field.

The trade-offs of scraping

Reading the public library is not free of limits either, and it is fair to name them:

  1. Active ads first. Commercial ads outside the EU stay on the public website while they run and for a limited time after; there is no seven-year archive for them. Collect regularly if you need history, as the competitor tracking guide does.
  2. No spend for commercial ads. Neither the API nor the website publishes spend for commercial ads. Only political ads carry spend ranges; for everything else you have proxies such as longevity, variants and EU reach (what you can know about competitor spend).
  3. Media links expire. Meta's CDN URLs expire after a few days. Download what you want to keep.
  4. Upstream changes. When Meta changes the page, a scraper has to follow. With an API that is the provider's problem; errors such as 502 upstream_schema_changed are explicit and never billed (error reference).

Which one to use

Use the official API if your subject is political or issue advertising, or ads delivered in the EU, and you are comfortable with the identity check and the terms. Use the public library, through your own scraper or an Ad Library API, when you need commercial ads in any country, creatives as files, or a setup a whole team can share. The alternatives comparison puts all the options side by side.

Frequently asked questions

Does the Meta Ad Library API return commercial ads?
Only commercial ads delivered in the European Union. Commercial ads shown only in other countries are visible on the public Ad Library website but are not returned by the official API.
What is the rate limit of the Ad Library API?
Meta does not publish a fixed number. Heavy use runs into Graph API throttling (error 613), with thresholds that depend on the app and the token, so large jobs need back-off and retries.
Can I download ad images with the official API?
Not directly. It returns an ad_snapshot_url that opens a rendered page of the ad with your access token; the image or video file has to be extracted from that page.
How long are ads kept?
Political and issue ads for seven years. Ads delivered in the EU for about a year after their last impression. Other commercial ads are on the public website while they are active and for a limited time after.

Related guides

← All guides

Try it on your own competitors

Create a free account and get 65 free calls every month, no credit card. One API key works on every endpoint.