Facebook Ad Library Search Companies
facebook_ad_library_search_companiesSearch Meta Ad Library by brand name to find matching company pages and get the pageId required for company ads.
Instructions
Find Meta Ad Library pages by brand — name-matched, pageId for company-ads (not profileId). Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).
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": {
"q": "<q>"
},
"name": "facebook_ad_library_search_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Company or brand name to search for (min 2 characters). Name-matched — off-brand pages are dropped. | |
| cache | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. | |
| limit | No | Max items to return (default 20, max 200). Flat 2 credits per call. | |
| country | No | Two-letter ISO country code. Default US. Non-ISO codes are a definitive 400 INVALID_COUNTRY. |