Skip to main content
Glama

OpenAny

Facebook Ad Library — Search

scrapecreators_get_v1_facebook_adlibrary_search_ads

Searches the Meta Ad Library by keyword and returns matching ads. Supports filtering by language with a 2-letter code such as EN or ES. Each result includes ad_archive_id, page_name, is_active, publisher_platform, and a snapshot with body text, images, videos, and cta_text. Both GET and POST are supported. Use GET for normal requests. If the cursor becomes too large after extensive pagination, use POST and send the same parameters in the JSON body. Uses the caller's OpenAny gateway credentials. Charges and authorization are determined by the gateway.

Input Schema

NameRequiredDescriptionDefault
trimNoSet to true for a trimmed down version of the response
queryYesKeyword to search for
cursorNoCursor to paginate through results
statusNoStatus of the ad. Defaults to ACTIVE.
ad_typeNoSearch for all ads or only political and issue ads
countryNoThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.
sort_byNoSort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.
end_dateNoImpressions end date. Needs to be in YYYY-MM-DD format.
languageNoLanguage to filter ads on. Needs to be a 2 letter language code, such as EN, ES, or FR.
media_typeNoMedia type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.
start_dateNoImpressions start date. Needs to be in YYYY-MM-DD format.
search_typeNoIf you want to search by exact phrase or not

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.