---
title: "Get available filter options for ad search"
method: GET
path: "/facebook-ad-library/filters"
tags: ["Facebook Ad Library API"]
---

# Get available filter options for ad search

`GET /facebook-ad-library/filters`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/facebook-ad-library/filters`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `query` string, nullable
- `country` string, nullable
- `ad_type` 'ALL' | 'POLITICAL_AND_ISSUE_ADS' | 'CREDIT_ADS' | 'FINANCIAL_PRODUCTS_AND_SERVICES_ADS' | 'EMPLOYMENT_ADS' | 'HOUSING_ADS' | 'UNCATEGORIZED_ADS' | 'null', nullable

## Response `200`

- object
  - `filters` object, required
  - `populated_facet_lists` string[], required
  - `empty_facet_lists` string[], required
  - `response_time_ms` integer, nullable, required

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `422`: One of the filter values is outside the published set. No upstream request is made and no credits are charged.
- `503`: The public ad library could not be reached. The request is not billed.

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/31329f110e7c?raw)
