# Rate limits, monthly quotas and plan tiers

> Three different limits can stop a request: the endpoint's plan tier, the per-minute rate and the monthly quota. They fail with different codes and need different handling.

Source: https://astronode.dev/reference/rate-limits-and-quotas · Updated: 2026-12-01

Limits are checked in a fixed order after authentication: first whether your plan includes the endpoint (`403 PLAN_REQUIRED`), then the per-minute rate for the key (`429 RATE_LIMITED`), then the monthly quota for the account (`429 QUOTA_EXCEEDED`).

The per-minute window is 60 seconds and applies to each API key. The monthly quota is counted across all of an account's keys from the start of the calendar month in UTC, and only billable calls count toward it: responses with a status below 400.

## Limits per plan

| Plan | Requests / minute | Requests / month |
| --- | --- | --- |
| `free` | 60 | 1000 |
| `hobby` | 180 | 10000 |
| `starter` | 600 | 50000 |
| `pro` | 6000 | 250000 |

- **Plan** - the id that appears in `PLAN_REQUIRED` errors as `current_plan`. Prices are on [pricing](https://astronode.dev/pricing).

## Endpoints per tier

Each of the 109 endpoints in the API's catalog has a minimum plan. A plan unlocks its own tier and every tier below it.

| Minimum plan | Endpoints |
| --- | --- |
| `free` | 25 |
| `hobby` | 53 |
| `starter` | 18 |
| `pro` | 13 |

## Endpoints that need a paid plan

| Endpoint | Minimum plan |
| --- | --- |
| `GET /v1/horoscope/love/:sign` | `hobby` |
| `POST /v1/ashtakavarga` | `hobby` |
| `POST /v1/chandrashtama-periods` | `hobby` |
| `POST /v1/charts/varga` | `hobby` |
| `POST /v1/compatibility` | `hobby` |
| `POST /v1/compatibility/dashakoot` | `hobby` |
| `POST /v1/compatibility/porutham/nakshatra` | `hobby` |
| `POST /v1/compatibility/porutham/thirumana` | `hobby` |
| `POST /v1/dasha/char` | `hobby` |
| `POST /v1/dasha/lookup` | `hobby` |
| `POST /v1/dasha/yogini` | `hobby` |
| `POST /v1/dosha/kaal-sarp` | `hobby` |
| `POST /v1/dosha/papa-samyam` | `hobby` |
| `POST /v1/dosha/pitra` | `hobby` |
| `POST /v1/dosha/sade-sati` | `hobby` |
| `POST /v1/gowri-nalla-neram` | `hobby` |
| `POST /v1/horoscope/nakshatra` | `hobby` |
| `POST /v1/kp/chart` | `hobby` |
| `POST /v1/kp/house-cusps` | `hobby` |
| `POST /v1/kp/house-significator` | `hobby` |
| `POST /v1/kp/planet-position` | `hobby` |
| `POST /v1/kp/planet-significator` | `hobby` |
| `POST /v1/kp/transit` | `hobby` |
| `POST /v1/lal-kitab/horoscope` | `hobby` |
| `POST /v1/lal-kitab/houses` | `hobby` |
| `POST /v1/lal-kitab/planets` | `hobby` |
| `POST /v1/muhurta/auspicious` | `hobby` |
| `POST /v1/muhurta/choghadiya` | `hobby` |
| `POST /v1/muhurta/hora` | `hobby` |
| `POST /v1/muhurta/inauspicious` | `hobby` |
| `POST /v1/numerology/chaldean` | `hobby` |
| `POST /v1/numerology/pythagorean/cycle` | `hobby` |
| `POST /v1/sarvashtakavarga` | `hobby` |
| `POST /v1/strength/bala` | `hobby` |
| `POST /v1/strength/bhav-bala` | `hobby` |
| `POST /v1/strength/chandra-bala` | `hobby` |
| `POST /v1/strength/tara-bala` | `hobby` |
| `POST /v1/sudarshana-chakra` | `hobby` |
| `POST /v1/transits/events` | `hobby` |
| `POST /v1/upagraha-positions` | `hobby` |
| `POST /v1/varshphal/mudda-dasha` | `hobby` |
| `POST /v1/varshphal/muntha` | `hobby` |
| `POST /v1/varshphal/year-chart` | `hobby` |
| `POST /v1/varshphal/yoga` | `hobby` |
| `POST /v1/western/lunar-metrics` | `hobby` |
| `POST /v1/western/natal/aspects` | `hobby` |
| `POST /v1/western/natal/chart` | `hobby` |
| `POST /v1/western/natal/houses` | `hobby` |
| `POST /v1/western/natal/planets` | `hobby` |
| `POST /v1/western/transit/aspects` | `hobby` |
| `POST /v1/western/transit/chart` | `hobby` |
| `POST /v1/western/transit/planets` | `hobby` |
| `POST /v1/yogas` | `hobby` |
| `GET /v1/reports/:id` | `starter` |
| `POST /v1/compatibility/batch` | `starter` |
| `POST /v1/nadi/amsha` | `starter` |
| `POST /v1/nadi/dhruva` | `starter` |
| `POST /v1/nadi/lens` | `starter` |
| `POST /v1/nadi/timing` | `starter` |
| `POST /v1/numerology/chaldean/report` | `starter` |
| `POST /v1/numerology/pythagorean/report` | `starter` |
| `POST /v1/numerology/report` | `starter` |
| `POST /v1/reports/compatibility` | `starter` |
| `POST /v1/reports/varshphal-multi-year` | `starter` |
| `POST /v1/varshphal/harsha-bala` | `starter` |
| `POST /v1/varshphal/month-chart` | `starter` |
| `POST /v1/varshphal/panchavargeeya-bala` | `starter` |
| `POST /v1/varshphal/saham` | `starter` |
| `POST /v1/western/progression/aspects` | `starter` |
| `POST /v1/western/progression/chart` | `starter` |
| `POST /v1/western/progression/planets` | `starter` |
| `GET /v1/western/chinese/forecast/:sign/:year` | `pro` |
| `POST /v1/kp/horary` | `pro` |
| `POST /v1/lal-kitab/debts` | `pro` |
| `POST /v1/lal-kitab/remedies` | `pro` |
| `POST /v1/numerology/compatibility` | `pro` |
| `POST /v1/western/composite/aspects` | `pro` |
| `POST /v1/western/composite/chart` | `pro` |
| `POST /v1/western/solar-return/aspects` | `pro` |
| `POST /v1/western/solar-return/chart` | `pro` |
| `POST /v1/western/solar-return/houses` | `pro` |
| `POST /v1/western/solar-return/planets` | `pro` |
| `POST /v1/western/synastry/aspects` | `pro` |
| `POST /v1/western/synastry/chart` | `pro` |

## Things to watch

- Successful responses and limiter 429s carry `x-ratelimit-limit`, `x-ratelimit-remaining` and `x-ratelimit-reset`. Throttle on `remaining` before you hit zero.
- `x-ratelimit-reset` is the Unix second at which the per-minute window next frees a slot - the oldest call in the window plus 60 seconds. On a key's first call it is about now + 60.
- Every limiter 429 also carries a `Retry-After` header in seconds. For `RATE_LIMITED` it equals `error.details.retry_after_seconds`; for `QUOTA_EXCEEDED` it is the time until the next UTC month begins - often weeks, so do not sleep on it blindly.
- `QUOTA_EXCEEDED` is also a 429, but retrying will not help until the month rolls over or the plan changes. Branch on `error.code`, not on the status. Its `details` are `used`, `limit` and `upgrade_url` (`"/dashboard/billing/plans"`, the same link `PLAN_REQUIRED` carries).
- `PLAN_REQUIRED` is checked before the rate limiter, so a call to an endpoint your plan lacks fails immediately with 403 and `details.required_tier`.
- Authentication runs first: a missing or invalid key gets `401 UNAUTHORIZED` even when the body is also invalid. With a valid key, a request rejected by schema validation (`400`) is answered before the rate limiter runs - it carries no `x-ratelimit-*` headers and does not count toward any limit.
- The per-minute limit is counted per key; the monthly quota is shared by every key on the account. The dashboard's quota bar shows that same account total.
- Refused (4xx) and failed (5xx) calls are logged but never consume monthly quota, so a bug that sends invalid requests or hits a paid endpoint does not burn your allowance.

## Example: GET /v1/ayanamsa

Real 429s from an in-memory run of the API at 2026-12-01T10:40:59Z (other headers omitted): the 61st call in a minute on a free key, then a key with a test quota of 5 calls on its sixth billable call. Its Retry-After is the seconds left until 2027-01-01T00:00Z.

```http
HTTP/1.1 429 Too Many Requests
x-request-id: req_01M8RK323PAF3F2G19C1WFSEVE
x-ratelimit-limit: 60
x-ratelimit-remaining: 0
x-ratelimit-reset: 1796121719
retry-after: 60

{
  "request_id": "req_01M8RK323PAF3F2G19C1WFSEVE",
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit exceeded",
    "details": { "retry_after_seconds": 60 }
  }
}

HTTP/1.1 429 Too Many Requests
x-request-id: req_01M8RK325RHYDEFV1XXC3ZCMFA
x-ratelimit-limit: 100000
x-ratelimit-remaining: 99994
x-ratelimit-reset: 1796121719
retry-after: 2639941

{
  "request_id": "req_01M8RK325RHYDEFV1XXC3ZCMFA",
  "error": {
    "code": "QUOTA_EXCEEDED",
    "message": "Monthly quota of 5 exhausted (5/5)",
    "details": {
      "used": 5,
      "limit": 5,
      "upgrade_url": "/dashboard/billing/plans"
    }
  }
}
```

## Questions

**Which endpoints does this page apply to?**

3 endpoints: Ayanamsa Systems (`GET /v1/ayanamsa`); KP Horary (Prashna 1-249) (`POST /v1/kp/horary`); Bulk Kundli Matching (`POST /v1/compatibility/batch`).

## Endpoints

- [`GET /v1/ayanamsa`](https://astronode.dev/capabilities/vedic/ayanamsa) - Ayanamsa Systems API
- [`POST /v1/kp/horary`](https://astronode.dev/capabilities/kp/kp-horary) - KP Horary (Prashna 1-249) API
- [`POST /v1/compatibility/batch`](https://astronode.dev/capabilities/compatibility/compatibility-batch) - Bulk Kundli Matching API
