# Rate limits

> There is no monthly quota. Per-second limits per API key, and per-address limits on bad keys, protect the service.

| Limit                               | Value                                          |
| ----------------------------------- | ---------------------------------------------- |
| Requests per API key                | 100 per second                      |
| Missing or invalid keys per address | 30 per 60 seconds |
| Monthly quota                       | None                                           |

Every `/v1/check` answer carries the IETF rate-limit headers:

```http
RateLimit-Policy: "shield";q=100;w=1
RateLimit: "shield";r=99;t=1
```

`q` is the limit, `w` the window in seconds, `r` the requests left and `t` the seconds until the window resets. Over the limit the API answers `429 rate_limited` with `Retry-After` in seconds. Too many requests with a missing or invalid key from one address are answered the same way, under the policy `"bad-key";q=30;w=60`, until the window resets.

Limits are counted per key, so two services with a key each do not share an allowance. On a `429`, let the sign-up through and retry later; see [Errors](https://heimdal.codebrewerz.com/docs/reference/errors/).
