KittenPvP Club · Developer reference

Public API

Read-only endpoints for public tierlists, player profiles, match history, search and kit icons.

Base URLhttps://tiers.kittenpvpofficial.club
PublicRead-onlyJSON + image assets
Start here

Overview

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.

Administrative routes are private.Paths under /api/admin/* require an authenticated dashboard session and are not part of the public API contract.

Request example

bash
curl -sS https://tiers.kittenpvpofficial.club/api/rankings/sword?page=1&sort=rating

JSON endpoints return UTF-8 JSON. Dynamic path values should be URL-encoded. Page numbers start at 1.

GET · /api/rankings/{mode}

Rankings

Returns one page of a kit leaderboard or the overall leaderboard.

http
GET /api/rankings/{mode}?page=1&sort=rating
ParameterRequiredDescription
modeYesA kit ID such as sword, or overall.
pageNoOne-based page number. Defaults to 1.
sortNorating, 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

json
{
  "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
}
GET · /api/players/{subject}

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.

http
GET /api/players/ExamplePlayer

The 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

json
{
  "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
}
GET · /api/players/{subject}/matches

Match history

Returns a page of public match history for the requested player.

http
GET /api/players/ExamplePlayer/matches?page=1

Match 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

json
{
  "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
}
GET · /api/kit-icons/{kit}

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.

http
GET /api/kit-icons/sword

The response is an image, not JSON, and can be used as an image source. Unknown kits or kits without an icon return 404.

Protocol details

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

json
{
  "error": {
    "kind": "not_found",
    "message": "That player does not exist."
  }
}
StatusMeaning
400Invalid subject, page or query input.
404Player, kit or requested resource was not found.
501The configured data source does not support the operation.
502The upstream data source returned an error or could not be reached.
503The API data source is not configured or not yet published.
504The upstream request timed out.