search_meta_ads
Search Meta ads
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
| Parameter | Type | Description |
|---|---|---|
query | string | keyword search across ALL advertisers (use INSTEAD of companyName/pageId) |
companyName | string | one 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 |
domain | string | the advertiser’s website, e.g. buffer.com — with companyName, used to confirm which Meta page is really theirs |
pageId | string | one advertiser’s ads by Facebook page id (most precise) |
country | string | 2-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) |
limit | integer | max ads returned (1–25, default 8) |
get_cost | boolean | true: return the price only; nothing runs or bills |
expected_credits | number | the get_cost price; refused unbilled if the live price differs |
idempotency_key | string | chosen 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.
Related tools
research_adsResearch adssearch_google_adsSearch Google adssearch_linkedin_adsSearch LinkedIn ads