# Pagerless for FastAPI and Starlette

> One ASGI middleware for FastAPI, Starlette, Django on ASGI or any ASGI app.

URL: https://pagerless.dev/integrations/fastapi
Updated: 2026-10-22

## Set up

```bash
pip install pagerless
export PAGERLESS_KEY=pl_live_...
```

```python
from pagerless.asgi import PagerlessMiddleware

app.add_middleware(PagerlessMiddleware)
```

## What it catches

- Exceptions that escape the app.
- Request rate, errors and latency per route.

## Questions

### Does it slow requests?

No. It counts in memory and sends in the background; it is standard library only.
