| Counted for | A minute | A day |
|---|---|---|
| Team live key | 120 | No daily limit |
| Test key | 30 | 1,000 |
| Personal key | 60 | 5,000 |
| One address, all keys | 300 | No daily limit |
| Bad or missing keys from one address | 20 | No daily limit |
- A minute is 60 seconds from the first request counted in it; a day is 24 hours the same way.
- A 304 counts, and so does a request refused for its scope or its kind of key.
- After too many bad keys, every request with a key from that address is refused until the minute ends.
- Adding and removing players has its own limit: 60 changes an hour for one team (429 roster_write_limit).
- X-RateLimit-Limit
- Requests allowed this minute for this key.
- X-RateLimit-Remaining
- Requests left this minute.
- X-RateLimit-Reset
- When the minute ends, in Unix seconds.
- X-RateLimit-Limit-Day, X-RateLimit-Remaining-Day
- The same for the day. Test and personal keys only.
- Retry-After
- On a 429: how many seconds to wait. Wait that long, then go on.
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
X-API-Version: 1
X-GWL-Mode: test
ETag: "q1w2e3r4t5y6u7i8o9p0a1s2d3f"
Cache-Control: private, no-cache
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 29
X-RateLimit-Reset: 1800000060
X-RateLimit-Limit-Day: 1000
X-RateLimit-Remaining-Day: 999HTTP/1.1 429 Too Many Requests
Retry-After: 21
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 0
{
"error": {
"code": "rate_limited",
"message": "Too many requests for this key."
}
}To stay under: keep the ETag of each answer, and use the events feed or a webhook instead of asking again and again.
