Skip to content
DonutStatsAPI
Sign up
Getting started

DonutStats API

DonutSMP players, leaderboards, markets and the economy as clean JSON. Live right now, and all the way back to day one.

The DonutStats API is the data behind donutstats.io, open to your own apps. It is a read only REST API: every endpoint is a GET, every response is JSON, and every list tells you how fresh it is.

Use it for Discord apps that look players up, price trackers, flip finders, leaderboard sites, economy dashboards or research. Accounts are free and come with 20 requests an hour. The Pro plan removes the cap for $8 a month.

curl "https://api.donutstats.io/v1/leaderboards/money?limit=3" \
  -H "x-api-key: $DONUTSTATS_API_KEY"
https://api.donutstats.io/v1

The version is part of the path. New fields and new endpoints are added to version 1 without notice, so ignore keys you do not recognise. Anything that would break existing code ships as /v2 instead.

Every data endpoint needs an API key in the x-api-key header. Create an account to get one, then follow the quickstart.

Most datasets come in two forms:

Live endpointsHistory endpoints
ShowsThe market and leaderboards as they are nowEverything that came before
Pagingpage and limitA cursor, plus from and to
Example/v1/auction/v1/auction/history

Nothing is thrown away

Closed listings, closed orders, fills, prices, player stats, leaderboard snapshots, bounties, economy samples and server checks are all kept. Read historical data to page through them.