> For the complete documentation index, see [llms.txt](https://docs.petio.tv/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.petio.tv/configuration/filters.md).

# Filters

Filters are way you can control how your requests get handled. Think of it like another layer of automation on top of Radarr/Sonarr.&#x20;

Let's say you like to separate your media based on age rating, either you have kids or know someone with kids. Filters allow you to be granular about where requested "kid content" gets placed including Radarr/Sonarr server (if you have multiple ones configured), path, and/or tag. You can use the available operands `AND`/`OR`to determine how many things must be evaluated true before Petio sends the request to Sonarr/Radarr with the specified paths, profile, and/or tags.

Filters can be used with age ratings, genre, language, and keywords! We hope to revamp filters in the future so stay tuned!&#x20;

For those of you using `AND`/`OR` operands for the first time I'll provide a quick explanation of each. Any one of the `OR` conditions can trigger a match whereas an `AND` operator must always be true for the entire filter to match. Most of the time, you want to use `OR` instead of `AND` otherwise, you'll stare at your screen wondering why it isn't working. If you have questions how to configure filters, please stop by our [Discord](https://discord.gg/bseGmrUd3N) and ask some questions!

### Age Ratings Filter Example

![](/files/-MWqkqZqiZNHHjOwHg06)

![](/files/-MWqkpq_k580pE6tqi46)

### Anime Filter Example

![](/files/-MWtLMBbaBq5KIR-IUuu)

### Sonarr Language Filter Example

* Setup a language profile in sonarr.

![](/files/-MWtNN_3qEkzEp20j0wm)

* Add the language filter in Petio.

![](/files/-MWtNXUeOlqw1eE6pb9H)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.petio.tv/configuration/filters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
