Rate limits
LIGR applies fair-use limits to the REST API. LIGR does not publish a fixed request budget. Unauthenticated requests are limited per IP address. Read the headers on every response, and slow down before they reach zero.
Headers
Section titled “Headers”Every response carries the IETF draft headers.
RateLimit-Limit: 300RateLimit-Remaining: 287RateLimit-Reset: 41RateLimit-Policy: 15;w=1, 300;w=60, 6000;w=3600| Header | Meaning |
|---|---|
RateLimit-Limit | The number of requests the current window allows |
RateLimit-Remaining | The number of requests left in the current window |
RateLimit-Reset | The number of seconds until the current window resets |
RateLimit-Policy | Every window in force, as <limit>;w=<seconds> |
More than one window can apply at the same time. RateLimit-Policy lists every window in force.
Observe mode
Section titled “Observe mode”LIGR is phasing enforcement in. While enforcement is off, an over-limit request still succeeds.
The response carries x-ligr-rate-limit-observe: 1.
Enforcement
Section titled “Enforcement”Enforcement starts on a date to be announced in the changelog. Until then, treat
x-ligr-rate-limit-observe: 1 as a 429.
Over the limit
Section titled “Over the limit”An enforced over-limit request returns 429.
{ "message": "Api key has made too many requests" }Wait RateLimit-Reset seconds, then retry.