{"agent":{"expose":"search","prompt":"Use Crawl4AI to get meta Ad Library ads for a keyword."},"also":["find ads","ad research","ads about a topic"],"beta":true,"call":{"aliases":["POST /recipes/meta-ads-search"],"method":"POST","path":"/tools/meta-ads-search"},"categories":["social","marketing"],"cost":{"cases":[{"price":"1.5 to 3.5 credits","when":"A run"},{"price":"","when":"Up to 5 when Facebook refuses"},{"price":"free","when":"A run with no row"}],"rule":"1.5 to 3.5 credits · up to 5 when Facebook refuses · a run with no row is free","text":"1.5 to 5 cr"},"description":"The ads the Meta Ad Library (Facebook, Instagram, Messenger) shows for a keyword search, one row per ad: advertiser page, dates, platforms, text, link, button, media, cards, and spend and impressions for political ads. `query` is the search text; `country` is ALL or two letters (US, GB, DE); `active_status` is active or all; `limit` up to 100. A view shows up to 30 ads; below `limit`, the recipe adds the search split by media type (4 more fetches, not in the Library's order). No login. 2-8 s; if Facebook refuses our address, a residential exit (3-10 s), then a browser: 20-45 s, up to 10 units.","docs":"/tools/meta-ads-search","essential":false,"essential_order":null,"examples":[{"answer":{"body":{"request_id":"req_…","rows":[{"ad_archive_id":"866569929827744","ad_url":"https://www.facebook.com/ads/library/?id=866569929827744","body":"I watched a man in a Carhartt jacket put back a gallon of milk at the…","cards":[],"cta":"Learn more","cta_type":"LEARN_MORE","currency":null,"display_format":"image","end_date":null,"images":["https://scontent-fra3-1.xx.fbcdn.net/v/t39.35426-6/710781895_43578815…"],"impressions":null,"is_active":true,"link_caption":"shop.pipitea.com","link_url":"https://shop.pipitea.com/ppch/sp","page_id":"866655706540346","page_likes":2954,"page_name":"Cholesterol Relief Community","page_url":"https://www.facebook.com/61585235895092/","paid_for_by":null,"platforms":["facebook","instagram","…"],"same_creative_ads":1,"spend":null,"start_date":"2026-06-01T07:00:00Z","title":"Natural Relief in Weeks","videos":[]},{"ad_archive_id":"914467831604972","ad_url":"https://www.facebook.com/ads/library/?id=914467831604972","body":"I have been cutting the same man's hair every three weeks for twenty-…","cards":[],"cta":"Learn more","cta_type":"LEARN_MORE","currency":null,"display_format":"image","end_date":null,"images":["https://scontent-fra5-1.xx.fbcdn.net/v/t39.35426-6/704980248_14770537…"],"impressions":null,"is_active":true,"link_caption":"shop.pipitea.com","link_url":"https://shop.pipitea.com/ppch/sp","page_id":"866655706540346","page_likes":2954,"page_name":"Cholesterol Relief Community","page_url":"https://www.facebook.com/61585235895092/","paid_for_by":null,"platforms":["facebook","instagram","…"],"same_creative_ads":1,"spend":null,"start_date":"2026-05-26T07:00:00Z","title":"Natural Relief in Weeks","videos":[]}],"took_ms":3414,"tool":"meta-ads-search","usage":{"credits":2}},"credits":2,"more":4,"rows":6,"took_ms":3414},"input":{"active_status":"active","country":"US","limit":20,"query":"running shoes"},"label":"running shoes, US, active, 20"},{"input":{"active_status":"active","country":"US","limit":10,"query":"running shoes"},"label":"running shoes, US, active, 10"}],"id":"meta-ads-search","input_schema":{"additionalProperties":true,"properties":{"active_status":{"default":"active","description":"`active_status` is active or all","type":"string"},"country":{"default":"ALL","description":"`country` is ALL or two letters (US, GB, DE)","type":"string"},"limit":{"default":20,"description":"`limit` up to 100.","type":"integer"},"query":{"description":"`query` is the search text","type":"string"}},"required":["query"],"type":"object"},"inputs":[{"example":"running shoes","help":"`query` is the search text","name":"query","required":true,"type":"string"},{"advanced":true,"default":"ALL","example":"US","help":"`country` is ALL or two letters (US, GB, DE)","name":"country","type":"string"},{"advanced":true,"default":"active","example":"active","help":"`active_status` is active or all","name":"active_status","type":"string"},{"advanced":true,"default":20,"example":20,"help":"`limit` up to 100.","name":"limit","type":"integer"}],"kind":"sites","name":{"lead":"Meta Ad Library","rest":"ads by keyword"},"output":{"fields":[{"meaning":"The Ad Library's id of the ad (digits, as a string).","name":"ad_archive_id","type":"string"},{"meaning":"The ad's own page in the Meta Ad Library.","name":"ad_url","type":"string"},{"meaning":"The id of the Facebook page that runs the ad (digits, as a string).","name":"page_id","type":"string"},{"meaning":"The name of the Facebook page that runs the ad.","name":"page_name","type":"string"},{"meaning":"The Facebook address of the page that runs the ad.","name":"page_url","type":"string"},{"meaning":"How many likes the page that runs the ad has; null when the Library does not show it.","name":"page_likes","type":"integer"},{"meaning":"True while the ad runs, false when it has stopped.","name":"is_active","type":"boolean"},{"meaning":"The day the ad started running, ISO 8601 UTC (the Library counts days in Pacific time, so the hour is 07:00 or 08:00).","name":"start_date","type":"string"},{"meaning":"The day a stopped ad ended, ISO 8601 UTC; null while the ad runs.","name":"end_date","type":"string"},{"meaning":"Where the ad runs, lower case: facebook, instagram, messenger, whatsapp, threads, audience_network.","name":"platforms","type":"string[]"},{"meaning":"The ad's format as the Library names it, lower case: image, video, carousel, dpa (a product catalog ad), dco (an ad Meta assembles from several texts and images), text; null when the Library gives none.","name":"display_format","type":"string"},{"meaning":"The ad's headline; for a catalog ad, whose own headline is a template, the first card's headline.","name":"title","type":"string"},{"meaning":"The ad's main text (at most 5000 characters); for a catalog ad with a template text, the first card's text.","name":"body","type":"string"},{"meaning":"Where a click on the ad goes; for a catalog ad, the first card's link.","name":"link_url","type":"string"},{"meaning":"The short text under the link, usually its domain (nike.com).","name":"link_caption","type":"string"},{"meaning":"The button text (Shop now, Learn more, Install now).","name":"cta","type":"string"},{"meaning":"Meta's code for the button (SHOP_NOW, LEARN_MORE, INSTALL_MOBILE_APP).","name":"cta_type","type":"string"},{"meaning":"The ad's image URLs, its cards' images included, at most 20 (Facebook's image links expire after some days).","name":"images","type":"string[]"},{"meaning":"The ad's video file URLs (HD when there is one), its cards' videos included, at most 20 (the links expire after some days).","name":"videos","type":"string[]"},{"meaning":"The cards of a carousel or catalog ad, at most 20, each with title, body, link_url, cta, image and video; empty for a single-image or video ad.","name":"cards","type":"object[]"},{"meaning":"How many ads use this same image or video and text (the Library shows them as one); null when the Library gives no count.","name":"same_creative_ads","type":"integer"},{"meaning":"The impressions range the Library shows (>1M, 10K-15K); only for political and issue ads, and some ads seen in the EU; else null.","name":"impressions","type":"string"},{"meaning":"The amount spent as the range the Library shows (>$1M, $100 - $199), in `currency`; only for political and issue ads, else null.","name":"spend","type":"string"},{"meaning":"The currency of `spend` (USD, EUR); null when there is no spend.","name":"currency","type":"string"},{"meaning":"Who paid for the ad, as its disclaimer says; only for political and issue ads, else null.","name":"paid_for_by","type":"string"}],"row_is":"","view":"rows"},"related":[{"id":"meta-ads-advertiser","why":"Page name, page likes, start date, end date, platforms, display format"},{"id":"facebook-event","why":"Name, starts at, ends at, when, place, host, description, categories"},{"id":"extract","why":"For a page no tool is built for: say the rows you want."}],"run":"both","source":"meta-ads","status":"verified","summary":"Page name, page likes, start date, end date, platforms, display format","synonyms":["ad","ads","keyword","library","meta","search","search ads","ads by keyword","find ads","ad research","ads about a topic"],"typical":"3.9 s","version":2,"visibility":"public"}