GET routes are public. No API key is needed. Responses are JSON unless otherwise noted.
Base URL: http://your-server:6767
GET /
Returns the plain text output ofservreport.sh — the same human-readable report you would see by running the script on the server directly.
text/plain
GET /api
Returns the endpoint index with service name and version.true on success.Always
"PopLock API".API version string, e.g.
"1.0.0".Array of all registered routes. Each entry includes
method, route, and auth_required.GET /api/status
Returns whether the Minecraft server process is running. When online, also returns the PID, uptime, memory usage, and version.true on success.true if the server Java process is currently running.Process ID of the running server. Only present when
online is true.Elapsed time since process start in
H:MM:SS format. Only present when online is true.Memory usage as a percentage of total system memory (e.g.
"12.3%"). Only present when online is true.Minecraft server version from
version_history.json (e.g. "1.21.4-123"). Only present when online is true and the file is readable.GET /api/players/online
Returns the list of players currently connected to the server. Player presence is determined by parsing join and leave events fromlatest.log.
If the server is offline,
online is false and players is an empty array — no log parsing is attempted.true on success.true if the server process is running.Number of players currently online. Only present when
online is true.Array of online player names. Empty array when the server is offline.
GET /api/players/whitelist
Returns the full contents ofwhitelist.json as parsed JSON.
true on success.Total number of whitelisted players.
Array of whitelist entries, each with
uuid and name fields, exactly as stored in whitelist.json.GET /api/logs/latest
Returns the last N lines oflatest.log.
Number of lines to return. Maximum is
2000. Defaults to 200 if omitted.true on success.Always
"latest.log".Array of log lines, oldest first.
GET /api/logs/snapshot
Returns the last N lines of the snapshot cron log at/var/log/minecraft_snapshot.log.
Number of lines to return. Maximum is
2000. Defaults to 200 if omitted.true on success.Always
"/var/log/minecraft_snapshot.log".Array of log lines, oldest first.
GET /api/backups
Lists all.tar.gz files in the backup directory, sorted by creation date with the newest first.
| Prefix | Type |
|---|---|
snapshot_ | snapshot |
minecraft_backup_ | full_backup |
restore_undo | restore_undo |
| anything else | archive |
true on success.Total number of backup files found.
Array of backup entries sorted newest first.
GET /api/properties
Returns the contents ofserver.properties parsed as a flat key/value object. Comment lines and blank lines are excluded.
true on success.All non-comment key/value pairs from
server.properties. All values are strings.GET /api/report
Returns theservreport.sh output as a JSON-wrapped string rather than plain text. Useful when you need to parse or forward the report programmatically.
true on success.Full plain text output of
servreport.sh, with newlines preserved.