Meta Ad Library API
5 endpoints read Meta Ad Library: ad library, advertisers. From $0.0020 a call. No Meta Ad Library login and no cookie; a failed call is free.
The 5 endpoints for Meta Ad Library, and what each returns
- Meta ad detail: Get one ad of the Meta Ad Library by its library ID or link: advertiser, text, headline, images and videos, landing page, first and last day shown, the platforms it is delivered on, and whether it is still running.
- Meta Ad Library search: Search the ads running now in the Meta Ad Library (Facebook, Instagram and Meta's other apps) by keyword: advertiser, text, headline, images and videos, landing page, first and last day shown; can be limited to a country and to image or video ads, sorted by impressions or newest first. 30 ads a page.
- Meta ad video transcript: Get what is said in the video of a Meta Ad Library ad by its library ID or link, as one text.
- Meta advertiser's ads: Get the ads an advertiser (a Facebook page) is running now in the Meta Ad Library, by the page's ID: text, headline, images and videos, landing page, first and last day shown; can be limited to a country and to image or video ads, sorted by impressions or newest first. 30 ads a page.
- Meta advertiser search: Find advertisers (Facebook pages) in the Meta Ad Library by name: ID, name, picture, category, page likes, the linked Instagram account. The ID is what the advertiser's ads are asked for by.
One call, as it came back
A recorded call, fields already tidied up: ready for an AI or a spreadsheet.The first 3 rows of a response recorded 2026-10-12 21:45 UTC.
Run it in the Playground · $0.0020{
"code": "ok",
"request_id": "f8a22e1e-fee2-4b69-9e5c-446621ff8b56",
"data": {
"item": {
"id": "1058286942402074",
"url": "https://www.facebook.com/ads/library/?id=1058286942402074",
"format": "image",
"title": "Start weekend hiking with the kit made for beginners",
"text": "Start weekend hiking with the kit made for beginners",
"landing_url": "https://www.pineandoak-home.com/fall?utm_source=meta",
"advertiser": {
"id": "124244511652870",
"name": "Pine & Oak Home",
"url": "https://www.facebook.com/profile.php?id=124244511652870",
"avatar_url": "https://scontent.xx.fbcdn.net/v/t39.30808-1/419991773_116184846204048_n.jpg"
},
"images": [
"https://scontent.xx.fbcdn.net/v/t39.35426-6/433783216_111510700877970_n.jpg",
"https://scontent.xx.fbcdn.net/v/t39.35426-6/464959343_128562597021179_n.jpg",
// … 4 more
],
"first_shown_at": "2025-04-07T07:00:00.000Z",
"last_shown_at": "2026-10-12T07:00:00.000Z"
}
},
"warnings": [],
"meta": {
"capability": "meta.ads.get",
"result_status": "complete",
"fetched_at": "2026-10-12T21:45:40.000Z",
"cached": false,
"replayed": false,
"unavailable": {},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}From a response recorded 2026-10-12 21:45 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
What you can get
Each row is an endpoint: what it returns and what one call costs.
What people build with it
Ready-made tasks your AI can run on Meta Ad Library data. Each is a few calls under a spending cap.
Ask about Meta Ad Library right inside Claude or Cursor
Add the OneFeedAPI MCP server and the AI finds the Meta Ad Library endpoint it needs and calls it; answers link back to the source. You pay for the calls it makes.
https://onefeedapi.com/mcpStart in three steps
The call shown here is Meta ad detail. Every other Meta Ad Library endpoint is called the same way and answers in the same envelope.
Get a key
Sign in with an emailed code or Google. Free trial, no card needed.
Call it, or let your AI call it
One GET from your code. Or paste this prompt into your agent with your key in it: it sets itself up, then finds and calls these endpoints by itself.
Read the same shape every time
Items are in data.items (one object in data.item), the next page in page.next_cursor, the charge in meta.billing.amount. A failed call is not charged.
curl -G "https://onefeedapi.com/v1/meta/ads/get" \ --data-urlencode "id=1466307095509411" \ -H "Authorization: Bearer $ONEFEED_API_KEY"
# pip install onefeedapi from onefeedapi import OneFeedAPI dx = OneFeedAPI() # reads ONEFEED_API_KEY result = dx.meta.ads.get(id="1466307095509411") print(result["data"]["item"])
// npm i @onefeedapi/sdk import { OneFeedAPI } from "@onefeedapi/sdk"; const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY const result = await dx.meta.ads.get({ id: "1466307095509411" }); console.log(result.data.item);
onefeedapi call meta.ads.get id=1466307095509411
{
"mcpServers": {
"onefeedapi": {
"type": "http",
"url": "https://onefeedapi.com/mcp",
"headers": {
"Authorization": "Bearer ${ONEFEED_API_KEY}"
}
}
}
}Add this to your MCP client, then ask your agent to call meta.ads.get.
Edge cases
What the Meta Ad Library endpoints do at their edges, and what to check when a call does not return what you expected.
- Page sizes
- A list returns 15 to 30 items a page, depending on the endpoint. 2 of the 3 lists go on to a next page:
page.next_cursor, passed back ascursor, each page a call of its own. The others return one page only. - Fields it cannot give
- 2 of the 5 endpoints cannot fill every field of the object they return. Each endpoint's page lists which, and every answer repeats them in
meta.unavailable: a missing field is never a silent zero. - A missing object that reads as empty
- Meta advertiser's ads: an object that does not exist cannot be told from one with nothing under it, so the answer is an empty result, not a 404.
- Preview structures
- 4 endpoints return a preview structure whose fields may still change; the others return a standard object, the same on every platform.
- Running ads only
- Search and an advertiser's ads return the ads running now.
- The advertiser ID is a Page ID
- An advertiser is a Facebook Page: find its ID with the advertiser search by name, then list its ads by that ID.
- Library ID or link
- One ad is read by its Library ID or its link (facebook.com/ads/library/?id=<ID>).
- Empty is not “not found”
- An advertiser that does not exist and one with no ads running both return an empty list.
- Not every ad has words
- An ad without a video, or a video in which nothing is transcribed, reads as not found and is not charged.
Questions about the Meta Ad Library API
Short answers. The details are on each endpoint's page.
What Meta Ad Library data can I get through the API?
5 endpoints: ad library, advertisers. Each endpoint's page gives its parameters and fields, with a recorded response.
How do I call the Meta Ad Library API?
Sign up for a key, send it as Authorization: Bearer <key> and call the endpoint's address, for example GET https://onefeedapi.com/v1/meta/ads/get. Or connect OneFeedAPI to Claude, Cursor or ChatGPT (MCP) and ask in a sentence. The free trial needs no card.
How many tokens does a Meta Ad Library API response take in an AI?
Across 5 Meta Ad Library endpoints, one recorded real response each, the platform's own JSON comes to 236k tokens and what an AI reads through OneFeedAPI's MCP server to 9,707, 96% fewer; the JSON of a direct API call is 61% fewer (counted 2026-11-06). Every platform uses the same field names, and fields returns only the ones you name.
How is the Meta Ad Library API priced?
Per call, no subscription. All 5 endpoints cost $0.0020 a call. You are charged when data comes back; a failed call costs nothing.
Do I need a Meta Ad Library account or a cookie?
No. One OneFeedAPI key is all you hold: no Meta Ad Library login, no cookie, no device to keep alive. The endpoints return publicly visible data only.
Is the data live?
A call fetches from Meta Ad Library at that moment, and meta.fetched_at says when. A result is kept for 24 hours, so a retry with the same Idempotency-Key is not charged again.
What happens when Meta Ad Library changes something?
A call that fails is not charged, whatever the reason. An endpoint that is paused answers capability_paused, also free, and GET /v1/catalog/status says what is up right now.
Related
Call Meta Ad Library with one key.
Free trial on sign-up: up to 50 calls at $0.0020. No card. No Meta Ad Library login, no cookie, no subscription. A failed call is free.