Does the Meta Ad Library have an API?
Yes: the Ad Library API searches ads about social issues, elections or politics anywhere, and every ad delivered in the UK and EU. SocialToAI reads its publicly visible ads and advertisers without a Meta Ad Library developer account: 4 interfaces from 2 credits a call (≈ $0.004–$0.0067), and failed calls are free. Official facts checked 2026-10-17.
The short answer
Yes: the Ad Library API searches ads about social issues, elections or politics anywhere, and every ad delivered in the UK and EU.
What the official API allows
Meta offers the official Ad Library API for searching ads about social issues, elections or politics delivered anywhere, and any ads delivered in the UK and EU. Access requires a Facebook account, confirming your identity and location, and a Meta developer account with an app.
Source: Meta Ad Library's own developer documentation, checked 2026-10-17. What a platform allows changes; its own pages are the authority.
Reading Meta Ad Library's public data with SocialToAI
SocialToAI is an API and MCP server for publicly visible content and account information. You need no Meta Ad Library account and no app review: one SocialToAI key, or signing in from Claude, ChatGPT, Claude Code, Cursor and Codex. Each call costs a fixed number of credits, and a failed call costs nothing.
| Interface | What it returns | Price key | Credits |
|---|---|---|---|
| Ad Library search | Search the ads running now in the Meta Ad Library (Facebook, Instagram and Meta's other apps) by keyword. | meta.ad_search | 2 |
| Advertiser's ads | Get the ads an advertiser (a Facebook page) is running now in the Meta Ad Library, by the page's ID. | meta.advertiser_ads | 2 |
| Advertiser search | Find advertisers (Facebook pages) in the Meta Ad Library by name. | meta.advertiser_search | 2 |
| Ad detail | Get one ad of the Meta Ad Library by its library ID or link. | meta.ad_detail | 2 |
curl https://api.socialtoai.com/v1/call/meta.ad_search \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "query": "running shoes" }'- No Meta Ad Library account, cookie or developer approval on your side.
- What comes back is what the platform shows publicly; commenters are anonymised.
- Every platform answers in the same response format, so the same code reads Meta Ad Library and the others.
- Prepaid credits from 2 credits a call; 100 free credits on sign-up, no card.
Sources
- Meta Ad Library: www.facebook.com, checked 2026-10-17
- Meta Ad Library API on SocialToAI: every call and its credits, last tested 2026-10-17
- The live catalog: what is offered now and its credits, readable without a key
Last updated: