Last updated 22 November 2026View as Markdown

Meta’s official Ad Library API compared with Public Ads API

Meta’s ads_archive endpoint returns political and issue ads outside the EU and no media files. What it covers, what it needs, and when another API fits better.

Meta has an official API for its Ad Library, the Graph API’s ads_archive endpoint. It is free, and for some research it is the right tool. For most commercial uses it is too narrow, which is why third-party APIs exist.

What the official API returns

  • Political and issue ads anywhere, every ad in the EU. Meta’s own reference says that ads that did not reach any location in the EU only come back if they are about social issues, elections or politics. A US shoe brand’s ads, for example, are out of reach.
  • A snapshot link, not media. Each ad has an ad_snapshot_url, a page that displays the ad. There are no image or video addresses to download or show in your own product.
  • An access token from a Meta developer app, and Meta asks for a confirmed identity before the Ad Library API answers.

What Public Ads API returns

Public Ads API reads the public Meta Ad Library page, the one anyone can open in a browser. So commercial ads come back from any country Meta shows them in, with their image and video addresses, text, call to action, link, placements and run dates. One call returns up to 30 ads as JSON.

curl "https://api.publicadsapi.com/v1/meta/ads?q=running+shoes&country=US&active=true" \
  -H "authorization: Bearer $PADS_API_KEY"

Side by side

Meta ads_archivePublic Ads API
Commercial ads outside the EUNoYes, while they run
Political and issue adsYesYes (category=political_and_issue)
Image and video addressesNo, a snapshot pageYes
Getting accessA developer app and identity confirmationAn email address
PriceFree100 credits a month free, then from $19 a month for 8,000 credits

Limits every API shares

Some limits are the library’s, so no API gets past them. Meta shows US commercial ads only while they run; a stopped one stays only if it was a political or issue ad. EU and UK ads stay for a year after they stop. Reach and targeting exist only for ads delivered in the EU.

Which to use

Use ads_archive if you study political or EU ads and don’t need the media. Use Public Ads API if you want commercial ads from any country with their images and videos, or the same record from Google and TikTok too. Every account starts with 100 free credits a month and a sandbox key, no card. Get a free API key or read the quickstart.

Try it free

No password and no card. We email you a sign-in link.

Questions

Is Meta’s Ad Library API free?

Yes. It needs a Meta developer app and an access token, and returns ads outside the EU only when they are about social issues, elections or politics.

Can the official API return a brand’s commercial ads in the US?

No. Ads that never reached the EU come back only if they are political or issue ads. Public Ads API reads the public library page, so a running commercial ad in the US comes back.

Read next

Search the ad libraries from your own code

Meta, Google and TikTok, one Ad record, free to start.