Errors & rate limits

The error envelope

Every error uses the same shape and a correct HTTP status:

{ "success": false, "error": { "code": "not_found", "message": "unknown series" } }

message is written to be shown to a person. code is stable and meant for your code to branch on.

Status codes

HTTP code When What to do
401 unauthorized Missing or invalid API key or session Check the X-API-Key header; create a new key if it was revoked
402 credits_exhausted A key kept on the earlier monthly allowance has used this month's 500 calls Wait for the reset on the 1st, or upgrade
402 subscription_inactive Subscription cancelled, expired or past_due beyond the 3-day grace Update billing in the dashboard
403 tier_forbidden The feature needs a higher plan: vintage= and /revisions need Pro or Business, whole-dataset files need Pro or Business, webhooks need a paid plan, or you're at the 3-active-key or per-plan webhook cap Upgrade, or free up a slot
404 not_found Unknown series id, fund, security, AMC or commodity Find it with /v1/search?q=<term>&kinds=all (series, funds, AMCs, securities, mandi crops and markets, trade products)
409 - Signup with an email that already has an account Sign in instead
422 invalid_params Bad parameter: malformed date, bad dims token, unknown transform, or a transform that doesn't fit the frequency Fix the request; message says what's wrong
429 rate_limited Per-minute limit hit Wait the Retry-After seconds
429 daily_limit The day's API calls are used (20 on the free plan) Wait until 00:00 UTC (Retry-After), or upgrade
429 download_limit The free account's 5 site downloads for today are used Wait until 00:00 UTC, or upgrade (every paid plan downloads without a limit)

Examples:

{ "success": false, "error": { "code": "invalid_params",
  "message": "unknown transform 'bogus'; choose one of 3ma, index, mom, pct_change, yoy" } }
{ "success": false, "error": { "code": "unauthorized", "message": "missing API key" } }

Rate limits

Limits apply per account, across all its keys. Every keyed response carries:

The per-minute limit is a true sliding 60-second window. The daily allowance resets at 00:00 UTC (5 am in Pakistan). One call is one request.

Plan Per minute Calls a day Points per call
Free 10 20 1,000
Developer 60 2,000 5,000
Pro 300 20,000 5,000
Business 600 200,000 5,000

Check your live usage with GET /v1/usage.

Handling 429

import time, httpx

def get(url, key):
    while True:
        r = httpx.get(url, headers={"X-API-Key": key}, timeout=30)
        if r.status_code != 429:
            return r
        time.sleep(int(r.headers.get("Retry-After", "5")))

Tips to use fewer requests

·

Also as Markdown: errors-rate-limits.md · All docs