Cencraft API

Public-facing Minecraft analytics API for player stats, playtime, and live server data.

*A Valid API Key is required.

Base URL

https://api.cencraft.net/api

Endpoints

GET /status Public

Live server status (players, TPS, memory).

/api/status
GET /config Public

Returns configured servers and public badge data.

/api/config
GET /players Public

Returns all known players.

/api/players
GET /search/:query Public

Autocomplete usernames.

/api/search/Tru

Player Endpoints

GET /player/:user Public

Full player profile (all servers + totals + playtime).

/api/player/{uuid}
GET /stats/:user/:server Public

Stats for a player on a specific server.

/api/stats/{uuid}/{server}
GET /stats-total/:user Public

Aggregated totals across all servers.

/api/stats-total/{uuid}
GET /playtime/:user Public

Total playtime and per-server breakdown.

/api/playtime/{uuid}
GET /history/:user/:server Public

Historical stats over time.

/api/history/{uuid}/{server}

Badges

GET /public/badges/:username Public

Public badges assigned to a player.

/api/public/badges/{uuid}

WebSocket

Real-time updates:

wss://api.cencraft.net/ws

Events:

{ "type": "status", "data": {...} }
{ "type": "player", "data": {...} }