--- url: https://docs.tenderapi.eu/rate-limits.md description: >- Per-minute rate limits, monthly quotas, rate limit headers and 429 responses of the TenderAPI REST API and MCP server. --- # Rate Limits Every plan has two limits, counted per account across all of your API keys: * **Requests per minute.** The count resets at the start of every minute. * **Requests per month.** The quota resets on the 1st of every month at 00:00 UTC. | Plan | Requests per minute | Requests per month | |---|---|---| | Free | 10 | 1,000 | | Starter | 100 | 50,000 | | Business | 300 | 150,000 | See [pricing](https://tenderapi.eu/en/pricing/) for plan details. Your current usage is on the [Usage](https://dash.tenderapi.eu/usage) page of the dashboard. ## What counts * Every authenticated `/api/v1` request counts, including ones that return a `4xx` error. * Requests that fail on our side with a `5xx` error don't count. * Requests rejected with `401` or `429` don't count. * On the [MCP server](/mcp-server), only tool calls count. Connecting and listing tools is free. ## Headers Every `/api/v1` response includes your current limits: | Header | Description | |---|---| | `X-RateLimit-Limit` | Requests allowed per minute. | | `X-RateLimit-Remaining` | Requests left in the current minute. | | `X-RateLimit-Reset` | When the current minute window ends, as a Unix timestamp in seconds. | | `X-Quota-Limit` | Requests allowed per month. | | `X-Quota-Remaining` | Requests left this month. | ## When you hit a limit The API responds with `429 Too Many Requests` and a `Retry-After` header with the number of seconds to wait. | `type` | Meaning | |---|---| | `RATE_LIMITED` | Too many requests this minute. Wait `Retry-After` seconds and retry. | | `QUOTA_EXCEEDED` | Monthly quota used up. It resets on the 1st, or [upgrade your plan](https://dash.tenderapi.eu/billing). | ```json { "type": "RATE_LIMITED", "message": "Rate limit exceeded. Retry in 12 seconds." } ``` ::: code-group ```python [Python] import os import time import requests def search(body): while True: res = requests.post( "https://api.tenderapi.eu/api/v1/tenders/search", headers={"Authorization": f"Bearer {os.environ['TENDERAPI_KEY']}"}, json=body, ) if res.status_code == 429 and res.json()["type"] == "RATE_LIMITED": time.sleep(int(res.headers["Retry-After"])) continue return res ``` ```ts [TypeScript] async function search(body: unknown): Promise { while (true) { const res = await fetch("https://api.tenderapi.eu/api/v1/tenders/search", { method: "POST", headers: { Authorization: `Bearer ${process.env.TENDERAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify(body), }); if (res.status === 429 && (await res.clone().json()).type === "RATE_LIMITED") { const seconds = Number(res.headers.get("Retry-After")); await new Promise((resolve) => setTimeout(resolve, seconds * 1000)); continue; } return res; } } ``` ::: ## Tips * **Don't retry `QUOTA_EXCEEDED` in a loop.** It won't clear until the 1st of next month or an upgrade. * **Use larger pages.** One request with `limit=100` costs the same as one with `limit=10`. See [Pagination](/pagination).