# Limits

> Two limits protect the service: a monthly quota per plan and a per-minute limit per key. On top of that comes the duty to credit OpenStreetMap.

Source: https://findort.ch/en/docs/limits/

## Monthly quota

| Plan | Price per month | Requests per month | Extra requests per 100,000 |
|---|---|---|---|
| Free | CHF 0.– | 50,000 | none |
| Starter | CHF 19.– | 1,000,000 | CHF 2.– |
| Pro | CHF 79.– | 5,000,000 | CHF 1.50 |
| Business | CHF 249.– | 25,000,000 | CHF 1.– |

Every call to `/v1/search` and `/v1/reverse` counts as one request. The dashboard shows where you stand. When the quota is used up, it depends on the plan:

- **Free:** the API answers with `429 quota_exceeded` until the next month.
- **Starter, Pro and Business:** by default the API also stops at the quota. If you turn on extra requests in the dashboard under Billing, it keeps answering until your budget in CHF per month is used up. Extra requests cost CHF 2.– (Starter), CHF 1.50 (Pro) or CHF 1.– (Business) per 100,000 and are billed at month end. After that the API answers with `429 quota_exceeded`.

You choose when we email you: at 50, 80, 90, 100, 120, 150, 200 or 300% of the quota (default 80 and 100%). When the budget is used up, you always get an email. If you move to a bigger plan, the new quota applies right away. Prices and plans: [pricing](https://findort.ch/en/pricing/).

**Rule of thumb:** an address field with autocomplete needs about five requests until someone picks the right address. 50,000 requests in the free plan are already enough for about 10,000 completed forms a month.

## Per-minute limit

Every key also has a per-minute limit. It protects you from runaway loops and us from abuse. Every response shows it:

| Header | Meaning |
|---|---|
| `X-RateLimit-Limit` | requests per minute for this key |
| `X-RateLimit-Remaining` | how many you have left right now |
| `Retry-After` | with `429 rate_limited`: seconds until the next try |

The limit refills continuously. If you exceed it briefly, you usually wait just a second or two. Normal typing in a search field does not come close.

## Per-request limits

| What | Limit |
|---|---|
| Length of `q` | 250 characters |
| `limit` | 1 to 20 results |
| `radius` for reverse | 0.01 to 50 km |
| Search index response time | 8 seconds, then `502 upstream_error` |
| Methods | `GET` (and `OPTIONS` for CORS) |

## Caching

- Findort remembers answers to identical requests. While typing, many users hit the same beginnings like "Bahnh", which keeps answers fast.
- Every response carries `Cache-Control: private, max-age=60`. Browsers may reuse it for a minute.
- You may store results in your own application, for example the coordinates of a customer address. That way you do not look up the same address on every page view.

## Fair use

Findort is made for address fields, search fields and geocoding your own data. Not allowed:

- querying the search index systematically to rebuild or resell it,
- sharing keys with others or building an API on top of Findort that you pass on to third parties,
- getting around the limits, for example with many Free accounts.


## Attribution

The data comes from [OpenStreetMap](https://www.openstreetmap.org/copyright) and is licensed under the Open Database License (ODbL). The licence requires a visible notice wherever you show results:

```html
```

Swiss and Liechtenstein addresses come from the official building address register by swisstopo. Use is free, the source must be named. When `attribution` mentions swisstopo, extend the notice:

```html
```

- The [Web Component](https://findort.ch/en/docs/web-component/) already shows the notice in its suggestion list.
- Every API response includes it in the `attribution` field.
- If you show results in your own interface or on a map, put the notice next to them or in the footer, clearly legible.
