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_archive | Public Ads API | |
|---|---|---|
| Commercial ads outside the EU | No | Yes, while they run |
| Political and issue ads | Yes | Yes (category=political_and_issue) |
| Image and video addresses | No, a snapshot page | Yes |
| Getting access | A developer app and identity confirmation | An email address |
| Price | Free | 100 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