Skip to content
DonutStatsAPI
Sign up
Leaderboards

Get a leaderboard

One page of a leaderboard, with yesterday's rank for every row.

GET/v1/leaderboards/{board}

DonutSMP boards are served from complete snapshots only, so you never get a half finished board. Each row carries its rank and value from the previous day's snapshot, so you can show who climbed and who fell.

The money board is the whole baltop, roughly 90,000 players. Page through it with limit=500. For older versions of a board, use snapshots.

Authentication

API key with the read scope

Cached for

1 min

Data updates

DonutSMP boards every 6 hours. Kills and shards with every lookup. Bounties every 15 minutes.

Path parameters

  • boardstringrequired

    Which board.

    moneydeathsplaytimeplacedBlocksbrokenBlocksmobsKilledkillsshardsbounties

Query parameters

  • pageintegeroptionaldefault 1

    Page to return, starting at 1.

    1 to 100,000
  • limitintegeroptionaldefault 100

    Entries per page.

    1 to 500

Response

The board and one page of rows.

  • boardBoard

    The board you asked for.

    Show6 child fields
    • idstring

      Board id: money, deaths, playtime, placedBlocks, brokenBlocks, mobsKilled, kills, shards or bounties.

    • labelstring

      Human readable name, for example Blocks Placed.

    • statstring

      The stat the board ranks, or bounty.

    • sourcestring

      leaderboard for DonutSMP's own leaderboards, tracked for boards DonutStats ranks itself (kills and shards, which DonutSMP has no leaderboard for), bounty for the bounty board.

    • updatedAttimestamp | null

      When the board last changed.

    • entriesinteger

      Players on the board.

  • pageinteger

    The page you asked for.

  • limitinteger

    Rows per page.

  • totalinteger

    Rows on the whole board.

  • Rows, best first.

    Show6 child fields
    • rankinteger

      Position, starting at 1.

    • usernamestring

      The player.

    • uuidstring | null

      Minecraft UUID, once known.

    • valuenumber

      The ranked value: money, a count, seconds of playtime or a bounty.

    • previousRankinteger | null

      Rank in the previous day's snapshot. null for new entries and for tracked and bounty boards.

    • previousValuenumber | null

      Value in the previous day's snapshot.

Status codes

StatusWhen
400Bad RequestUnknown board id.