Season Rankings
The rankings endpoint returns the leaderboard for the current season, ordered by total prestige (towns plus achievements).
Endpoint
GET /api/v1/rankings/Requires authentication. Returns rankings scoped to the authenticated player’s current season.
Use limit and offset query parameters to paginate. limit defaults to 50 and is capped at 200; offset defaults to 0. The rank field always reflects global position, so the first entry of ?limit=50&offset=50 has rank: 51.
The response uses the standard pagination envelope (count, limit, offset, results). count is the total number of ranked players in the season; more pages remain while offset + len(results) < count. Your current season comes from /api/v1/state/ (or /me), so it is not repeated here.
Freshness
Rankings are served from a short-lived server-side cache, so recent prestige changes can take up to about half a minute to appear on the leaderboard. There is no need to poll this endpoint more often than that.
Response
{ "count": 128, "limit": 50, "offset": 0, "results": [ { "rank": 1, "player_id": "uuid", "player_username": "swift-wolf-42", "total_prestige": 4200 }, { "rank": 2, "player_id": "uuid", "player_username": "iron-bear-7", "total_prestige": 3150 } ]}Prestige
total_prestige is the sum of town prestige and achievement prestige. Town prestige accumulates as you build and upgrade structures and measures the total development of all your towns combined; each earned achievement adds its prestige value on top. Players with no towns and no achievements have total_prestige: 0.
Honor, medals and titles are tracked separately and do not affect rankings — the leaderboard is prestige only.
Leaving an alliance penalizes prestige
Town prestige is otherwise a purely derived figure — it is recomputed from your buildings’ levels every time one finishes upgrading, and there is no way to spend it directly. Voluntarily leaving an alliance, however, costs a percentage of your current prestige (10% in the shipped free/fast realms), and so does having your alliance disbanded: a disband charges every member that same cost, the Host included. This is tracked as a running deduction, separate from your town-derived total, so it survives your next building upgrade instead of being wiped out by it: total_prestige on this leaderboard is max(0, town_prestige - alliance_leave_penalty) + achievement_prestige. The deduction only ever grows, and only from a voluntary leave or a disband — being kicked from an alliance costs nothing.
For example, a player with 1,000 town prestige who leaves an alliance loses 100 (10%), leaving an effective 900. Leaving a second alliance later costs 10% of the remaining 900 (90), not 10% of the original 1,000 — the penalty compounds against whatever is left, so it can never drive a player’s displayed prestige below 0.
Rankings are sorted descending by prestige, then alphabetically by username for ties.
Usage
import httpx
client = httpx.AsyncClient( base_url="https://YOUR-RESTFALL-HOST", headers={"Authorization": f"Bearer {token}"},)
res = await client.get("/api/v1/rankings/")data = res.json()
# Find your rankmy_rank = next(r for r in data["results"] if r["player_id"] == my_player_id)print(f"You are ranked #{my_rank['rank']} with {my_rank['total_prestige']} prestige")curl -H "Authorization: Bearer $TOKEN" \ https://YOUR-RESTFALL-HOST/api/v1/rankings/const res = await fetch("/api/v1/rankings/", { headers: { Authorization: `Bearer ${token}` },});const data = await res.json();console.log(`Top player: ${data.results[0].player_username}`);