How the limit works
Each API key has a sliding 60-second window: at most rate_per_minute requests in any 60 seconds - 60 on Free, 180 on Hobby, 600 on Starter, 6,000 on Pro. The per-minute limit is checked before the monthly quota, on every request.
Over the limit: HTTP 429
{
"request_id": "...",
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded",
"details": { "retry_after_seconds": 12 }
}
}Every response from the limiter - successes and 429s alike - carries x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset. The reset is the Unix second when the window next frees a slot (the oldest request in it plus 60 s), so a client can slow down before it is refused. Every 429 also carries a standard Retry-After header in seconds: for RATE_LIMITED it equals details.retry_after_seconds; for QUOTA_EXCEEDED it is the time to the start of the next UTC month, when the quota resets - no retry helps before then.
How the planner computes wall time
calls = users × calls per user. Your client can issue at most concurrency × 60,000 / latency_ms requests a minute; the plan allows rate_per_minute. Wall time is calls divided by the smaller of the two, and the table says which one binds. Pacing is the gap between request starts that keeps one key under its limit: ceil(60,000 / rate_per_minute) ms - 334 ms on Hobby, 10 ms on Pro.
Latency is yours to measure: it depends on your region, the endpoint and your network, so the planner does not assume a figure. Start with a small batch, read your p50, and plug it in.
Batch endpoints change the arithmetic
Bulk Kundli matching (POST /v1/compatibility/batch, Starter and above) takes 1 to 500 pairs in one request, each with your own id. A 500-pair batch is one request against the rate limit and, if it succeeds, one billable call against the quota - not 500. Where a batch endpoint exists, use it before tuning concurrency.
Common mistakes
- Retrying immediately. A
429costs no quota and is not added to the window, but until the oldest request ages out every retry is refused again - a wasted round trip that keeps your workers busy doing nothing. HonourRetry-After. Requests that pass the limiter and then fail (an engine400, say) do take a window slot, so validate inputs before sending. - Treating every 429 alike. Branch on
error.code:RATE_LIMITEDmeans wait seconds;QUOTA_EXCEEDEDmeans stop the job. - Unbounded `Promise.all`. Firing 20,000 requests at once guarantees a wall of 429s. Bound concurrency and pace starts, as the generated worker does.
- Recomputing unchanged inputs. Results are deterministic; skip any birth whose request body hash you already have.
FAQ
- Is the limit per key or per account?
- The per-minute window is per API key. The monthly quota is per account, summed across all of its keys.
- Does the 429 response include a Retry-After header?
- Yes, on every
429. ForRATE_LIMITEDit matcheserror.details.retry_after_seconds; forQUOTA_EXCEEDEDit counts down to the next UTC month. Most HTTP clients' retry helpers read it directly. - How do I see my remaining budget?
- Read
x-ratelimit-remainingandx-ratelimit-reseton any response, including a429, for the minute window; the dashboard shows the month's billable usage.