Facebook ad library search

Search for ad library with the Facebook API. Supply a search query. Sample fields include captions and images. Use it in developer research or a documentation workflow. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.

Selected price
$0.00188 / callPublished pricing
Sellers / implementations
1 / 2
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Keyword to search for
Optional parameters (11)
Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.
If you want to search by exact phrase or not
Search for all ads or only political and issue ads
This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.
Language to filter ads on. Needs to be a 2 letter language code, such as EN, ES, or FR.
Status of the ad. Defaults to ACTIVE.
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.
Impressions start date. Needs to be in YYYY-MM-DD format.
Impressions end date. Needs to be in YYYY-MM-DD format.
Cursor to paginate through results
Set to true for a trimmed down version of the response

Sample response

"credits_charged": 1
"credits_remaining": 1000000
"cursor": "AQHRLKHyzb3ZNTn1O3qr6lG7ncS9gfboI0HWGSDETVUnipTSXVY8E4Wb-568JBicOvYS"
searchResults [1]
[0] {}
"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 {}
textString · text preview
searchResults[0].snapshot.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.👍👍👍
❤️These orthopedic shoes provide great comfort and ease foot and knee pain! 😍
✅ Ideal for wide feet 
✅ comfortable 
✅ they are ideal for everyday life.
Get 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&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=3EJ6TbZR3GEQ7kNvwErfuF4&_nc_oc=AdkQPpJ9OYN_J3P5xTetGSb9FDCFZzfoLSj59Bbp6s-g5HGg-zTECrgOm8mjkJfk5JE&_nc_zt=14&_nc_ht=scontent-sjc3-1.xx&_nc_gid=49D7P4N6a4mVqUW8WdOxag&oh=00_AfMTuIozb2-VJgGP7NCIx0pG91b48CzMgm_1eT7STgBvew&oe=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&_nc_cat=104&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=DYkDYH-EJrQQ7kNvwF-b_ov&_nc_oc=Adn2l2fDwHaN4h6W-OxxgoYkb0IUAeCpYH5bociuO_oxVL9L0wLg5vqnNfJa0ehQwqY&_nc_zt=14&_nc_ht=scontent-sjc3-1.xx&_nc_gid=49D7P4N6a4mVqUW8WdOxag&oh=00_AfNkQcMpUNFcM7tF1M5tAHmVwABzLx5QKUU8CFo69NP3Rg&oe=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&_nc_cat=106&ccb=1-7&_nc_sid=c53f8f&_nc_ohc=DBNo3Z6ft4AQ7kNvwESjMWN&_nc_oc=AdnZGvglABgVlSJ6UIGIbWgFeUL2LnoBSuMbBvti20zRjb_UUDRzhGxAZ0ip3ye1EQI&_nc_zt=14&_nc_ht=scontent-sjc3-1.xx&_nc_gid=49D7P4N6a4mVqUW8WdOxag&oh=00_AfMEXcKVf3KYJpFehTTToe8MXUZslTHE9P-xS2eyVCeGKA&oe=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

Response result

Response structure

Inferred from examples
  • credits_chargedinteger
  • credits_remaininginteger
  • cursorstring
  • searchResultsobject[]
    • ad_archive_idstring
    • end_dateinteger
    • end_date_stringstring
    • is_aaa_eligibleboolean
    • is_activeboolean
    • page_idstring
    • page_namestring
    • political_countriesunknown[]
    • publisher_platformstring[]
    • reach_estimatenull
    • snapshotobject
      • additional_infonull
      • bodyobject
        • textstring
      • branded_contentnull
      • brazil_tax_idnull
      • bylinenull
      • captionstring
      • cardsunknown[]
      • country_iso_codenull
      • cta_textstring
      • cta_typestring
      • current_page_namestring
      • disclaimer_labelnull
      • display_formatstring
      • ec_certificatesunknown[]
      • eventnull
      • extra_imagesunknown[]
      • extra_linksunknown[]
      • extra_textsunknown[]
      • extra_videosunknown[]
      • imagesobject[]
        • image_cropsunknown[]
        • original_image_urlstring
        • resized_image_urlstring
        • watermarked_resized_image_urlstring
      • is_resharedboolean
      • link_descriptionstring
      • link_urlstring
      • page_categoriesstring[]
      • page_entity_typestring
      • page_idstring
      • page_is_deletedboolean
      • page_is_profile_pageboolean
      • page_like_countinteger
      • page_namestring
      • page_profile_picture_urlstring
      • page_profile_uristring
      • root_reshared_postnull
      • titlestring
      • videosunknown[]
    • spendnull
    • start_dateinteger
    • start_date_stringstring
    • total_active_timenull
    • urlstring
  • searchResultsCountinteger
  • successboolean

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Facebook ad library search with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.