# List Meta ad filter options

Returns the languages, advertiser pages, and regions that match required `query_string` in the Meta Ad Library. Optional `ad_type`, `country`, and `search_type` set the context; `raw` returns the unprocessed payload.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `ad_type` | query | no | enum: ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, EMPLOYMENT_ADS, CREDIT_ADS | Ad category context for filter discovery. |
| `country` | query | no | string | ISO 3166-1 alpha-2 country code. Examples: IN, US, GB, DE. |
| `search_type` | query | no | enum: keyword_unordered, keyword_exact_phrase | Query match mode. keyword_unordered matches all words in any order; keyword_exact_phrase matches the exact phrase. |
| `query_string` | query | yes | string | Search query used to return context-specific filter options. |
| `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/filter-options?query_string=<query_string>" \
  -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.
