API access

Player, alliance, and state stats. Sign in with Discord, create a key, then call /v1. Responses can be up to one hour old.

Frosty · $4/month Higher API limits. Read state events, SvS matchups, and live prep scores. A linked Frosty patron gets 360 requests per minute and 30,000 per day instead of 60 and 5,000. 360 / minute 30,000 / day Get Frosty

Your keys

Checking Discord login…

Using the API

Authenticate with Authorization: Bearer wos_… or X-Api-Key. Base URL: https://api.whiteoutstats.com/v1.

Limits and freshness

Limits apply to your Discord account, not to each key: 60 requests per minute and 5,000 per day, shared by all of your keys. A Discord account linked to an active Frosty patron gets 360 per minute and 30,000 per day. Exceeding either limit returns 429. Revoking a key and creating a new one does not reset either limit, and a second or third key adds no extra requests.

Every counted response includes the remaining allowance:

X-RateLimit-Limit-Minute: 60
X-RateLimit-Remaining-Minute: 42
X-RateLimit-Reset-Minute: 1792000020
X-RateLimit-Limit-Day: 5000
X-RateLimit-Remaining-Day: 3250
X-RateLimit-Reset-Day: 1792022400

The reset values are Unix timestamps. The minute bucket rolls at the start of the next minute. The day bucket rolls at 00:00 UTC. Frosty keys show 360 and 30,000. Every key on the account shows the same account-wide numbers.

GET /v1/usage

/v1/usage returns the same account-wide numbers and does not count against either limit. Use it to check before a burst, or to show usage on your own page.

{
  "ok": true,
  "frosty": false,
  "minute": { "limit": 60, "used": 18, "remaining": 42, "resets_at": "2026-10-14T16:27:00Z" },
  "daily": { "limit": 5000, "used": 1750, "remaining": 3250, "resets_at": "2026-10-15T00:00:00Z" }
}

Player and alliance calls answer straight away from the last stored copy. Each included section is checked on its own: if one is older than 60 minutes, the response has "fresh": false and the update is queued in the background. Call again after retry_after seconds to get it. Requests for the same player or alliance share one update.

Your next call for that same player or alliance within 10 minutes is free: it does not count against either limit and carries X-Free-Followup: 1. So one update costs one request. Alliance calls with members_base or members_full are never free follow-ups (see Alliances).

GET /v1/players/{id}?include=base,heroes&wait=20
GET /v1/alliances/{kid}/{tag}?wait=30
GET /v1/players/{id}?max_age=300

wait (0–60 seconds) holds the call until the update is done and returns the latest data. If it takes longer, you get the stored copy with "fresh": false. max_age (60–604800 seconds, default 3600) sets how old data may be before it counts as stale ("fresh": false). Use a large value when slightly older data is fine.

Updates have a minimum age, whatever max_age, wait, or urgency you send. A section (base, heroes, ranks, chief gear, or troops) updated less than 1 hour ago is always served from the stored copy. A full profile (heroes, ranks, chief gear, and troops) is updated at most once every 2 hours; until then only the base section can be updated. When an update is held back this way, refresh is cooldown.

Responses include refresh: none (nothing to do), done (updated during this call), queued or running (with retry_after), failed, expired, skipped (the update queue was full; try later), or cooldown (stale for your max_age, but updated too recently to update again; you get the stored copy).

A player we have never seen is looked up in the game during the call, for up to 10 seconds (or wait if longer). If that is not enough, the call returns 202 with "pending": true and a Retry-After header.

Using it well

Player

GET /v1/players/{id}?include=base
GET /v1/players/{id}?include=base,heroes,ranks,chief_gear,troops
GET /v1/players/{id}?include=troops
GET /v1/players/{id}?id_type=uid

id is the in-game chief id by default. Chief ID and internal uid overlap, so the two are not interchangeable.

id_type is optional. Default chief_id (aliases fid, chief) looks up fid only. Pass id_type=uid to look up by internal uid. Unknown IDs return 404. Invalid id_type returns 400.

Wrapper fields: ok, uid, chief_id, id_type, include, fresh, cached_at, age_seconds, refresh, retry_after (while an update is queued), player. Extra sections appear only when listed in include.

player (include=base, default):

uid, chief_id, fid, nick_name, kid, power, furnace_level, vip,
x, y, kills, office, online, last_active_at, last_login, avatar_url,
language, shield_endtime, burn_endtime,
alliance: { aid, abbr, name, rank, rank_label, power, count, flag_url, leader_name }

The game no longer sends activity. online, last_active_at, and last_login are leftover values from before that change. They are stale and should not be used.

heroes — arena defence team, including equipped hero gear and exclusive/widget gear:

id, name, level, star, stars, star_label, quality, power, icon, position,
skill_levels: [{ id, level }],
exclusive_gear_level,
exclusive_gear: {
  id, name, level, slot,
  atk_ratio, hp_ratio, def_ratio, power_ratio,
  slg_skill_id, pve_skill_id,
  slg_attr: [{ id, value, label }]
},
gear: [{
  eid, sid, slot, name,
  enhancement_level, refine_level, gear_level,
  quality, quality_key, quality_label, red,
  troop, troop_label
}]

Hero gear is helmet / gloves / armor / boots. enhancement_level is the in-game upgrade (+N). refine_level is mastery forging. red is true at enhancement 101+. exclusive_gear is the hero's exclusive weapon (widget); null if none is on record. Catalog ratios and slg_attr come from the exclusive's wiki row for that hero.

ranks — state standings:

power, power_rank, kills, kills_rank, furnace_level, furnace_rank,
migrant_score, migrant_rank, labyrinth, labyrinth_rank,
leaderboards: [{ name, value, state_rank }]

chief_gear — chief equipment. When gear is hidden, hidden is true, items is empty, and message explains that.

hidden, message,
items: [{ slot, name, equipid, quality, tier, star, strength_level, score, combat, icon,
          gems: [{ slot, id }] }]

troops — troop levels from the Expedition Arena defence, as shown on the player page: the highest tier and Fire Crystal level for each troop type. Alias troop_levels.

troops: [{ type, tier, fire_crystal_level, troop_id, icon }],
troops_checked_at

type is infantry, lancer, or marksman. tier is 1–12 (T1–T12). fire_crystal_level is 0 below Fire Crystal troops, else FC1–FC10. troops_checked_at is when they were last read. An empty list with a time means the game had no troops to show. Troops are refreshed with the full profile, like heroes, so they follow the same max_age, wait, and free follow-up rules.

Many players

GET /v1/players?ids=123,456,789&include=base,heroes

Up to 50 IDs, comma-separated, in one call. Each ID counts as one request against both limits, so 50 IDs cost 50 requests; a call that would go over a limit returns 429. include, id_type, wait, and max_age work as for a single player. The response lists each found player in players (same fields as a single call), plus not_found, pending (new players still being looked up, with retry_after), and failed. refresh counts the players by refresh state.

Alliance

GET /v1/alliances/{kid}/{tag}?include=info,roster

Path parameters are state ID and alliance tag (abbr). Tags are case-sensitive. The same tag can exist in more than one state, so kid is required.

alliance (include=info):

aid, name, abbr, kid, power, count, leader_name, leader_uid, leader_chief_id, flag_url, power_rank
GET /v1/alliances/{kid}/{tag}?include=info,members_base
GET /v1/alliances/{kid}/{tag}?include=info,members_full&wait=30

The whole alliance in one call. With members_base or members_full the call counts one request per member against the daily limit and uses up the rest of the current minute, so an account can make one such call per minute; these calls are never free follow-ups. members_base also updates each member's name, power, and Furnace level when older than max_age, for the whole roster at once. members_full also returns and updates heroes, ranks, chief gear, and troops for every member: each entry has the same fields as a single player call. Without wait you get stored data straight away and the updates are queued; call again after retry_after. Members follow the same minimum update ages as single players. With wait the call holds until the members are updated or the wait ends. members_fresh and members_pending count members that are up to date and still updating.

members (include=roster):

uid, chief_id, fid, nick_name, power, furnace_level, kills, alliance_rank, alliance_rank_label,
kid, avatar_url, last_active_at, online

State

GET /v1/states?page=1&size=24
GET /v1/states/{kid}
GET /v1/states/{kid}?include=boards&limit=100
GET /v1/states/{kid}/ranks?limit=100
GET /v1/states/{kid}/ranks?board=pet_power&limit=50

state fields:

active_players is chiefs currently on the map (same value as located). active_7d and active_30d are still returned.

kid, name, banner_url, player_count, located, active_players, active_7d, active_30d, alliance_count,
age_days, opened_on, power, avg_power, power_rank, activity_rank, health,
power_gain_7d, tc_pushers_7d,
gov_power, alliance_power, alliance_kills, kills,
hero_power, hero_total, troop_power, building_power, research_power,
hero_no_equip, hero_equip, chief_gear_power, chief_charm_power,
pet_power, island_prosperity, migrant_score, labyrinth, master_power,
board_totals: [{ type, key, label, total }]

research_power is also returned as science_power. chief_gear_power is also lord_equip. chief_charm_power is also lord_gem.

Leaderboards are available with include=boards or GET /v1/states/{kid}/ranks. limit is 1–100 (default 100). board is a slug or numeric type:

alliance_power, alliance_kills, personal_power, kills, furnace, rebel_conquest,
single_hero, hero_total, troop_power, building_power, research_power,
hero_no_equip, hero_equip, chief_gear, chief_charm, pet_power,
island_prosperity, migrant_score, labyrinth,
land_of_heroes, cave_of_monsters, charm_mine, research_center, gear_forge, gaia_heart,
master_power

Alliance boards include aid, abbr, name, and score. Player boards include uid, chief_id, nick_name, and score.

Events Frosty

GET /v1/states/{kid}/events

Same calendar as the state page. A Frosty key is required. Any other key receives 403 frosty_required.

Each state is fetched once and kept until 00:00 UTC.

{
  "ok": true,
  "kid": 1,
  "date": "2026-10-05",
  "count": 11,
  "categories": [
    {
      "name": "Events",
      "events": [
        {
          "name": "Hero Rally",
          "category": "Events",
          "when": "28 Sep 00:00 – 11 Oct 24:00",
          "begin_ts": 1759017600,
          "end_ts": 1760227199
        }
      ]
    }
  ]
}

when is the date line shown on the site. begin_ts and end_ts are Unix seconds.

SvS Frosty

GET /v1/states/{kid}/svs

GET /v1/states/{kid}/svs/scores

GET /v1/states/{kid}/svs/ranks

GET /v1/svs/matchups

Frosty only. Any other key receives 403 frosty_required. This is the same matchup card and live prep board as the state page.

The matchup is this state and its opponent. previous_season is the last stored season for that state, or null. /v1/svs/matchups is every pair in the current season, listed once. Scores are the two state totals and prep days I–V, with In Progress, Available Soon, or Ended. SvS scores are refreshed every 5 minutes. A state with no published score returns 404 scores_unavailable.

{
  "ok": true,
  "season": 22,
  "stage": "armament",
  "bye": false,
  "state": { "kid": 1, "name": null },
  "opponent": { "kid": 39, "name": null },
  "previous_season": 21
}
{
  "ok": true,
  "season": 22,
  "stage": "armament",
  "state": 1,
  "opponent": 39,
  "score": 166483680,
  "opponent_score": 60111200,
  "days": [
    {
      "day": 1,
      "name": "I",
      "status": "In Progress",
      "state_score": 166483680,
      "opponent_score": 60111200,
      "begin_ts": 1791158400,
      "end_ts": 1791244800
    }
  ]
}

SvS point rankings

GET /v1/states/{kid}/svs/ranks?type=players&phase=overall&scope=state&limit=100

Individual SvS preparation points, the same boards as the in-game personal and alliance point rankings. Frosty only.

rank is the place inside the requested scope; pair_rank is the in-game place across both states. chief_id is filled when the chief is in our database (null otherwise; uid is always set). phases lists the phases that have data. A finished day has final: true. Rankings refresh every few minutes during preparation; 404 ranks_unavailable when the state has no matchup or no rankings yet. /v1/kingdoms/{kid}/kvk/ranks is the same endpoint.

{
  "ok": true,
  "season": 47,
  "state": 1289,
  "opponent": 1305,
  "type": "players",
  "phase": "day_1",
  "scope": "state",
  "current_day": 1,
  "phases": ["overall", "day_1"],
  "updated_at": "2026-11-30T07:10:12+00:00",
  "limit": 100,
  "count": 52,
  "final": false,
  "read_ts": 1796022612,
  "rows": [
    {
      "rank": 1,
      "pair_rank": 1,
      "chief_id": 123456789,
      "uid": 47450703,
      "nick_name": "Example",
      "kid": 1289,
      "aid": 1289000012,
      "alliance_abbr": "ABC",
      "score": 27894942,
      "power": 812000000,
      "avatar_url": null
    }
  ]
}

With type=alliances rows are {rank, pair_rank, aid, abbr, name, kid, score}.

Example

curl -sS "https://api.whiteoutstats.com/v1/players/{chief_id}?include=base,heroes,ranks,chief_gear" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/players/{uid}?id_type=uid&include=base" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/states/1" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/states/1/ranks?board=pet_power&limit=20" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/states/1/events" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/states/1/svs" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/states/1/svs/scores" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/states/1/svs/ranks?type=players&phase=day_1" \
  -H "Authorization: Bearer wos_YOUR_KEY"
curl -sS "https://api.whiteoutstats.com/v1/svs/matchups" \
  -H "Authorization: Bearer wos_YOUR_KEY"

401 missing or invalid key. 403 frosty_required on events and SvS without a Frosty key. 404 unknown player, alliance, state, board, or matchup, or scores_unavailable when live scores are not published yet. 202 a new player is still being looked up (see Retry-After). 422 wait or max_age out of range. 429 rate limit exceeded. 503 lookup_failed when the game lookup for a new player failed.