API reference

Alliances

GET /alliances/{id}, /alliances/{server}/{tag}, /alliances/name/{name}. Tags may include brackets. Names require a full case-insensitive match. Multiple matches return 409. roster is the available roster; members is the profile member count, which may differ from roster length.

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.

Current rows and visible columns.
FieldMeaning
id / tag / name / serverString ID / tag / name / server number.
power / kills / level / membersPower / kills / alliance level / member count; some fields may be absent.
disbanded / asOf / powerHistoryDisband time or null / profile time / array of [time, power].
roster[].id / name / rankString ID / name / rank 1-5 (R1-R5) or null.
roster[].power / growth7d / growth30d / kills / castlePower / power change over 7 and 30 days / kills / sanctuary level. Unknown is null.
roster[].activity / joinedWeekly activity / join time in Unix milliseconds; may be null.
JSON example (fictional data)
{
  "id": "900000000002",
  "tag": "DEMO",
  "name": "Example Alliance",
  "server": 122,
  "power": 50000000,
  "kills": 100000,
  "level": 10,
  "members": 1,
  "disbanded": null,
  "asOf": 1793577600,
  "powerHistory": [
    [
      1793577600,
      49000000
    ]
  ],
  "roster": [
    {
      "id": "900000000001",
      "name": "Example Player",
      "rank": 2,
      "power": 50000000,
      "growth7d": null,
      "growth30d": null,
      "kills": 100000,
      "castle": 30,
      "activity": 100,
      "joined": 1793548800000
    }
  ]
}