Facebook Ad Library API
Every ad a page runs in the Ad Library, active or stopped: copy, headline, call to action, link, dates and platforms.
Guides · Facebook
Yes, Meta has an Ad Library API, but it is narrow. You need a Facebook account, an identity check and a developer app, and it returns ads about social issues, elections or politics anywhere in the past seven years, and ads of any type delivered to the EU or UK in the past year. Other commercial ads are not returned.
Updated 21 October 2026
Meta's side is from its Ad Library API page and Graph API reference, seen 21 October 2026.
| Meta Ad Library API | API for Agents | |
|---|---|---|
| Commercial ads shown outside the EU and UK | Not returned | Yes, as shown in the Ad Library, $0.0045 per record |
| Political and issue ads | Yes, with spend and impressions ranges | Yes |
| Fields on every ad | Page, delivery dates and where it ran; more for political, EU and UK ads | Copy, headline, call to action, landing page, dates and platforms |
| Look up by | Search terms or page IDs | Page URL or handle, active or stopped ads |
| Who can get access | Facebook account, identity confirmation, developer app | Anyone. An agent signs itself up in one call and starts on a $0.10 trial |
| Price model | No price published | Pay as you go, from $0.0022 per record |
| Setup | Confirm your ID, create a Meta app, get a token | One API key. No Facebook account or app review |
For research on political and issue advertising, Meta's API is the primary source: it carries spend and impression ranges and demographic reach that the public library page does not show for other ads. For EU and UK ads it adds estimated reach and, for the EU, advertiser and payer details.
For competitor research on ordinary commercial ads in other markets, those ads are not in the API. Reading the ads a page runs, the way the Ad Library shows them, is what this API does.
Every ad a page runs in the Ad Library, active or stopped: copy, headline, call to action, link, dates and platforms.
Followers, likes, category, contact details and whether the page is running ads.
A page's recent posts with reactions, comments, shares and views.
Anyone with a Facebook account who completes Meta's identity and location confirmation and creates a Meta for Developers app, per Meta's Ad Library API page.
No. It returns ads about social issues, elections or politics delivered anywhere in the past seven years, and ads of any type delivered to the EU or UK in the past year.
Only for political and issue ads, as a range. Commercial ads come without spend.
Priced per record, from $0.0022 per record. Quote first with estimateOnly, which is free.
Reading public content of pages you do not manage needs the Page Public Content Access feature, which requires App Review and business verification.
The playground runs any endpoint by hand: pick a platform and what you want from it, fill a short form named in plain words (or press Use sample input), see the free quote on the Run button, run it, then read the answer as a table or JSON and download it as CSV or JSON. The same call is written out as cURL, Python and Node while you type.
Why people pick API for Agents
API for Agents is independent and not affiliated with or endorsed by LinkedIn or any company named here. LinkedIn is a trademark of LinkedIn Corporation; other names belong to their owners. Public data only: nothing behind a login.