> Part of the Rephonic API reference. The full list of pages is at https://rephonic.com/llms.txt.

# Search Filters

> Filter podcast and episode searches by listeners, category, language or audience.

[Search podcasts](https://rephonic.com/developers/docs/1.1/search-podcasts.md) and [search episodes](https://rephonic.com/developers/docs/1.1/search-episodes.md) take a `filters` parameter that narrows the results, e.g. to podcasts with at least 5,000 listeners that are still publishing:

```
/api/search/podcasts/?filters=listeners:gte:5000,active:is:true
```

You can use filters with or without a `query`. In episode search, the filters apply to the podcast each episode belongs to.

## How Filters Are Written

A filter is a field, an operator and a value, separated by colons.

```
listeners:gte:5000
```

These are the operators:

| Operator | Meaning                   | Example                   |
| -------- | ------------------------- | ------------------------- |
| `gte`    | Greater than or equal to  | `listeners:gte:5000`      |
| `lte`    | Less than or equal to     | `listeners:lte:250000`    |
| `is`     | Is `true` or `false`      | `active:is:true`          |
| `any`    | Matches any of the values | `languages:any:en-es`     |
| `in`     | Matches all of the values | `categories:in:1482-1406` |

Put a hyphen between values, as in `en-es`, and a comma between filters. You can use up to 20 filters. A podcast has to match every filter to be in the results.

To set a range, use the same field twice, once with `gte` and once with `lte`, as in `founded:gte:1517270400,founded:lte:1589932800`.

### Special Characters

Put a backslash before any `-`, `,`, `:` or `\` inside a value, so it isn't read as a separator. For example, to match shows sponsored by Harley-Davidson, Apple or IBM:

```
sponsors:any:Harley\-Davidson-Apple-IBM
```

URL-encode the whole `filters` value when you send it.

## All Filters

| Filter                  | Operators    | Values                                                                                          |
| ----------------------- | ------------ | ----------------------------------------------------------------------------------------------- |
| `listeners`             | `gte`, `lte` | A number of listeners per episode                                                               |
| `ratings`               | `gte`, `lte` | A number of ratings                                                                             |
| `social_reach`          | `gte`, `lte` | A number of followers                                                                           |
| `engagement`            | `gte`, `lte` | A score from 0 to 100                                                                           |
| `episodes`              | `gte`, `lte` | A number of episodes                                                                            |
| `founded`               | `gte`, `lte` | A Unix timestamp                                                                                |
| `household_income`      | `gte`, `lte` | US dollars a year                                                                               |
| `categories`            | `in`, `any`  | Category IDs                                                                                    |
| `locations`             | `any`        | Country IDs                                                                                     |
| `languages`             | `any`        | Language IDs                                                                                    |
| `sponsors`              | `any`        | Sponsor names                                                                                   |
| `professions`           | `in`, `any`  | Profession names                                                                                |
| `interests`             | `in`, `any`  | Interest names                                                                                  |
| `genders`               | `any`        | `verymale`, `male`, `neutral`, `female`, `veryfemale`                                           |
| `frequencies`           | `any`        | `infrequently`, `monthly`, `twicemonthly`, `weekly`, `twiceweekly`, `daily`                     |
| `political_leanings`    | `any`        | `left`, `center_left`, `center`, `center_right`, `right`                                        |
| `age_groups`            | `in`, `any`  | `under_18`, `18_24`, `25_34`, `35_44`, `45_54`, `55_64`, `65_plus`                              |
| `relationship_statuses` | `any`        | `single`, `relationship`, `married`                                                             |
| `education_levels`      | `in`, `any`  | `less_than_high_school`, `high_school`, `bachelors_degree`, `masters_degree`, `advanced_degree` |
| `active`                | `is`         | `true` or `false`                                                                               |
| `sponsored`             | `is`         | `true` or `false`                                                                               |
| `guests`                | `is`         | `true` or `false`                                                                               |
| `youtube`               | `is`         | `true` or `false`                                                                               |
| `cross_promos`          | `is`         | `true` or `false`                                                                               |
| `branded`               | `is`         | `true` or `false`                                                                               |
| `parents`               | `is`         | `true` or `false`                                                                               |

## Audience Size and Reach

### Listeners

Our estimate of listeners per episode, the same number as `downloads_per_episode` in the podcast object.

- `listeners:gte:5000`: Shows with at least 5,000 listeners per episode.
- `listeners:lte:250000`: Shows with at most 250,000.

### Ratings

The number of star ratings across Apple Podcasts, Spotify and Podchaser, the same as `num_ratings` in the podcast object.

- `ratings:gte:500`: Shows rated at least 500 times.
- `ratings:lte:10`: Shows rated 10 times or fewer.

### Social Reach

The total followers across the podcast's social media accounts, plus its Patreon patrons.

- `social_reach:gte:10000`: Shows with at least 10,000 followers.

### Engagement

The `engagement` score in the podcast object, from 0 to 100.

- `engagement:gte:75`: Shows with a score of 75 or more.
- `engagement:lte:45`: Shows with a score of 45 or less.

## The Podcast

### Categories

Category IDs come from [categories](https://rephonic.com/developers/docs/1.1/categories.md).

- `categories:in:1482`: Shows in Arts / Books.
- `categories:in:1482-1406`: Shows in both Arts / Books and Arts / Visual Arts.
- `categories:any:1482-1406`: Shows in either of them.

### Languages

Language IDs come from [languages](https://rephonic.com/developers/docs/1.1/languages.md).

- `languages:any:es`: Spanish-language shows.
- `languages:any:en-es-fr`: Shows in English, Spanish or French.

### Active

- `active:is:true`: Shows that published an episode in the last 60 days.

### Publishing Frequency

- `frequencies:any:daily`: Shows that publish at least every three days on average.
- `frequencies:any:weekly-twiceweekly`: Shows that publish once or twice a week.

### Episodes

- `episodes:gte:500`: Shows with at least 500 episodes.
- `episodes:lte:10`: Shows with 10 or fewer.

### Founded

When we think the show started, as a Unix timestamp in seconds.

- `founded:gte:1517270400`: Shows founded on or after 30 January 2018.

### YouTube

- `youtube:is:true`: Shows with a YouTube channel.

### Branded

- `branded:is:true`: Podcasts a company makes to promote itself.

### Political Leaning

- `political_leanings:any:left-center_left`: Shows that lean left or centre-left.

## Guests, Sponsors and Promotions

### Guests

- `guests:is:true`: Shows that we think have guests on some or all episodes.

### Sponsored

- `sponsored:is:true`: Shows that often have sponsors.

### Sponsors

Shows that a brand sponsored in at least one episode in the past year. Get sponsor names from [sponsors](https://rephonic.com/developers/docs/1.1/sponsors.md).

- `sponsors:any:IBM-Apple-Microsoft`: Shows that IBM, Apple or Microsoft sponsored.

### Cross-Promotions

- `cross_promos:is:true`: Shows that often promote other podcasts in their episodes.

## The Audience

These are all our estimates of who listens, based on public data.

### Audience Location

Country IDs come from [countries](https://rephonic.com/developers/docs/1.1/countries.md).

- `locations:any:us`: Shows whose main audience is in the United States.
- `locations:any:it-fr`: Shows whose main audience is in Italy or France.

### Gender

- `genders:any:veryfemale`: Shows with a strongly female audience.
- `genders:any:neutral-female`: Shows with a balanced or female-leaning audience.

### Age Groups

- `age_groups:any:18_24-25_34`: Shows with listeners aged 18 to 24 or 25 to 34.
- `age_groups:in:18_24-25_34`: Shows with listeners in both groups.

### Household Income

We estimate the listeners' household income as a range, in US dollars a year. `gte` compares the bottom of the range, and `lte` the top.

- `household_income:gte:75000`: Shows whose range starts at $75,000 or more.
- `household_income:lte:150000`: Shows whose range ends at $150,000 or less.

### Education Level

- `education_levels:any:bachelors_degree-masters_degree-advanced_degree`: Shows with listeners who have a degree.
- `education_levels:in:bachelors_degree-masters_degree`: Shows with listeners in both groups.

### Relationship Status

- `relationship_statuses:any:single`: Shows whose listeners include single people.

### Parents

- `parents:is:true`: Shows where `parents.probability` in [demographics](https://rephonic.com/developers/docs/1.1/podcast-demographics.md) is 0.6 or more.

### Professions

Get profession names from [professions](https://rephonic.com/developers/docs/1.1/professions.md).

- `professions:any:Doctor-Lawyer`: Shows with listeners who are doctors or lawyers.
- `professions:in:Doctor-Lawyer`: Shows with doctors and lawyers among their listeners.

### Interests

Get interest names from [interests](https://rephonic.com/developers/docs/1.1/interests.md).

- `interests:any:Cars-Technology`: Shows with listeners interested in cars or technology.
- `interests:in:Cars-Technology`: Shows with listeners interested in both.
