Player, alliance, and kingdom stats. Sign in with Discord, create a key, then call /v1. Responses can be up to one hour old.
Checking Discord login…
Authenticate with Authorization: Bearer kss_… or X-Api-Key. Base URL: https://api.mightpulse.com/v1.
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 Mighty 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. Mighty 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,
"mighty": 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, or governor gear) updated less than 1 hour ago is always served from the stored copy. A full profile (heroes, ranks, and governor gear) 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.
wait you send, for example 75 seconds. Without wait, calls normally answer in well under a second.include=members_base or members_full instead of one call per member. For a list of players, use /v1/players?ids= (up to 50).fresh is false, either use the stored copy or call again after retry_after seconds. That next call is free. Pass wait only when you need the latest data in this call.429, wait for Retry-After. On a dropped connection or a 5xx, retry once or twice with a short pause. Repeating a call is safe.max_age. You get answers without queuing updates you do not need.GET /v1/players/{id}?include=base
GET /v1/players/{id}?include=base,heroes,ranks,gov_gear
GET /v1/players/{id}?id_type=uid
id is the in-game governor_id by default. Governor ID and internal uid overlap, so the two are not interchangeable.
id_type is optional. Default governor_id (aliases fid, gov, governor) 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, governor_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, governor_id, fid, nick_name, kid, power, town_center_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 — kingdom standings:
power, power_rank, kills, kills_rank, town_center_level, town_center_rank,
migrant_score, migrant_rank, mystic_trial, mystic_rank,
leaderboards: [{ name, value, kingdom_rank }]
gov_gear — governor 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 }] }]
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.
GET /v1/alliances/{kid}/{tag}?include=info,roster
Path parameters are kingdom ID and alliance tag (abbr). Tags are case-sensitive. The same tag can exist in more than one kingdom, so kid is required.
alliance (include=info):
aid, name, abbr, kid, power, count, leader_name, leader_uid, leader_governor_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 a key can make one such call per minute; these calls are never free follow-ups. members_base also updates each member's name, power, and Town Center when older than max_age, for the whole roster at once. members_full also returns and updates heroes, ranks, and governor gear 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, governor_id, fid, nick_name, power, town_center_level, kills, alliance_rank, alliance_rank_label, kid, avatar_url, last_active_at, online
GET /v1/kingdoms?page=1&size=24
GET /v1/kingdoms/{kid}
GET /v1/kingdoms/{kid}?include=boards&limit=100
GET /v1/kingdoms/{kid}/ranks?limit=100
GET /v1/kingdoms/{kid}/ranks?board=pet_power&limit=50
kingdom fields:
active_players is governors 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, governor_gear_power, governor_charm_power,
pet_power, island_prosperity, migrant_score, mystic_trial, master_power,
board_totals: [{ type, key, label, total }]
research_power is also returned as science_power. governor_gear_power is also lord_equip. governor_charm_power is also lord_gem.
Leaderboards are available with include=boards or GET /v1/kingdoms/{kid}/ranks. limit is 1–100 (default 100). board is a slug or numeric type:
alliance_power, alliance_kills, personal_power, kills, town_center, rebel_conquest, single_hero, hero_total, troop_power, building_power, research_power, hero_no_equip, hero_equip, gov_gear, gov_charm, pet_power, island_prosperity, migrant_score, mystic_trial, coliseum, forest_of_life, crystal_cave, knowledge_nexus, molten_fort, radiant_spire, master_power
Alliance boards include aid, abbr, name, and score. Player boards include uid, governor_id, nick_name, and score.
GET /v1/kingdoms/{kid}/events
Same calendar as the kingdom page. A Mighty key is required. Any other key receives 403 mighty_required.
Each kingdom 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.
GET /v1/kingdoms/{kid}/kvk
GET /v1/kingdoms/{kid}/kvk/scores
GET /v1/kingdoms/{kid}/kvk/ranks
GET /v1/kvk/matchups
Mighty only. Any other key receives 403 mighty_required. This is the same matchup card and live prep board as the kingdom page.
The matchup is this kingdom and its opponent. previous_season is the last stored season for that kingdom, or null. /v1/kvk/matchups is every pair in the current season, listed once. Scores are the two kingdom totals and prep days I–V, with In Progress, Available Soon, or Ended. KvK scores are refreshed every 5 minutes. A kingdom with no published score returns 404 scores_unavailable.
{
"ok": true,
"season": 22,
"stage": "armament",
"bye": false,
"kingdom": { "kid": 1, "name": null },
"opponent": { "kid": 39, "name": null },
"previous_season": 21
}
{
"ok": true,
"season": 22,
"stage": "armament",
"kingdom": 1,
"opponent": 39,
"score": 166483680,
"opponent_score": 60111200,
"days": [
{
"day": 1,
"name": "I",
"status": "In Progress",
"kingdom_score": 166483680,
"opponent_score": 60111200,
"begin_ts": 1791158400,
"end_ts": 1791244800
}
]
}
GET /v1/kingdoms/{kid}/kvk/ranks?type=players&phase=overall&scope=kingdom&limit=100
Individual KvK preparation points, the same boards as the in-game personal and alliance point rankings. Mighty only.
type: players (default) or alliances.phase: overall (all prep days so far, default) or day_1 to day_5. A day that has not started returns 404 phase_not_started. battle returns 404 phase_unavailable; castle battle rankings are not collected.scope: kingdom (default, only this kingdom) or pair (both kingdoms of the matchup, as in game).limit: 1 to 100. The game shows the top 100 players across both kingdoms, so a kingdom usually has fewer than 100 rows.rank is the place inside the requested scope; pair_rank is the in-game place across both kingdoms. governor_id is filled when the governor 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 kingdom has no matchup or no rankings yet.
{
"ok": true,
"season": 24,
"kingdom": 1,
"opponent": 217,
"type": "players",
"phase": "day_1",
"scope": "kingdom",
"current_day": 1,
"phases": ["overall", "day_1"],
"updated_at": "2026-11-30T03:40:12+00:00",
"limit": 100,
"count": 38,
"final": false,
"read_ts": 1796010012,
"rows": [
{
"rank": 1,
"pair_rank": 2,
"governor_id": 123456789,
"uid": 85116989,
"nick_name": "Taiwan",
"kid": 1,
"aid": 100001,
"alliance_abbr": "PHX",
"score": 22969200,
"power": 512000000,
"avatar_url": null
}
]
}
With type=alliances rows are {rank, pair_rank, aid, abbr, name, kid, score}.
curl -sS "https://api.mightpulse.com/v1/players/{governor_id}?include=base,heroes,ranks,gov_gear" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/players/{uid}?id_type=uid&include=base" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/kingdoms/1" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/kingdoms/1/ranks?board=pet_power&limit=20" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/kingdoms/1/events" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/kingdoms/1/kvk" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/kingdoms/1/kvk/scores" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/kingdoms/1/kvk/ranks?type=players&phase=day_1" \
-H "Authorization: Bearer kss_YOUR_KEY"
curl -sS "https://api.mightpulse.com/v1/kvk/matchups" \
-H "Authorization: Bearer kss_YOUR_KEY"
401 missing or invalid key. 403 mighty_required on events and KvK without a Mighty key. 404 unknown player, alliance, kingdom, 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.