Ads
Search the Meta Ad Library, or list every ad one advertiser runs on Facebook, Instagram, Messenger and Audience Network.
GET | POST /v1/meta-ads/adsSend parameters as a query string with GET, or as a JSON body with POST. Both are equivalent.
Request
curl "https://gateway.apinoa.com/v1/meta-ads/ads?advertiser=15087023444&status=all" \
-H "x-api-key: $APINOA_API_KEY"What to Pass
| Pass | Reads | Notes |
|---|---|---|
query | Ads matching the keywords | exact matches the whole phrase |
advertiser | Every ad one advertiser runs | Its id, from advertisers or an ad's advertiser.id |
query + advertiser | Ads matching the keywords, from these advertisers only | Up to 10 ids, comma-separated |
Pass query, advertiser, or both. The filters (country, status, adType, mediaType, platforms, languages, startDate, endDate, sort) work with any of them.
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
adType | enum | all (default), or one special category: political (social issues, elections or politics), housing, employment, credit. all political housing employment credit | |
advertiser | string list | The advertiser's id, as advertisers returns it (or an ad's advertiser.id): every ad it runs. With query, up to 10 ids, comma-separated, narrow the keyword search to those advertisers. | |
country | string | Where the ads ran: an ISO 3166-1 alpha-2 code, or ALL (default). | |
cursor | string | Opaque cursor from the previous page's cursor. Pass it alone for the next page. | |
endDate | string | Only ads that started running on or before this day (YYYY-MM-DD). | |
exact | boolean | query: match the exact phrase instead of any of its words. | |
languages | string list | Only ads in these languages (ISO 639-1). | |
mediaType | enum | all (default), image, video, meme, image_and_meme, none. all image video meme image_and_meme none | |
platforms | string list | Only ads that ran on these platforms. | |
query | string | Keywords to search the Ad Library for. | |
sort | enum | relevance (default), or impressions (highest first; Facebook states impressions for political ads). relevance impressions | |
startDate | string | Only ads that started running on or after this day (YYYY-MM-DD). | |
status | enum | active (default), inactive or all. active inactive all |
The same parameters, and every response type, are in the OpenAPI document.
Response
Returns an AdPage in data. A real response, shortened: arrays keep their first entries and long text is cut.
{
"success": true,
"data": {
"library": "meta-ads",
"items": [
{
"library": "meta-ads",
"id": "1702938977100376",
"url": "https://www.facebook.com/ads/library/?id=1702938977100376",
"advertiser": {
"id": "15087023444",
"name": "Nike",
"url": "https://www.facebook.com/nike/",
"avatarUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/431756959_71287105437…",
"ext": {
"likes": 39488420,
"categories": [
"Sportswear",
"Product/service"
]
}
},
"format": "DPA",
"title": "{{product.name}}",
"text": "Bring sports more fully into your day with the Nike App.",
"linkUrl": "http://itunes.apple.com/app/id1095459556",
"ctaText": "Install now",
"images": [],
"videos": [],
"cards": [
{
"title": "Nike Run Swift 3 Women's Road Running Shoes",
"text": "Bring sports more fully into your day with the Nike App.",
"linkUrl": "https://www.nike.com/ph/t/run-swift-3-road-running-shoes-2fHbzp/DR2698-0…",
"ctaText": "Install Now",
"image": {
"url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/431679131_94921416663…",
"ext": {
"resizedUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/431679131_94921416663…"
}
},
"ext": {
"caption": "itunes.apple.com",
"linkDescription": "₱3,995",
"ctaType": "INSTALL_MOBILE_APP"
}
},
{
"title": "Nike Invincible 3 Women's Road Running Shoes",
"text": "Bring sports more fully into your day with the Nike App.",
"linkUrl": "https://www.nike.com/ph/t/invincible-3-road-running-shoes-LL61DX/DR2660-…",
"ctaText": "Install Now",
"image": {
"url": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/431631323_92872743202…",
"ext": {
"resizedUrl": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.35426-6/431631323_92872743202…"
}
},
"ext": {
"caption": "itunes.apple.com",
"linkDescription": "₱9,895",
"ctaType": "INSTALL_MOBILE_APP"
}
}
],
"firstShownAt": "2025-04-07T07:00:00.000Z",
"lastShownAt": "2026-11-07T08:00:00.000Z",
"ext": {
"active": true,
"platforms": [
"facebook",
"instagram"
],
"caption": "itunes.apple.com",
"ctaType": "INSTALL_MOBILE_APP",
"has_user_reported": false,
"gated_type": "ELIGIBLE",
"is_aaa_eligible": false,
"regional_regulation_data": {
"finserv": {
"is_deemed_finserv": false,
"is_limited_delivery": false
},
"tw_anti_scam": {
"is_limited_delivery": false
}
},
"hide_data_status": "NONE",
"snapshot": {
"is_reshared": false
}
}
}
],
"cursor": "FBe_2wsngLShai3Nb8Z3btwLqnQCPM5mfHmg_xoJDSWCYQpot_7Bie7WzcRR96xHrpnClTN0…",
"total": 15646,
"ext": {
"searchType": "page",
"countries": [
"ALL"
],
"status": "all",
"adType": "all",
"mediaType": "all",
"advertiser": "15087023444"
}
}
}Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_CURSOR | The cursor is not one this operation returned. Start again without it. |
| 400 | INVALID_PARAMS | A parameter is missing, unknown or out of range. The message names it. |
| 401 | UNAUTHORIZED | The x-api-key header is missing, or the key is revoked or unknown. |
| 402 | INSUFFICIENT_CREDITS | Your credits do not cover this call. Choose a plan or top up in the dashboard. |
| 429 | MARKETPLACE_SATURATED | Too many concurrent calls. Retry after the Retry-After seconds. |
| 502 | UPSTREAM_ERROR | The library answered with something unusable. Retry with backoff. |
Every code is listed in Errors. Failed calls are not billed.
Pricing
Price 1 credit per call. Plans and credits.
Notes
totalis how many ads match, exactly as the Ad Library states it. Above 50,000 it states only that many or more, and the answer carriestotalRange({"lower": 50000}) instead.- Ads about social issues, elections or politics (
adType=political) also carryspend,impressionsandreachas ranges ({text, lower, upper}),currency, and who paid for them (paidBy). countryis one ISO 3166-1 alpha-2 code, orALL(the default).startDateandendDatebound the day an ad started running.- Each ad's
extholds what only Meta states:active,platforms(where it ran),adId,activeSeconds, the creative'scaption,linkDescriptionandctaType, the rest of the payer disclosure (disclaimer: its label, how Meta confirmed the payer, their contact details),collationIdandcollationCount(ads Meta groups as one creative),sensitive, and every other field the Ad Library sends under its own name. The advertiser'sexthas itslikes,categories, the name the ad ran under (nameInAd) anddeleted; images and videos keep Meta's other copies (resizedUrl,watermarkedUrl,sdUrl, …) in theirs. - The answer's
extis the search as the Ad Library applied it. - For the next page, pass
cursoralone.
Advertisers
Find advertisers in the Meta Ad Library by name: each with the id that ads takes as advertiser.
TikTok Ad Library
TikTok's Ad Library through the Ads API: ads shown in the EU, the UK and the other countries the library covers, by keyword or advertiser, and each ad's payer, impressions per country and targeting.