# Hermoso: search_meta_ads: Search Meta ads · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/research/search_meta_ads/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad spy & research](https://hermoso.ai/docs/reference/research/) / search_meta_ads

# `search_meta_ads`

Search Meta ads

Area: structured ad-spy · [Ad spy & research](https://hermoso.ai/docs/reference/research/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

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](https://hermoso.ai/docs/credits/).

## Related tools

- [research_ads](https://hermoso.ai/docs/reference/research/research_ads/) Research ads
- [search_google_ads](https://hermoso.ai/docs/reference/research/search_google_ads/) Search Google ads
- [search_linkedin_ads](https://hermoso.ai/docs/reference/research/search_linkedin_ads/) Search LinkedIn ads

[All 62 Ad spy & research tools](https://hermoso.ai/docs/reference/research/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
