Limits and units

Two limits per key, the same on every plan.

LimitValueResets
Requests per minute60Every minute
Units per day20,00000:00 UTC

What each call costs

CallUnits
Most calls1
GET /v1/market/{world} (whole world)10
GET /v1/market/{world}/items/{item_id}/history2
GET /v1/openapi.json0
Answers 304, 401, 409 and 5030

Headers

HeaderMeaning
X-RateLimit-LimitRequests allowed per minute in this bucket.
X-RateLimit-RemainingRequests left in the current minute.
X-RateLimit-ResetWhen the minute bucket is full again (Unix time, in seconds).
X-Quota-LimitUnits allowed per UTC day.
X-Quota-RemainingUnits left today.
X-Quota-ResetThe next 00:00 UTC (Unix time, in seconds).
X-Units-ChargedUnits charged by this call.
X-Request-IdThe id of this call; quote it when you report a problem.
ETagSend it back in If-None-Match to get 304 when nothing has changed.
Retry-AfterSeconds to wait, on 429, on 503 and on a KEY_LOCKED with an end time.

When you reach a limit

  • 429 RATE_LIMITED: over 60 requests in a minute. Wait Retry-After.
  • 429 QUOTA_EXCEEDED: today’s units are used up; they come back at resets_at (00:00 UTC).
  • 503 BUSY: the server is busy or the world has no data ready yet. Wait Retry-After and retry, for 0 units.
A key that keeps calling after 429 may be locked for a while (403 KEY_LOCKED, reason rate_abuse).

Polling well

  • GET /v1/worlds: at most once every 5 minutes.
  • Download a world again only when its world_updated_at changes, always with If-None-Match (a 304 costs 0 units).
  • Need one item? GET /v1/market/{world}/items/{item_id} costs 1 unit; the whole world costs 10.

Pagination

Lists such as GET /v1/items and GET /v1/coins/p2p take limit (1 to 100, default 50) and return meta.next_cursor; pass it as cursor for the next page (null on the last).

Versions

v1 only grows, with new endpoints and fields. Breaking changes go to /v2, and v1 then announces its end with the Deprecation and Sunset headers.