Meta Ad Library API: what it returns, what it does not, and a no-code route

Meta's Ad Library API returns ads about social issues, elections or politics from the past 7 years, plus ads of any type that were delivered to the UK or EU in the past year1. Ordinary commercial ads delivered only outside the UK and EU are not returned, and spend and impression ranges exist only for the political and issue ads123. To read a competitor's current commercial ads without writing code, use the Ad Library website or an MCP connector such as Hopkin (ours), which searches its own copy of the library6.

We build Hopkin, so it is listed here and marked as ours. An AI model drafted this page on 2026-11-23. We read Meta's Ad Library API page in a browser and Meta's API reference pages on that date, and we did not call Meta's API ourselves, so every statement about the API comes from Meta's documentation. We ran Hopkin's Meta Ad Library search on public ads the same day and show the result below. Meta changes its documentation, and the reference pages we read are labelled version 27.0. Corrections: hello@hopkin.ai.

Hopkin is a read-only connector that lets Claude, ChatGPT and other AI agents analyze your ad accounts and competitor ads, from $100/mo, 30-day free trial.

What does it take to get access to the Meta Ad Library API?

You need a Facebook account, a confirmed identity, a Meta for Developers account, an app and an access token. Meta's API page lists the first three steps and its FAQ adds the token1:

  1. Confirm your identity and location at Facebook.com/ID. Meta describes this as the confirmation process required to run ads about social issues, elections or politics, and says it can take a few days.
  2. Create a Meta for Developers account and agree to the Platform Policy.
  3. Come back to Meta's API page, select Access the API, and create an app under My Apps, then Create App.
  4. Get an access token. Meta says user access tokens require you to be logged in and to request permission for your app1. Queries go to the ads_archive edge of the Graph API, and ad_reached_countries is a required parameter2.

Meta says the API is available in any country where the Ad Library has launched, which it puts at over 100 countries. It also says that "it helps to be a little familiar with programming" and points people who want something simpler to its Ad Library Report1.

What does the Meta Ad Library API return?

It returns ads in two groups. The table shows what Meta's API page lists for each group (read 2026-11-23).

Coverage of the Meta Ad Library API, from Meta's API page and reference, read 2026-11-23
Type of ad Which ads the API covers Extra data Meta lists for them
Ads about social issues, elections or politics Delivered anywhere in the world in the past 7 years Total spend (a range), total impressions (a range), reach demographics by age, gender and location
Ads of any type delivered to the UK or EU Delivered in the past year Estimated impressions in the UK and EU, estimated targeting and reach demographics for the UK and EU, advertiser and payer information (EU only)
Any other ad, such as an ordinary US ad from a shoe brand or a software company Not returned None

The third row follows from a note on the ad_reached_countries parameter: "Ads that did not reach any location in the EU will only return if they are about social issues, elections or politics"2. Meta's overview page says "United Kingdom (UK) or European Union" and that note says only "EU", so we cannot tell you from the documentation whether an ordinary UK-only ad comes back, and we did not test it.

Every returned ad has the same core: its Library ID, the creative text, the Page name and Page ID, delivery dates, and where it appeared (Facebook, Instagram and so on)1. Meta marks four fields as default: ad_delivery_start_time, ad_delivery_stop_time, ad_snapshot_url and page_id. You ask for the others by name.

Selected fields of the Ad Library API, from Meta's archived ad reference (v27.0), read 2026-11-23
Field What Meta says it contains Which ads have it
id The Library ID of the ad All returned ads
page_id, page_name The Facebook Page that ran the ad All
ad_creative_bodies, ad_creative_link_titles, ad_creative_link_descriptions, ad_creative_link_captions The text of each ad card or version All
ad_delivery_start_time, ad_delivery_stop_time When an advertiser wants delivery to start and stop; a blank stop time means the ad runs until the advertiser stops it or spends the budget All
ad_creation_time When someone created the ad, which Meta says is not when it ran All
ad_snapshot_url A link that displays the archived ad, with uncompressed images and videos All
publisher_platforms, languages The Meta technologies the ad appeared on and the languages in it All
spend, impressions Ranges such as "<100" or "10K- 50K" for spend and "<1000" to ">1M" for impressions Social issue, election and political ads only
bylines, currency, demographic_distribution, delivery_by_region, estimated_audience_size Who paid, the currency, and reach by age, gender and region Social issue, election and political ads only
eu_total_reach, beneficiary_payers Estimated reach across the EU, and reported beneficiaries and payers Ads delivered to the EU
target_ages, target_gender, target_locations, age_country_gender_reach_breakdown Targeting selected in the UK and EU, and reach by age, country and gender Ads delivered to the UK and EU, and political ads delivered to Brazil

Since August 2020, Meta generates an ad's start date when the ad first delivers an impression. Before that it used the date the advertiser gave1. Because ad_creation_time is not when the ad ran, use the delivery start time to estimate run length.

What does the Meta Ad Library API not return?

For an ordinary commercial ad, the API has no spend and no impressions. Meta lists spend and impressions as available only for ads about social issues, elections or politics3. The list below covers the other gaps we found in Meta's pages.

  • Clicks, conversions and return on spend. The field list we read has none of them3.
  • Media files in bulk. Meta's reference says that while you cannot currently download a batch of archived ads, you can download creative such as images and text for an individual ad, "for analysis", and you must follow the data storage terms in Meta's Terms of Service3.
  • Translated searches. Meta does not translate keyword searches, so you search in the language of the ads2.
  • Search operators. A blank space is a logical AND, the search string is limited to 100 characters, and exact phrases are a separate search_type2.
  • Advertiser lookup by name. search_page_ids takes up to ten Facebook Page IDs, so you need the Page ID first2.

On limits, Meta's FAQ says a page of results can return a maximum of 5,000 ads and that you follow the link at the end of the data for the next page1. Meta's reference lists error 613, "Calls to this api have exceeded the rate limit"2. We found no calls-per-hour number on the pages we read, so this guide gives none.

Our reading of Meta's field list, applied to common questions:

Which questions the API can answer, our reading of Meta's pages read 2026-11-23
Question Can the API answer it?
What ordinary ads is a US competitor running right now? No, unless the ad also reached the EU or, per Meta's overview, the UK12
What is a brand running in the EU, and roughly how many people did it reach? Yes, as estimates13
How much did an advertiser spend on a political or issue ad? Yes, as a range3
How long has an ad been running? Start time, yes1
Which ad drove the most conversions? No, the field list has no conversion data3

Should you use the API, a scraper or a no-code route?

The API fits political and issue ads anywhere, and ads delivered to the EU or UK. For a US competitor's ordinary ads, the website or a connector that reads the library fits better.

Routes to competitor ads on Meta, compared as of 2026-11-23
Route Code needed Ordinary US commercial ads Spend and impressions Check first
Meta Ad Library API Yes Not returned2 Ranges for political and issue ads; estimates for UK and EU ads1 Identity confirmation, developer account, app, token
Ad Library website No Ads currently running1 None for ordinary commercial ads Manual, one advertiser at a time
A scraper you write and run Yes Whatever the public site shows (our analysis) Nothing the site does not show Meta's Automated Data Collection Terms4
MCP connector, such as Hopkin (ours) or others compared here No Yes, from the connector's copy of the library6 No The vendor's credits, coverage and terms

On scrapers, Meta's Automated Data Collection Terms, effective October 7, 2024, say: "You will not engage in Automated Data Collection without first obtaining Meta's express written permission or in any manner that is not explicitly authorized by Meta."4 We read that page and are not lawyers, so this is not legal advice. Read the terms and ask counsel before you point a scraper at the library.

How do you get competitor ads without writing code?

There are three ways, from least to most automated.

  1. The Ad Library website. Meta's API page says "To search for all ads currently running across Meta technologies, please use the Ad Library"1. Our step-by-step guide to the website covers the filters and what each card shows.
  2. Meta's Ads MCP server. Its tools page, read 2026-11-23, lists a tool named ads_library_search with the description "Search the public Meta Ad Library for competitive research and creative inspiration."5 We have not run it, and that page does not say which countries or ad types it returns. Our comparison of ad library MCP servers has the details we could confirm.
  3. A hosted connector that reads the library for you, so Claude or ChatGPT can analyze the ads. Our guide to analyzing competitor ads with Claude or ChatGPT shows that workflow. Hopkin (ours) is one such connector, and the next section shows what it returned.

What did Hopkin's Meta Ad Library search return?

We ran Hopkin's meta_ads_search_ad_library tool on 2026-11-23 against public ads, with the search phrase "Notion AI" (exact phrase), country US, active ads, and a limit of 5. The tool returned five ads, with more available on a next page. All five ads shared one primary text and one headline: "What if your workspace could answer any question about your projects, draft your documents, and summarize long meeting notes in seconds? Notion AI is built directly into your docs..." and "Meet Your AI-Powered Workspace". They started between 2026-11-07 and 2026-11-12.

Fields in Hopkin's response for each ad, from our run on 2026-11-23
Field in Hopkin's output Value in our run
library_ad_id, permalink The Library ID and a link to the ad in Meta's Ad Library
primary_text, headline, description, caption The ad copy
cta_text, cta_type, landing_url "Learn more", LEARN_MORE, and a destination URL (http://notion.com/enterprise on two ads, http://fb.me/ on three)
display_format, publisher_platforms video; Facebook, Instagram and Audience Network on all five, plus WhatsApp and Threads on two
started_running_at, stopped_running_at, is_active Start dates 2026-11-07 to 2026-11-12, no stop date, active
first_seen_at, last_seen_at The times Hopkin saw the ad: first seen 2026-11-16, last seen 2026-11-22
media A mirrored thumbnail and a mirrored video file, with dimensions and duration (720 by 900 pixels, about 22 seconds)

What the output left out, and what to watch for:

  • No spend, impressions, reach or targeting fields appeared on any ad. These are ordinary commercial ads, and Meta lists spend and impression figures only for political and issue ads, plus estimated impressions for UK and EU delivery1.
  • The ads' first-seen dates were 4 to 9 days after their start dates, so Hopkin's copy can trail the library by several days.
  • countries came back empty, and a warning said the country filter was not applied to results from the corpus. In the API, ad_reached_countries is required and applied2.
  • A search can come back empty while a collection runs. Our first search in the session, for a different product name, returned no ads and a note that a live collection was gathering the rest, and later calls returned a no-match note.
  • The API does more here. It gives spend and impression ranges and demographics for political and issue ads, and estimates for UK and EU ads1. None of those fields appeared in Hopkin's output in our run.

How Hopkin prices and limits this, from its docs and pricing page, read 2026-11-23: an ad library search costs 5 credits7. Starter is $100 a month with 1,500 credits and Pro is $250 with 8,000. The trial is 30 days, with no card and 1,000 credits, which at 5 credits a search covers up to 200 searches if you spend nothing else7. A tracked competitor costs 200 credits a month, and reading a tracked competitor's ads costs nothing7. Hopkin tracks competitors' Meta and LinkedIn ads daily89. A search returns 25 ads by default and 50 at most, and Hopkin's docs give a limit of 200 calls an hour6. Hopkin is read-only. It has no boards or swipe file, and it does not track competitors on TikTok or Google.

Frequently asked questions

Does the Meta Ad Library API show spend and impressions for competitor ads?

Only for ads about social issues, elections or politics, as ranges. Meta lists spend and impressions as available only for those ads, and lists estimated impressions and reach for ads delivered to the UK or EU. An ordinary commercial ad delivered only outside the UK and EU is not returned at all.

Can I pull a US competitor's ads from the API?

Not ordinary commercial ads. Meta's reference says ads that did not reach any location in the EU only return if they are about social issues, elections or politics. For ads currently running, Meta points to the Ad Library website.

Do I need to write code to use the Meta Ad Library API?

Yes, in practice. Meta says it helps to be a little familiar with programming and suggests the Ad Library Report for something simpler. Without code, use the Ad Library website or an MCP connector.

Is there an MCP server for searching the Meta Ad Library?

Yes, several. Meta's Ads MCP server lists a tool named ads_library_search. Hopkin (ours) has meta_ads_search_ad_library, and our comparison page covers the others we checked. Compare coverage, price and how each vendor collects data before you pick one.

Is scraping the Meta Ad Library allowed?

Meta's Automated Data Collection Terms say you will not engage in automated data collection without Meta's express written permission or in any manner not explicitly authorized by Meta. This guide is not legal advice. Read the terms and ask counsel.

What are the rate limits for the Meta Ad Library API?

Meta's reference lists error 613 for calls that exceed the rate limit, and we found no published number of calls on the pages we read. Hopkin's search tool documents a limit of 200 calls an hour.

Sources

  1. Ad Library API, Meta. Read in a browser .
  2. Ad Library API reference (ads_archive), v27.0, Meta for Developers. Read .
  3. Archived Ad reference, v27.0, Meta for Developers. Read .
  4. Automated Data Collection Terms, Meta, effective October 7, 2024. Read .
  5. Ads MCP server: ad creation and management tools, Meta for Developers. Read .
  6. meta_ads_search_ad_library, Hopkin docs. Read . The Notion AI results are our Hopkin run on .
  7. Pricing, Hopkin. Read .
  8. meta_ads_track_competitor, Hopkin docs. Read .
  9. linkedin_ads_track_competitor, Hopkin docs. Read .