> For the complete documentation index, see [llms.txt](https://docs.madjik.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.madjik.io/getting-started/rate-limits.md).

# Rate Limits

## Limits by Plan

| Plan       | Requests/min | Requests/day | Historical Data |
| ---------- | ------------ | ------------ | --------------- |
| Free       | 10           | 1,000        | 7 days          |
| Pro        | 60           | 50,000       | 90 days         |
| Enterprise | 300          | Unlimited    | Unlimited       |

## Rate Limit Headers

Every response includes rate limit information:

```
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45
X-RateLimit-Reset: 1706443200
```

## Handling Rate Limits

When you exceed your rate limit, you'll receive a `429` response:

```json
{
  "error": "rate_limit_exceeded",
  "message": "Too many requests. Please wait before retrying.",
  "retry_after": 30
}
```

## Best Practices

1. **Cache responses** - Many metrics update every few minutes
2. **Use webhooks** - For real-time alerts instead of polling
3. **Batch requests** - Request multiple metrics in one call
4. **Implement backoff** - Exponential backoff on 429 errors


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.madjik.io/getting-started/rate-limits.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
