# fastapi.exceptions.RequestValidationError: field required (type=value_error.missing) for query parameter 'page'

- **ID:** `python/fastapi-missing-query-parameter`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A required query parameter is missing from the request URL.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Include the query parameter in the request URL.** (95% success)
   ```
   GET /items?page=1
   ```
2. **Make the query parameter optional with a default value.** (90% success)
   ```
   async def read_items(page: int = 1):
   ```

## Dead Ends

- **Adding the parameter to the path instead of query.** — Path parameters and query parameters are different; mixing them causes 404. (70% fail)
- **Setting a default value but not making it optional in the function signature.** — If the parameter is required in the function, a default may not be used. (60% fail)
