Meta Ad Library (Facebook and Instagram ads)
search_meta_adsAds from the Meta Ad Library by keyword, advertiser, Page ID, ad ID or library URL: creative (text, images, video links), landing link and call to action, platforms, start date, days running, variations and a winning score; spend and impressions where Meta publishes them. Filters by country, status, ad type, media, platform, language and dates; advertiser details and EU reach, every version of an ad, parallel big pulls, video transcript, text on the image, AI marketing analysis, landing page analysis, total count only and a new-ads monitor. No login or cookies needed from you. Use for ads on Facebook and Instagram (Meta Ad Library) by keyword, advertiser or ad ID; for ads on Google use search_google_ads. Returns {items: [...]} with one object per result, for example: {"status":"ok","adArchiveId":"1550534860016399","pageName":"Perfect themes","isActive":true,"startDate":"2026-05-19","activeDays":198,"variationCount":1,"winningScore":198,"platforms":["FACEBOOK","INSTAGRAM"],"text":"Themepack is a free app...","ctaText":"Install now","linkUrl":"https://example.com","adLibraryUrl":"https://www.facebook.com/ads/library/?id=1550534860016399"} Large requests return nextCursor: call again with only cursor to get the next page. Cost: pay per result (prices on the store page where you subscribed), or US$ 0.025 per call with x402 (up to 50 ads). Read-only: it only reads public data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_meta_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Keywords to search. Comma-separate several (max 5). Give q, advertiser, page_id, ad_id or url. | |
| max | No | Maximum ads (1-5000, default 20). One call returns up to about 100 ads (fewer with details, landing_page or save_media); send nextCursor for the rest. | |
| url | No | An Ad Library URL with your filters already set (one per call). | |
| sort | No | Default relevance. | |
| ad_id | No | Ad Library IDs. Comma-separate several (max 20). | |
| cursor | No | Next page: the nextCursor of the previous answer. Send it alone; the first call's parameters are kept. Cursors last 24 hours. | |
| period | No | Only ads that started in this period. | |
| status | No | Default active. | |
| ad_type | No | Default all. | |
| country | No | Country code (ISO 2 letters) or ALL; comma-separate up to 10. Default US. | |
| details | No | Advertiser Page details, EU reach, targeting and demographics for each ad. | |
| page_id | No | Facebook Page IDs. Comma-separate several (max 5). | |
| only_new | No | Only ads this API key has not received before under the same stateKey. | |
| parallel | No | Faster big pulls: reads each search as several streams at once (all, video, image, meme) and delivers every ad once. Row order is mixed. | |
| stateKey | No | With only_new: name of your monitor (letters, numbers, - and _). | |
| variants | No | Return every version Meta groups under one creative and text, one ad each. | |
| languages | No | Language codes of the ad (comma-separated), e.g. en,es. | |
| platforms | No | facebook, instagram, audience_network, messenger, whatsapp, threads (comma-separated). | |
| advertiser | No | Advertiser names, @handles or Facebook Page links. Comma-separate several (max 5). | |
| image_text | No | The words written on the ad image or video cover (imageText). | |
| media_type | No | Default all. | |
| save_media | No | Save the creative files and return permanent links. Default none. | |
| started_to | No | Only ads that started on or before this date (YYYY-MM-DD). | |
| total_only | No | Only the number of ads of each search per country. | |
| transcribe | No | Speech of each ad video as text: transcript, language, first 3 seconds (hook3s), timed segments. Fewer ads per call; send nextCursor for the rest. | |
| ai_analysis | No | Marketing reading of each ad (aiAnalysis): hook, offer, offer type, angle, emotional trigger, target persona, call to action, summary. | |
| exact_phrase | No | Match the keywords as an exact phrase. | |
| landing_page | No | Read each landing page: title, price, technologies and tracking IDs. | |
| running_days | No | Only ads running for at least this many days. | |
| started_from | No | Only ads that started on or after this date (YYYY-MM-DD). |