API reference
Players
GET /players/{id}, /players/{server}/{name}, /players/name/{name}. Name lookups return the same shape. Names must match in full, ignoring case; URL-encode special characters. Multiple matches return 409. A known profile does not guarantee squads or every additional field.
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 |
|---|---|
id / name / server | String ID / player name / server number. |
power / kills / damage / castle | Power / kills / damage / sanctuary level. |
topHero / heroesPower | Strongest hero {id, power} or null / combined hero power or null. Neither is squad power. |
alliance | null or {id, tag, name, rank, joined, activity}; rank 1-5 = R1-R5, joined in seconds, activity is weekly activity. |
asOf / powerHistory / killsHistory | Profile time / arrays of [time, value] for power and kills. History may be incomplete. |
level / vip / likes / language / gender / killedSoldiers | Player level / VIP / likes / language code / gender code / killed soldier count. Unknown values may be null. |
city | null or {server, x, y, skin, seen}; skin is the appearance ID, seen is the time of this data. |
events[] | {at, kind, allianceId, from, to}; kind: name, sid, castle, join, leave, rank. from/to are strings or null; event ranks use game codes 101-105. |
alliances | Alliance ID → {tag, name, server} dictionary for history. |
squads / heroes | Formations and known heroes: see Squads and heroes. |
donations[] | {day, allianceId, tech, coin, honor, activity}; YYYYMMDD date, string alliance ID, daily contribution counters. |
JSON example (fictional data)
{
"id": "900000000001",
"name": "Example Player",
"server": 122,
"power": 50000000,
"kills": 100000,
"damage": null,
"castle": 30,
"topHero": {
"id": 30006,
"power": 2000000
},
"heroesPower": 8000000,
"alliance": {
"id": "900000000002",
"tag": "DEMO",
"name": "Example Alliance",
"rank": 2,
"joined": 1793548800,
"activity": 100
},
"asOf": 1793577600,
"powerHistory": [
[
1793577600,
49000000
]
],
"level": null,
"vip": null,
"likes": null,
"language": null,
"gender": null,
"killedSoldiers": null,
"city": null,
"killsHistory": [],
"events": [],
"alliances": {},
"squads": [],
"heroes": [],
"donations": []
}