hermosodocs

search_meta_ads

Search Meta ads

Area: structured ad-spy · Ad spy & research. Generated from the running MCP server, like the rest of the tool reference.

Description

Structured Meta (Facebook/Instagram) Ad Library pull — use when you know exactly WHAT to fetch: a keyword (query) OR one advertiser (companyName / pageId). Returns compact JSON {page_name, body, cta, link, dates, media} per ad. For open-ended research across platforms, use research_ads instead. Spends credits on each ad-library read it makes: one for a keyword; for a brand name, the page lookup and its ads. An advertiser search returns only that advertiser's ads, or none plus similarly named pages to retry by pageId.

Parameters

ParameterTypeDescription
querystringkeyword search across ALL advertisers (use INSTEAD of companyName/pageId)
companyNamestringone advertiser’s ads by brand name — resolved to the brand’s own page only on evidence (its Instagram, its domain, or ads that land on its domain); pass domain too for the best match
domainstringthe advertiser’s website, e.g. buffer.com — with companyName, used to confirm which Meta page is really theirs
pageIdstringone advertiser’s ads by Facebook page id (most precise)
countrystring2-letter code or 'ALL' (default ALL)
status"ACTIVE" | "INACTIVE" | "ALL"ACTIVE = currently running; default ALL (includes proven past winners)
mediaType"ALL" | "IMAGE" | "VIDEO" | "MEME" | "IMAGE_AND_MEME" | "NONE"filter by creative type (default ALL)
limitintegermax ads returned (1–25, default 8)
get_costbooleantrue: return the price only; nothing runs or bills
expected_creditsnumberthe get_cost price; refused unbilled if the live price differs
idempotency_keystringchosen once, resent unchanged on retries: the same key never buys twice

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/search_meta_ads.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_meta_ads","arguments":{}}}

CLI

hermoso call search_meta_ads --json '{}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 62 Ad spy & research tools · tools.json