Eranio
Color theme

Status

Base: /api/status

The status endpoint is the quickest way to see whether a Hytale server is running and how busy it is. A status display on your website, a Discord bot or a regular monitoring job can call it and read player count, TPS, CPU and memory from a single response. As with every endpoint of the HytaleAdminAPI, you must send the X-Admin-Token header, and you find the port in the mod config.json (default 5550). If the server does not answer at all, the server or the mod is unreachable, because the response itself always contains online: true.

Handler: StatusHandler
GET /api/status

Get server status

Returns the state of the server as a flat JSON object: online, online_players, max_players, default_world, world_count, server_name and version, plus cpu_system and cpu_process in percent, ram_total_mb, ram_free_mb and ram_used_mb for the machine, heap_used_mb, heap_max_mb and heap_percent for the Java runtime, uptime and jvm_uptime as readable texts (for example 2h 5m) with the values uptime_ms and jvm_uptime_ms in milliseconds, tps and installed_mods_count.

Response Example

{
  "online": true,
  "online_players": 3,
  "default_world": "default",
  "world_count": 2,
  "server_name": "Hytale Server",
  "max_players": 100,
  "version": "0.7.0",
  "cpu_system": 11,
  "cpu_process": 4,
  "ram_total_mb": 16384,
  "ram_free_mb": 9120,
  "ram_used_mb": 7264,
  "heap_used_mb": 1444,
  "heap_max_mb": 8192,
  "heap_percent": 17,
  "jvm_uptime": "2h 15m",
  "jvm_uptime_ms": 8100000,
  "uptime": "2h 14m",
  "uptime_ms": 8040000,
  "tps": 30.0,
  "installed_mods_count": 2
}

cURL

curl -X GET 'http://localhost:5550/api/status' \
  -H 'X-Admin-Token: YOUR_TOKEN'
uptime counts from the start of the mod, jvm_uptime from the start of the Java process, so the two values can differ by the loading time. tps is calculated from the first loaded world, is capped at 30.0 and also stands at 30.0 when no measurement is available. installed_mods_count counts the .jar files in the mods folder, relative to the working directory of the server. If Hytale cannot deliver the server data, the endpoint still answers 200 with fallback values (0 players, max_players 20, version "Hytale Early Access"). It answers methods other than GET with 405 and a missing or wrong token with 403.

Internal Behavior

Reads Universe and HytaleServer for players, worlds, server name and maximum, the version from the server manifest, and CPU, memory and runtime through the JMX values of Java. No world thread is requested, so the endpoint answers quickly even when a world is under heavy load. The web server of the mod handles requests with a small pool of four threads, so do not poll the status more often than needed, for example every 10 to 30 seconds.