Cencraft API

A real-time Minecraft network analytics API providing live server status, player statistics, leaderboards, and historical tracking.

Base URL

https://api.cencraft.net/api

Endpoints

GET /status

Returns live server status (players, TPS, memory).

/api/status
GET /stats/:user/:server

Get stats for a player on a specific server.

/api/stats/Trumoo15/survival
GET /stats-total/:user

Aggregated stats across all servers.

/api/stats-total/Trumoo15
GET /playtime/:user

Total playtime across servers.

/api/playtime/Trumoo15
GET /leaderboard?server=&sort=

Top players by hours, money, or kills.

/api/leaderboard?server=survival&sort=hours
GET /history/:user/:server

Historical stats over time.

/api/history/Trumoo15/survival
GET /search/:query

Autocomplete usernames.

/api/search/Tru
GET /config

Returns server and badge configuration.

/api/config
GET /health

API health check.

/api/health

WebSocket

Real-time updates:

wss://api.cencraft.net/ws

Messages:

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