Rate limits
How many requests a minute each endpoint takes, and who is counted.
Over a limit you get HTTP 429 with E1002, and nothing happens: no charge, no order. Wait for the minute to roll over and retry. /me returns this same table as rateLimits.
| Endpoints | Limit | Counted per |
|---|---|---|
/cs2 /rust /extra | 120 a minute | IP address. Counted before the key is looked up, so guessing keys is throttled too. |
/cs2 /rust /extra | 30 a minute | Account (all keys together). Shared by every key on the account, across all three buy endpoints. |
/products | 60 a minute | IP address |
/stock | 60 a minute | IP address |
/balance | 120 a minute | IP address |
/limits | 120 a minute | IP address |
/order | 120 a minute | IP address |
/replace | 60 a minute | IP address |
/replace | 20 a minute | Key |
/preorder/hours /preorder/cancel | 60 a minute | IP address |
/preorder/hours /preorder/cancel | 20 a minute | Account (all keys together). Shared by every key on the account, across both pre-order endpoints. |
/me | 120 a minute | IP address |
/orders | 60 a minute | IP address |
/ledger | 60 a minute | IP address |
/orders | 30 a minute | Account (all keys together) |
/ledger | 30 a minute | Account (all keys together) |
/webhooks /webhooks/{id} /webhooks/{id}/rotate /webhooks/{id}/enable /webhooks/{id}/test /webhooks/{id}/deliveries | 120 a minute | IP address |
/webhooks /webhooks/{id} /webhooks/{id}/rotate /webhooks/{id}/enable /webhooks/{id}/test | 20 a minute | Account (all keys together). Changes only: creating, deleting, rotating, enabling and testing endpoints. |
/webhooks/{id}/test | 6 a minute | Account (all keys together). On top of the limit on changes. |
Buys are counted per account, not per key: five keys on one account still share one allowance. E1707 is something else: the purchases-per-hour limit you set yourself under API protection.
Errors
| Code | HTTP | Meaning |
|---|---|---|
E1002 | 429 | Too many requests. Wait for the minute to roll over and retry. See Rate limits. |
E1707 | 429 | You reached your purchases-per-hour limit. |