API reference
Search
GET /search?type=player&q=Example&offset=0. type is player, alliance or server. q is a nonempty string, truncated to 40 characters. Up to 50 rows per response; offset is clamped to 0-200. Search is not a full database export. Profile name lookup checks up to 50 candidates, so no match does not prove a player is absent.
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 |
|---|---|
type / q / offset / rows | Search type / query / offset / results. Row fields depend on type. |
total / capped | Result count; capped=true means the count reached its cap, not an exact total. |
rows[].id / name / server / tag / alliance / power | Player and alliance rows: ID, name, server and available details. Not every field exists on every row type. |
rows[] (type=server) | server and sid are server numbers; top100Power is top-100 power, alliances is the available alliance board entry count, topPlayer and topAlliance are leader names. Server search matches an exact number only; offset > 0 returns no rows. |
JSON example (fictional data)
{
"type": "player",
"q": "Example",
"total": 1,
"capped": false,
"offset": 0,
"rows": [
{
"id": "900000000001",
"name": "Example Player",
"server": 122,
"power": 50000000
}
]
}