Public API
Read your data and start scans from your own bot or scripts.
Getting started
The API is part of the Pro plan. Create a key in Settings, API, choose what it may do and send it as a bearer token:
curl https://tickhound.eu/api/v1/servers \ -H "Authorization: Bearer thkapi_…"
All answers are JSON with the result under data. Errors look like { "error": { "code": "…", "message": "…" } }. A machine readable description is available as OpenAPI.
Keys and scopes
A key is shown once when you create it. Only a fingerprint is stored, so we cannot show it again: create a new one if you lose it. You can limit a key to certain IP addresses, give it an expiry date and revoke it at any time.
readServers, metrics, findings, timeline, incidents, profiler results, alerts and investigations.scanStart a diagnostic scan.actionsRun actions through the plugin: clear items, save the world, unload chunks.investigateCreate investigations (case files).
Rate limits and errors
Every key has a limit of requests per minute: 60 on Pro and 300 on Network. Each answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds). When you go over, you get status 429 with Retry-After.
401missing, wrong, revoked or expired key.403the key lacks the scope or the IP address is not allowed.402your plan does not include the feature.404not found.422invalid input.- Repeated wrong keys from one address are slowed down automatically.
Endpoints
GET/api/v1/meany key · Pro
Shows the plan behind the key, its scopes and its rate limit. A good first call to test a key.
Example answer
{
"data": {
"plan": "Pro",
"scopes": [
"read",
"scan"
],
"rateLimitPerMinute": 60
}
}GET/api/v1/serversscope: read · Pro
All servers of the account with their latest status.
Example answer
{
"data": [
{
"id": "cm0abc123",
"name": "survival",
"status": "ONLINE",
"software": "PAPER",
"minecraftVersion": "1.21.4",
"healthScore": 86,
"players": 18,
"tps": 19.92,
"mspt": 31.4
}
]
}GET/api/v1/servers/{id}scope: read · Pro
Status, latest numbers, plugin version and the newest scan score.
id(path) Server id from the list.
Example answer
{
"data": {
"id": "cm0abc123",
"name": "survival",
"status": "ONLINE",
"software": "PAPER",
"minecraftVersion": "1.21.4",
"healthScore": 86,
"players": 18,
"tps": 19.92,
"mspt": 31.4,
"plugin": {
"connected": true,
"version": "1.4.0"
},
"lastSampleAt": "2026-10-12T08:14:30.000Z"
}
}GET/api/v1/servers/{id}/metricsscope: read · Pro
TPS, tick time, CPU, memory and players over time, averaged into buckets. The range is limited by your plan's history.
id(path) Server id.range(query) One of 1h, 6h, 24h, 7d, 30d. Default 24h.
Example answer
{
"data": {
"range": "24h",
"points": [
{
"t": "2026-10-12T08:00:00.000Z",
"tps": 19.9,
"mspt": 30.2,
"cpu": 41.5,
"heapPct": 62.1,
"players": 17
}
]
}
}GET/api/v1/servers/{id}/findingsscope: read · Pro
What the newest completed scan found, with severity and what to change.
id(path) Server id.severity(query) Only this severity: CRITICAL, ERROR, WARNING, INFO or GOOD.
Example answer
{
"data": {
"scanId": "cm0scan1",
"score": 86,
"scannedAt": "2026-10-12T07:00:00.000Z",
"findings": [
{
"ruleId": "perf.view-distance",
"severity": "WARNING",
"category": "PERFORMANCE",
"title": "View distance is high",
"detected": "view-distance=16",
"expected": "10 or lower",
"recommendation": "Lower view-distance to 10."
}
]
}
}GET/api/v1/servers/{id}/timelinescope: read · Pro
Freezes, restarts, config changes, scans, alerts and actions in time order.
id(path) Server id.from(query) ISO time. Default 24 hours ago.to(query) ISO time. Default now.limit(query) Maximum events, 1-500. Default 100.
Example answer
{
"data": [
{
"at": "2026-10-12T03:12:00.000Z",
"kind": "LAG_SPIKE",
"severity": "warning",
"title": "Freeze of 3.4 s (ShopGUI+)"
}
]
}GET/api/v1/servers/{id}/incidentsscope: read · Pro
Stretches of low TPS, freezes, restarts and outages that Tickhound detected, newest first.
id(path) Server id.from(query) ISO time. Default 7 days ago.to(query) ISO time. Default now.
Example answer
{
"data": [
{
"id": "inc-1791800000000",
"title": "TPS dropped to 11.3 (ShopGUI+)",
"kind": "lag",
"severity": "critical",
"start": "2026-10-12T03:10:00.000Z",
"end": "2026-10-12T03:31:00.000Z",
"durationMin": 21,
"ongoing": false
}
]
}GET/api/v1/servers/{id}/profilescope: read · Pro
Per-plugin tick time, kinds of work and hot methods of the newest completed profiler run. Add flame=1 for the flame graph tree.
id(path) Server id.flame(query) Set to 1 to include the flame graph.
Example answer
{
"data": {
"finishedAt": "2026-10-12T02:00:00.000Z",
"advanced": true,
"tickBudgetMs": 50,
"plugins": [
{
"name": "ShopGUI+",
"msPerTick": 6.2,
"sharePct": 41
}
]
}
}POST/api/v1/servers/{id}/profile/startscope: actions · Pro
Starts an advanced profiler run on the server (the plugin must be connected). Use it in a build pipeline: run, wait, then compare with the run of the previous build.
id(path) Server id.
Request body
{
"durationSec": 120
}Example answer
{
"data": {
"runId": "cm0run1",
"status": "PENDING"
}
}GET/api/v1/servers/{id}/profile/comparescope: read · Pro
Per-plugin tick time and kinds of work of two runs, with a verdict (better, worse, same) and a one-line summary. For performance checks in CI.
id(path) Server id.a(query) Run id before.b(query) Run id after.
Example answer
{
"data": {
"verdict": "worse",
"headline": "Busy time per tick went up by 3.4 ms, mostly because of MyPlugin (+3.1 ms)."
}
}POST/api/v1/servers/{id}/scanscope: scan · Pro
Runs a diagnostic scan and returns its id and score. Counts towards your daily scan limit.
id(path) Server id.
Example answer
{
"data": {
"scanId": "cm0scan2"
}
}POST/api/v1/servers/{id}/actionsscope: actions · Pro
Asks the Tickhound plugin to do something on the running server. Allowed: clear-items, clean-chunk, unload-chunks, save-world, run-gc.
id(path) Server id.
Request body
{
"action": "clear-items",
"params": {
"world": "world"
}
}Example answer
{
"data": {
"actionId": "cm0act1",
"alreadyRunning": false
}
}GET/api/v1/alertsscope: read · Pro
What the alert system sent, held back or resolved.
limit(query) 1-200. Default 50.
Example answer
{
"data": [
{
"at": "2026-10-12T03:11:00.000Z",
"kind": "FIRED",
"severity": "warning",
"server": "survival",
"title": "TPS is low: survival"
}
]
}GET/api/v1/networkscope: read · Network
All servers with status, players, TPS and the proxy they sit behind, plus fleet totals.
Example answer
{
"data": {
"totals": {
"servers": 6,
"online": 5,
"players": 143,
"averageScore": 82
},
"servers": [
{
"id": "cm0abc123",
"name": "lobby",
"proxyId": "cm0proxy",
"status": "ONLINE",
"players": 41,
"tps": 20
}
]
}
}POST/api/v1/investigationsscope: investigate · Pro
Builds a case file for a time window: ranked causes with evidence and next steps.
Request body
{
"serverId": "cm0abc123",
"symptom": "lag",
"from": "2026-10-12T02:00:00Z",
"to": "2026-10-12T04:00:00Z"
}Example answer
{
"data": {
"id": "cm0inv1"
}
}GET/api/v1/investigationsscope: read · Pro
Your saved case files, newest first.
Example answer
{
"data": [
{
"id": "cm0inv1",
"title": "Lag on survival",
"verdict": "degraded",
"topCause": "ShopGUI+ is behind 4 of 5 freezes",
"confidence": 83
}
]
}GET/api/v1/investigations/{id}scope: read · Pro
The full case file: headline, ranked hypotheses with evidence, incidents, timeline and next steps.
id(path) Investigation id.
Example answer
{
"data": {
"id": "cm0inv1",
"result": {
"verdict": "degraded",
"headline": "Between … TPS dropped to 11.3. Most likely cause: …",
"hypotheses": []
}
}
}Example: a Discord status command
A small bot that answers /status with the state of all your servers:
// npm i discord.js (Node 18+)
import { Client, GatewayIntentBits } from "discord.js";
const API = "https://tickhound.eu/api/v1";
const headers = { Authorization: `Bearer ${process.env.TICKHOUND_KEY}` };
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.on("interactionCreate", async (i) => {
if (!i.isChatInputCommand() || i.commandName !== "status") return;
const { data } = await (await fetch(`${API}/servers`, { headers })).json();
const lines = data.map((s) => `${s.status === "ONLINE" ? "🟢" : "🔴"} **${s.name}**: ${s.players ?? "–"} players, TPS ${s.tps ?? "–"}`);
await i.reply(lines.join("\n") || "No servers.");
});
client.login(process.env.DISCORD_TOKEN);For push messages instead of polling, use a Discord or webhook channel with an alert rule: Tickhound posts to it the moment something happens.
