# Query Parameters: Filters and Options

A FastAPI function parameter that isn't in the route's path is read from the query string, so a default of None makes an optional filter, a bool reads yes-or-no values such as true and 0, and several filters combine in one request.

![Cheat sheet: Query Parameters: Filters and Options](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a3b99955f13442358d6a89bcffe22104.webp)

- Category: FastAPI
- Level: Apprentice
- Tags: 422 Unprocessable Content, fastapi, Query Parameter (fastapi), Query String, rest-api, Type Hints in FastAPI
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-query-parameters-cheat-sheet
