API reference

Alliance data

GET /api/v1/alliance-data/league, /matches or /elixir. Your key accesses the latest import for the alliance of your currently selected character, regardless of who uploaded it. No game login is required to confirm the character. Paid API access and shared quotas apply.

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
allianceIdAlliance ID of the currently selected character, as a string.
dateImport date (YYYY-MM-DD); receipt time is never included.
duelStatusCurrent Duel: ok, not_active or unavailable. Older imports may have no Duel status; this is reported as unavailable.
leaguesLeague: activityId, group, number, week, ranks (rank, alliance, weekWins, score). Matches: the same league fields and weeks (week, matches). All stored weeks are returned.
elixirBattlesElixir Rush battles: at (game time, Unix milliseconds as a string), teamId, self, opponent. Each side has alliance, won, score, players.
alliance / scoreAlliance: id (string), name, tag, server; null when absent. IDs and scores are decimal strings to preserve precision; omitted scores mean "0".
errors403 character required; 404 import not found; 503 unavailable. Empty leagues or elixirBattles return 200. No parameters select another owner, character or import.
JSON example (fictional data)
{
  "allianceId": "900000000002",
  "date": "2026-11-08",
  "duelStatus": "not_active",
  "leagues": [
    {
      "activityId": "570010001",
      "group": 1,
      "number": 2,
      "week": 3,
      "ranks": [
        {
          "rank": 1,
          "alliance": {
            "id": "900000000002",
            "name": "Example Alliance",
            "tag": "DEMO",
            "server": 122
          },
          "weekWins": [
            true,
            false
          ],
          "score": "123456789"
        }
      ]
    }
  ]
}