Search advertisers
search_pagesFind advertisers (Facebook/Instagram pages) that ran ads matching a keyword or brand name. Use it to get the page_id needed by get_page and get_page_ads.
Cost: 1 credit per call, whatever the number of advertisers returned (none found too);
an error costs 0.
Args:
query: Brand name or keyword.
country: ISO-3166 alpha-2 country or 'ALL' (default).
limit: 1-10 (default 10).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| country | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |