# Search Meta advertisers

Searches the Meta Ad Library for advertiser pages matching required `q`. Returns page IDs and verification details to use with the page endpoints. Optional `country` and `ad_type` narrow results; `raw` returns the unprocessed payload.

- Platform: Meta Ads
- Request: `GET https://api.toolzerhub.com/v1/meta/search-pages`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/meta-ads/search-pages

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `q` | query | yes | string | Brand, company, or advertiser page search query. |
| `country` | query | no | string | ISO 3166-1 alpha-2 country code. Examples: IN, US, GB, DE. |
| `ad_type` | query | no | enum: ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, EMPLOYMENT_ADS, CREDIT_ADS | Ad category. ALL includes all ad types; other values narrow results to the selected category. |
| `raw` | query | no | boolean | Set to true to return the unprocessed Ad Library payload instead of the normalized response. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/meta/search-pages?q=<q>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
