---
title: "Facebook Ad Library API: Filters | Perceptlayer"
description: "Filters from Facebook Ad Library as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/facebook-ad-library/filters
---

[APIs](https://perceptlayer.com/apis) / [Facebook Ad Library](https://perceptlayer.com/apis/facebook-ad-library) / Filters

# Facebook Ad Library: Filters

Filters from Facebook Ad Library as JSON. 1 credit per successful call.

GET `/v1/facebook-ad-library/filters` Needs terms

Note 

This endpoint needs the [restricted-endpoint terms](https://perceptlayer.com/legal/restricted-endpoints), which you can accept in your dashboard.

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 500 characters |
| `country` | string | Optional | Up to 2 characters |
| `ad_type` | string | Optional | ALL, POLITICAL\_AND\_ISSUE\_ADS, CREDIT\_ADS, FINANCIAL\_PRODUCTS\_AND\_SERVICES\_ADS, EMPLOYMENT\_ADS, HOUSING\_ADS, UNCATEGORIZED\_ADS |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/facebook-ad-library/filters?country=DE" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/facebook-ad-library?try=filters#playground) with your own parameters. 1 credit per successful call; failed calls are free.
