API reference
Errors
On 409 choose an ID from matches and request that profile by ID. On 429 inspect scope and reset; minute limits may include Retry-After: 60. On 503 retry later with increasing delays. Quota headers are present on successful data responses and 429 responses; they are not guaranteed on other errors or /quota.
Keep player and alliance IDs as strings. Times are Unix seconds except alliance roster[].joined (Unix milliseconds); donation day uses YYYYMMDD. null, missing fields and empty arrays do not prove a zero value. asOf describes the overall profile; individual seen times may differ. Online status and last login time are not provided. No update frequency is guaranteed. Dates of data (asOf, seen, disbanded, history and detected events) have day precision: Unix timestamps at 00:00 UTC. Histories contain the last value of each day. Snapshot dates in API bodies and headers use the same precision. Game event times, alliance join times and quota resets retain their original precision.
| Field | Meaning |
|---|---|
400 | Invalid search type or empty q. |
401 | No key, or the key is unknown / revoked. |
402 | The subscription ended: the key works again after a payment. |
403 | Data access is closed for this cabinet. |
404 | Not found. |
409 | Several matches for the name: matches lists their id, server and tag; ask again with the server or by id. |
429 | Limit: scope = day (the day's requests are used up, reset time in reset) or min (the per-minute limit, retry in a minute). |
503 | Temporarily unavailable, try again later. |
JSON example (fictional data)
{
"error": "several matches",
"matches": [
{
"id": "900000000001",
"name": "Example Player",
"server": 122,
"tag": "DEMO"
},
{
"id": "900000000003",
"name": "Example Player",
"server": 123,
"tag": null
}
]
}