{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"1880","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"19b38e15-8cb8-43c9-9490-c4c04ff94c3a","catalogType":"api","categories":["scrapers","data","social-media"],"dataPlatform":"facebook","dataPlatformLogoUrl":"https://static.xx.fbcdn.net/rsrc.php/y1/r/ay1hV6OlegS.ico","dataPlatformTranslations":{"ar":"facebook","ja":"facebook","zh":"facebook"},"dataProduct":"ad-library","description":"Search Facebook ad library via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as ad_type, country, end_date, and retrieve structured data including pagination cursor, returned credits charged field, returned credits remaining field, returned end date field, and returned is active field for content research and account lookup, and integration reference.","descriptionTranslations":{"ar":"استخدم مكتبة إعلانات Facebook — بحث API عبر OpenAny، مع تقديم query بصيغة طلب POST الموثقة، لدعم أبحاث المحتوى والبحث عن الحسابات. تتضمن صفحة التفاصيل قالب الطلب والمدخلات المدعومة ومرجع الاستجابة والسعر الحالي للتنفيذ المحدد؛ احتفظ بالمعرفات والحقول المتاحة معا عند مراجعة النتائج.","ja":"OpenAny から Facebook 広告ライブラリ — 検索 API を利用し、POST リクエスト形式で query を指定して、コンテンツ調査とアカウント照会に利用できます。詳細ページにはリクエスト例、対応入力、応答参照、選択した実装の現在の料金があり、結果を確認する際は識別子と利用可能なフィールドを関連付けて保持できます。","zh":"通过 OpenAny 使用 Facebook 广告库 — 搜索 API，按所选实现的 POST 请求格式提供 query，用于内容研究和账户查询。详情页提供请求模板、支持的输入、响应参考及所选实现的当前价格；核对结果时，将返回标识与可用字段关联保留。"},"effectContentHtml":"","executionMode":"sync","id":"4b03c3ee-347f-4608-b9cd-607e061a282b","includedContentHtml":"","inputs":[{"description":"Keyword to search for","location":"body","name":"query","nullable":false,"pointer":"/query","required":true,"type":"string"},{"description":"Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.","enum_values":["total_impressions","relevancy_monthly_grouped"],"location":"body","name":"sort_by","nullable":false,"pointer":"/sort_by","required":false,"type":"string"},{"description":"If you want to search by exact phrase or not","enum_values":["keyword_unordered","keyword_exact_phrase"],"location":"body","name":"search_type","nullable":false,"pointer":"/search_type","required":false,"type":"string"},{"description":"Search for all ads or only political and issue ads","enum_values":["all","political_and_issue_ads"],"location":"body","name":"ad_type","nullable":false,"pointer":"/ad_type","required":false,"type":"string"},{"description":"This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.","location":"body","name":"country","nullable":false,"pointer":"/country","required":false,"type":"string"},{"description":"Language to filter ads on. Needs to be a 2 letter language code, such as EN, ES, or FR.","location":"body","name":"language","nullable":false,"pointer":"/language","required":false,"type":"string"},{"description":"Status of the ad. Defaults to ACTIVE.","enum_values":["ALL","ACTIVE","INACTIVE"],"location":"body","name":"status","nullable":false,"pointer":"/status","required":false,"type":"string"},{"description":"Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.","enum_values":["ALL","IMAGE","VIDEO","MEME","IMAGE_AND_MEME","NONE"],"location":"body","name":"media_type","nullable":false,"pointer":"/media_type","required":false,"type":"string"},{"description":"Impressions start date. Needs to be in YYYY-MM-DD format.","location":"body","name":"start_date","nullable":false,"pointer":"/start_date","required":false,"type":"string"},{"description":"Impressions end date. Needs to be in YYYY-MM-DD format.","location":"body","name":"end_date","nullable":false,"pointer":"/end_date","required":false,"type":"string"},{"description":"Cursor to paginate through results","location":"body","name":"cursor","nullable":false,"pointer":"/cursor","required":false,"type":"string"},{"description":"Set to true for a trimmed down version of the response","location":"body","name":"trim","nullable":false,"pointer":"/trim","required":false,"type":"boolean"}],"logoUrl":"https://scrapecreators.com/favicon.ico","method":"POST","name":"Facebook Ad Library — Search","nameTranslations":{"ar":"مكتبة إعلانات Facebook — بحث","ja":"Facebook 広告ライブラリ — 検索","zh":"Facebook 广告库 — 搜索"},"overviewHtml":"\u003ch2\u003eFacebook Ad Library — Search API\u003c/h2\u003e\n\u003cp\u003eSearch for the Meta Ad Library by keyword and return matching ads with the Facebook API. Provide query in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003ebody: query, sort_by, search_type, ad_type, country, language, status, media_type, start_date, end_date, cursor, trim\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003escrapecreators · Facebook Ad Library — Search\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eFollow the selected implementation pricing, billing unit, quantity and charge rules\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eContent research and account lookup\u003c/strong\u003e: Keep source records connected to their content and account identifiers.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eIntegration reference\u003c/strong\u003e: Use the selected request format and keep source identifiers with the returned result.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecursor\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePagination cursor\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecredits_charged\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned credits charged field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ecredits_remaining\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned credits remaining field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esearchResults[].ad_archive_id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned ad archive id field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esearchResults[].end_date\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned end date field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esearchResults[].end_date_string\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned end date string field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esearchResults[].is_aaa_eligible\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned is aaa eligible field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003esearchResults[].is_active\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned is active field\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the JSON body and supported fields shown in the request template.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl \\\n  \u0026#39;https://api.openany.si/v1/agent-apis/scrapecreators/v1/facebook/adLibrary/search/ads\u0026#39; \\\n  -X POST \\\n  -H \u0026#34;Authorization: Bearer $OPENANY_API_KEY\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  --data-raw \u0026#39;{\n  \u0026#34;ad_type\u0026#34;: \u0026#34;all\u0026#34;,\n  \u0026#34;country\u0026#34;: \u0026#34;ALL\u0026#34;,\n  \u0026#34;end_date\u0026#34;: \u0026#34;2025-02-16\u0026#34;,\n  \u0026#34;language\u0026#34;: \u0026#34;EN\u0026#34;,\n  \u0026#34;media_type\u0026#34;: \u0026#34;ALL\u0026#34;,\n  \u0026#34;query\u0026#34;: \u0026#34;running\u0026#34;,\n  \u0026#34;search_type\u0026#34;: \u0026#34;keyword_unordered\u0026#34;,\n  \u0026#34;sort_by\u0026#34;: \u0026#34;total_impressions\u0026#34;,\n  \u0026#34;start_date\u0026#34;: \u0026#34;2025-01-05\u0026#34;,\n  \u0026#34;status\u0026#34;: \u0026#34;ACTIVE\u0026#34;,\n  \u0026#34;trim\u0026#34;: false\n}\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/4b03c3ee-347f-4608-b9cd-607e061a282b\"\u003ePublished Facebook Ad Library — Search API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich inputs identify this request?\u003c/h3\u003e\n\u003cp\u003eProvide query in body (string). Keep identifiers and URLs in the formats documented for this implementation.\u003c/p\u003e\n\u003ch3\u003eWhich pagination or result-size inputs are exposed?\u003c/h3\u003e\n\u003cp\u003ecountry is string; start_date is string; cursor is string. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.\u003c/p\u003e\n\u003ch3\u003eWhich values can I use for sort_by?\u003c/h3\u003e\n\u003cp\u003eThe selected schema accepts total_impressions, relevancy_monthly_grouped. Keep the documented string type and exact spelling for this input.\u003c/p\u003e\n\u003ch3\u003eWhich request format should I follow?\u003c/h3\u003e\n\u003cp\u003eUse POST on the documented OpenAny route with the selected implementation request content type. Do not change the method or move inputs to a different location.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/facebook/facebook-ad-details-f10649c1\"\u003eAd Details\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/facebook/facebook-scrapecreators-replies\"\u003escrapecreators: replies\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/facebook/facebook-scrapecreators-profile\"\u003escrapecreators: profile\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/facebook/facebook-ad-library-search?offering=4b03c3ee-347f-4608-b9cd-607e061a282b","providerId":"scrapecreators","publicPath":"/v1/agent-apis/scrapecreators/v1/facebook/adLibrary/search/ads","requestContentType":"application/json","revision":4,"samples":[{"http_status":200,"name":"Official example","request":{"body":{"ad_type":"all","country":"ALL","end_date":"2025-02-16","language":"EN","media_type":"ALL","query":"running","search_type":"keyword_unordered","sort_by":"total_impressions","start_date":"2025-01-05","status":"ACTIVE","trim":false},"headers":{},"path":{},"query":{}},"response_body":{"credits_charged":1,"credits_remaining":1000000,"cursor":"AQHRLKHyzb3ZNTn1O3qr6lG7ncS9gfboI0HWGSDETVUnipTSXVY8E4Wb-568JBicOvYS","searchResults":[{"ad_archive_id":"1378176106734781","end_date":1747638000,"end_date_string":"2025-05-19T07:00:00.000Z","is_aaa_eligible":false,"is_active":true,"page_id":"119749581219299","page_name":"Makhumalo","political_countries":[],"publisher_platform":["FACEBOOK"],"reach_estimate":null,"snapshot":{"additional_info":null,"body":{"text":"This is my second pair. I only take them off to go to sleep. I put them on first thing in the morning. I am 59 and have neuropathy in my feet, they bring me comfort every day.” -Lydia P.👍👍👍\n❤️These orthopedic shoes provide great comfort and ease foot and knee pain! 😍\n✅ Ideal for wide feet \n✅ comfortable \n✅ they are ideal for everyday life.\nGet Yours Now : https://www.ghemshop.com/products/buckled-square"},"branded_content":null,"brazil_tax_id":null,"byline":null,"caption":"ghemshop.com","cards":[],"country_iso_code":null,"cta_text":"Shop now","cta_type":"SHOP_NOW","current_page_name":"Makhumalo","disclaimer_label":null,"display_format":"IMAGE","ec_certificates":[],"event":null,"extra_images":[],"extra_links":[],"extra_texts":[],"extra_videos":[],"images":[{"image_crops":[],"original_image_url":"https://scontent-sjc3-1.xx.fbcdn.net/v/t39.35426-6/499507599_4016645891948767_4341363175504946673_n.jpg?_nc_cat=105\u0026ccb=1-7\u0026_nc_sid=c53f8f\u0026_nc_ohc=3EJ6TbZR3GEQ7kNvwErfuF4\u0026_nc_oc=AdkQPpJ9OYN_J3P5xTetGSb9FDCFZzfoLSj59Bbp6s-g5HGg-zTECrgOm8mjkJfk5JE\u0026_nc_zt=14\u0026_nc_ht=scontent-sjc3-1.xx\u0026_nc_gid=49D7P4N6a4mVqUW8WdOxag\u0026oh=00_AfMTuIozb2-VJgGP7NCIx0pG91b48CzMgm_1eT7STgBvew\u0026oe=685A6906","resized_image_url":"https://scontent-sjc3-1.xx.fbcdn.net/v/t39.35426-6/499504336_1222720305887055_488411876974522066_n.jpg?stp=dst-jpg_s600x600_tt6\u0026_nc_cat=104\u0026ccb=1-7\u0026_nc_sid=c53f8f\u0026_nc_ohc=DYkDYH-EJrQQ7kNvwF-b_ov\u0026_nc_oc=Adn2l2fDwHaN4h6W-OxxgoYkb0IUAeCpYH5bociuO_oxVL9L0wLg5vqnNfJa0ehQwqY\u0026_nc_zt=14\u0026_nc_ht=scontent-sjc3-1.xx\u0026_nc_gid=49D7P4N6a4mVqUW8WdOxag\u0026oh=00_AfNkQcMpUNFcM7tF1M5tAHmVwABzLx5QKUU8CFo69NP3Rg\u0026oe=685A4518","watermarked_resized_image_url":""}],"is_reshared":false,"link_description":"🔥Best Seller-Last Day Sale 60% OFF🔥 Buckled Square Heel Sandals for Women","link_url":"https://www.ghemshop.com/products/buckled-square","page_categories":["Musician"],"page_entity_type":"PERSON_PROFILE","page_id":"119749581219299","page_is_deleted":false,"page_is_profile_page":false,"page_like_count":7,"page_name":"Makhumalo","page_profile_picture_url":"https://scontent-sjc3-1.xx.fbcdn.net/v/t39.35426-6/499107970_2293645317822147_4932735414928456888_n.jpg?stp=dst-jpg_s60x60_tt6\u0026_nc_cat=106\u0026ccb=1-7\u0026_nc_sid=c53f8f\u0026_nc_ohc=DBNo3Z6ft4AQ7kNvwESjMWN\u0026_nc_oc=AdnZGvglABgVlSJ6UIGIbWgFeUL2LnoBSuMbBvti20zRjb_UUDRzhGxAZ0ip3ye1EQI\u0026_nc_zt=14\u0026_nc_ht=scontent-sjc3-1.xx\u0026_nc_gid=49D7P4N6a4mVqUW8WdOxag\u0026oh=00_AfMEXcKVf3KYJpFehTTToe8MXUZslTHE9P-xS2eyVCeGKA\u0026oe=685A4903","page_profile_uri":"https://www.facebook.com/61550737114480/","root_reshared_post":null,"title":"🔥Best Seller-Last Day Sale 60% OFF🔥 Buckled Square Heel Sandals for Women","videos":[]},"spend":null,"start_date":1747638000,"start_date_string":"2025-05-19T07:00:00.000Z","total_active_time":null,"url":"https://www.facebook.com/ads/library?id=1378176106734781"}],"searchResultsCount":50001,"success":true}}],"seoDescription":"Search Facebook ad library via REST or MCP powered by ScrapeCreators. Pay per call, no subscription or cookies. Get structured JSON with one API key.","updatedAt":"2026-12-03T02:50:43.042Z","usageInstructionsHtml":""}}