DonutSMP Shop — Accounts, Money & Items

DonutSMP Stats API

A simple JSON REST API for DonutSMP player stats and leaderboards. Free to start — grab a key and go.

Base URL

https://donutstats.org/api/v1

A dedicated api. subdomain is planned; until then all endpoints live under /api/v1.

Authentication

Every request needs your API key. Create one on your account page. Send it as a Bearer token or an x-api-key header. Keep it secret — treat it like a password.

curl https://donutstats.org/api/v1/player/Technoblade \
  -H "Authorization: Bearer dsk_live_xxxxxxxxxxxxxxxx"

# or
curl https://donutstats.org/api/v1/player/Technoblade \
  -H "x-api-key: dsk_live_xxxxxxxxxxxxxxxx"

Rate limits

Limits are per key, per hour, based on your rank tier. Upgrade in the Store to raise them. Every response includes X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers; over the limit you get 429 with a Retry-After header.

TierWebsite searches / hourAPI requests / hour
Free1060
Basic1001,000
Pro1,00010,000

Endpoints

GET/api/v1/player/{username}

A player's stats (money, kills, deaths, playtime, shards, blocks…). If the data is stale, a fresh in-game fetch is queued and queued: true is returned.

curl https://donutstats.org/api/v1/player/Technoblade -H "x-api-key: dsk_live_..."

{
  "ok": true,
  "found": true,
  "queued": false,
  "player": {
    "handle": "technoblade",
    "username": "Technoblade",
    "money": 296000000,
    "kills": 18,
    "deaths": 60,
    "playtime": 1286,
    "updatedAt": "2026-11-21T20:00:00.000Z"
  }
}
GET/api/v1/leaderboard/{metric}

A leaderboard. Metrics: money, deaths, playtime, placedBlocks, brokenBlocks, mobsKilled. Optional ?take=1–200 (default 50).

curl "https://donutstats.org/api/v1/leaderboard/money?take=10" -H "x-api-key: dsk_live_..."

{
  "ok": true,
  "metric": "money",
  "label": "Money",
  "updatedAt": "2026-11-21T20:00:00.000Z",
  "entries": [{ "rank": 1, "username": "Abuodee", "value": 5600000000000 }]
}

Errors

Errors return a JSON body with ok: false and an error message.

  • 400 — bad request (e.g. invalid username/metric).
  • 401 — missing, invalid or revoked API key.
  • 429 — rate limit exceeded; see Retry-After.