Rate limits
Per-account and per-service limits, headers and 429.
Three levels of limits apply at once: your account, the service (for example the Data API) and the endpoint. The strictest one wins.
Starting values
In production the starting values are 100 requests per second for the account and 50 requests per second for the Data API. The sandbox starts lower, at about a quarter of production's. BeMyPlan may set different limits for your account: the headers below are authoritative.
Headers
Every response that reached the rate limiter carries RateLimit-Policy and RateLimit
(IETF draft-ietf-httpapi-ratelimit-headers). Requests refused earlier carry neither: 401, and 403 for
scope, service or IP restriction. For example:
RateLimit-Policy: "account";q=100;w=1, "service";q=50;w=1
RateLimit: "account";r=99;t=1, "service";r=49;t=1| Parameter | Meaning |
|---|---|
q | The quota of the level. |
w | The window, in seconds. |
r | The requests remaining. |
t | The seconds until the window resets. |
When no named policy applies the level is called default.
When you are over a limit
Every 429 carries Retry-After: the seconds to wait. A call that is over a limit after authentication
answers 429 rate_limited and also carries:
BMP-Rate-Limited-Reason:account-rate,service-rateorendpoint-rate. The same value is indetails.reason.- The
RateLimit-PolicyandRateLimitheaders described above.
Failed authentication is limited per IP address before any key is checked. Repeated bad keys from one
address answer 429 preauth_rate_limited with Retry-After only: no key was recognised, so there is
no account, service or endpoint limit to name.
Good behaviour
- Every request that reached the rate limiter uses one request of your budget, including
304answers and4xxerrors after authentication. Requests refused earlier (401, and403for scope, service or IP) do not use your account budget; failed authentication counts per IP address instead. - Honour
Retry-Afterand back off with jitter.