Public API
Read-only endpoints for public tierlists, player profiles, match history, search and kit icons.
https://tiers.kittenpvpofficial.clubOverview
Every endpoint documented here is a public GET request. No API key, session cookie or authentication header is required. The public API is read-only; it does not expose dashboard actions, ELO mutation, player metadata editing, Redis access or administrative endpoints.
/api/admin/* require an authenticated dashboard session and are not part of the public API contract.Request example
curl -sS https://tiers.kittenpvpofficial.club/api/rankings/sword?page=1&sort=ratingJSON endpoints return UTF-8 JSON. Dynamic path values should be URL-encoded. Page numbers start at 1.
Rankings
Returns one page of a kit leaderboard or the overall leaderboard.
GET /api/rankings/{mode}?page=1&sort=rating| Parameter | Required | Description |
|---|---|---|
mode | Yes | A kit ID such as sword, or overall. |
page | No | One-based page number. Defaults to 1. |
sort | No | rating, wins, games or winrate. Defaults to rating. |
The configured page size is capped at 50 rows. The response includes hasMore; total is a number when the selected Redis read model reports one, otherwise it is null.
Example response
{
"mode": "sword",
"page": 1,
"sort": "rating",
"board": {
"kitId": "sword",
"kitName": "Sword",
"mode": "rating",
"rows": [
{
"rank": 1,
"playerId": "11111111-1111-4111-8111-111111111111",
"playerName": "ExamplePlayer",
"rating": 1850,
"tier": "HT1",
"wins": 42,
"losses": 8,
"games": 50,
"region": "minemen.club"
}
],
"hasMore": true,
"total": null
},
"fetchedAt": 1794222000000,
"stale": false
}Player profile
The subject can be a Minecraft username or UUID. The response includes the player's UUID, current name, overall position, tier-test server and individual kit ladders.
GET /api/players/ExamplePlayerThe optional region value is the server hostname or IP address where the player was tier-tested. It can be a third-party server such as minemen.club, mcpvp.club or pvphq.com. It is not the official KittenPvP join address. If a stored player name is missing or contains the UUID, the website resolves the current Minecraft username from Mojang by UUID and caches the result for 24 hours.
Example response
{
"player": {
"id": "11111111-1111-4111-8111-111111111111",
"uuid": "11111111-1111-4111-8111-111111111111",
"name": "ExamplePlayer",
"region": "minemen.club",
"overallRank": 12,
"overallPoints": 5200,
"ladders": [
{
"kitId": "sword",
"kitName": "Sword",
"rating": 1850,
"tier": "HT1",
"peakTier": "HT1",
"wins": 42,
"losses": 8,
"games": 50,
"rated": true
}
]
},
"fetchedAt": 1794222000000,
"stale": false
}Match history
Returns a page of public match history for the requested player.
GET /api/players/ExamplePlayer/matches?page=1Match records include the kit, timestamps, winner and loser, and the current tier-test server metadata for both players when available. Rating deltas are null when the configured Redis source does not publish match deltas.
Example response
{
"history": {
"playerName": "ExamplePlayer",
"rows": [
{
"id": "match-id",
"kitId": "sword",
"startedAt": 1794221900000,
"endedAt": 1794222000000,
"winnerName": "ExamplePlayer",
"loserName": "Opponent",
"winnerRegion": "minemen.club",
"loserRegion": "mcpvp.club",
"winnerDelta": null,
"loserDelta": null
}
],
"hasMore": false,
"total": null
},
"page": 1,
"fetchedAt": 1794222000000,
"stale": false
}Player search
Searches the public player-name index and returns up to 10 matches.
GET /api/search?q=exampleAn empty query returns an empty results array. Each search result contains the UUID, current name and optional tier-test server region.
Example response
{
"query": "example",
"results": [
{
"uuid": "11111111-1111-4111-8111-111111111111",
"name": "ExamplePlayer",
"region": "minemen.club"
}
]
}Kit icons
Returns the uploaded public icon for a kit as an image response. The server serves SVG or a browser-compatible raster image. Images uploaded in formats that browsers do not consistently support are normalized to PNG.
GET /api/kit-icons/swordThe response is an image, not JSON, and can be used as an image source. Unknown kits or kits without an icon return 404.
Caching and errors
Cache behaviour
Public JSON endpoints advertise Cache-Control: public, s-maxage=30, stale-while-revalidate=60. A response includes fetchedAt and stale so clients can show data freshness. Icon responses use no-store caching so updated artwork becomes visible immediately.
Error response
{
"error": {
"kind": "not_found",
"message": "That player does not exist."
}
}| Status | Meaning |
|---|---|
400 | Invalid subject, page or query input. |
404 | Player, kit or requested resource was not found. |
501 | The configured data source does not support the operation. |
502 | The upstream data source returned an error or could not be reached. |
503 | The API data source is not configured or not yet published. |
504 | The upstream request timed out. |
