20% offevery plan

Black Friday Sale. New purchases, extensions and upgrades all qualify.

Ends in
00days
00hrs
00min
00sec
See plans
API

API reference: Stat Checker

Check a server with your accounts or with SSIDs from code, and read every scoreboard, kick and command reply.

What it does

These endpoints run the same check as the Stat Checker tab: each account joins a Java server through a fresh residential IP, and you get its scoreboard, the kick message, a ban flag and the reply to one command. An account stays about a second, or up to about 5 seconds when it runs a command. Besides your own accounts you can send an SSID, the 24 hour Minecraft session token, to check a player you have not added.

Start a check

POST /stat-check queues a check of up to 250 entries.

FieldTypeDetail
hoststringRequired. The server address, like donutsmp.net.
portnumberOptional, 1 to 65535. Without it, or with 25565, the server’s SRV record is used, like the game does.
versionstringOptional. auto (the default) reads it from the server, or a Java version like 1.21.4.
commandobjectOptional. { "command": "/stats", "type": "dialog" } runs one command after joining. type is what it opens: dialog (a server dialog, Java 1.21.6 and newer, the default) or gui (a chest menu). On an older version, or with auto when the server does not answer the ping, a dialog becomes gui. Replies in chat are not captured.
accountsarrayRequired. 1 to 250 entries, each with exactly one of the fields below.
EntryWhat it checks
{ "accountId": "[email protected]" }One of your accounts, by its ID from GET /accounts.
{ "username": "ConsoleClient" }Your account with this player name, in any case. Several of your accounts with one name are one player, checked once.
{ "ssid": "eyJhbGciOi..." }A session token, in the same format as when you add an SSID account.
curl -X POST https://dashboard.consoleclient.com/api/v1/stat-check \
  -H "Authorization: Bearer $CC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host": "donutsmp.net", "command": {"command": "/stats"}, "accounts": [{"username": "ConsoleClient"}, {"ssid": "eyJhbGciOi..."}]}'

The answer is the new check, in the shape below, and your quota. used already counts every entry that will start.

{
  "job": { "id": "9f2c4e1a0b3d5e6f", "done": false, "completed": 0, "total": 2, "entries": [ ... ] },
  "quota": { "limit": 2000, "used": 2, "remaining": 1998, "resetsAt": 1798779600000, "period": "2026-11" }
}

Read the results

EndpointWhat it returns
GET /stat-check/{jobId}One check. Add ?since= with the last seq you saw to get only the entries that changed.
GET /stat-checkYour current or last check, also one started in the tab. { "job": null } before your first one.
GET /stat-check/quota{ "quota": { "limit", "used", "remaining", "resetsAt", "period" } } for this month.
{
  "job": {
    "id": "9f2c4e1a0b3d5e6f",
    "host": "donutsmp.net",
    "port": 25565,
    "version": "auto",
    "command": { "command": "/stats", "type": "dialog" },
    "done": true,
    "completed": 2,
    "total": 2,
    "position": 0,
    "queueLength": 0,
    "etaMs": 0,
    "createdAt": 1790000000000,
    "startedAt": 1790000000500,
    "finishedAt": 1790000009000,
    "seq": 6,
    "partial": false,
    "entries": [
      {
        "index": 0,
        "username": "ConsoleClient",
        "accountId": "[email protected]",
        "state": "done",
        "result": {
          "status": "ok",
          "banned": false,
          "username": "ConsoleClient",
          "error": "",
          "kick": null,
          "scoreboard": {
            "title": { "text": "DonutSMP", "formatted": "§b§lDonutSMP" },
            "lines": [{ "text": "Money $16.7M", "formatted": "§fMoney §a$16.7M", "score": 0 }]
          },
          "command": {
            "command": "/stats", "type": "dialog", "status": "ok", "opened": "dialog",
            "title": { "text": "Stats", "formatted": "Stats" },
            "lines": [{ "text": "Kills: 12", "formatted": "§7Kills: §f12" }],
            "items": []
          }
        }
      },
      {
        "index": 1,
        "ssid": true,
        "state": "done",
        "result": {
          "status": "kicked",
          "banned": true,
          "username": "ConsoleClient2",
          "error": "",
          "kick": { "text": "You are banned from this server.", "formatted": "§cYou are banned from this server." },
          "scoreboard": null,
          "command": null
        }
      }
    ]
  }
}
FieldMeaning
donetrue when every entry has a result.
completed, totalEntries with a result, and all entries.
position, queueLengthposition is 1 while your check runs, 2 or more while it waits behind other customers, 0 when it finished. queueLength is how many checks run or wait across all customers.
etaMsAbout how long until it finishes, in milliseconds.
indexThe entry’s place in your request. Entries come back in that order.
accountId, username, ssidWhat you sent. A username entry also names the account it used. An SSID entry only says "ssid": true: the token is never sent back.
statequeued, checking or done. result is null until done.
statusok (joined), kicked (the kick is in kick) or error (the check could not run, see error).
bannedtrue when the kick mentions a ban, a suspension, a blacklist or the word blocked.
usernameThe name the account joined with. For an SSID it is the player the token belongs to.
scoreboardThe sidebar title and every line with its score, or null.
commandThe reply to your command: opened says what the server opened (dialog, gui or null), dialogs fill lines, menus fill items (slot, item, count, name, lore). status is timeout when nothing opened within 4 seconds.

Every text from the server comes as text (plain) and formatted (with § color codes). No totals are added up for you: sum the lines you need.

Wait for the results

  1. Start the check

    Keep job.id and job.seq from the answer.

  2. Poll every few seconds

    Call GET /stat-check/{jobId}?since={seq}. With since, partial is true and entries only has the entries that changed: merge them by index and keep the new seq.

  3. Stop when done

    Stop when done is true.

One account starts per second across all customers, so 250 entries take a little over four minutes, plus any wait in the queue. A finished check stays readable until you start the next one.

Checking an SSID

TopicWhat to expect
FormatThe same as an SSID account: the three dot separated parts of the token. An expired token is refused before anything is charged.
PrivacyThe token is used for this one check and kept in memory only: by Console Client until a Node starts the check, then by that Node until the check ends. It is never stored, logged or sent back.
Refused tokenThe entry ends with Login failed: SSID token is invalid or expired in error.
Same serverConsole Client cannot see where that player is online. If they are on the same server right now, one of the two logins may be kicked.
Node updateWhile the Nodes you can use run an older version, an SSID entry ends with Checks with an SSID are not available on the Nodes yet. Try again later. in error and is not charged. Your own accounts are checked as usual.

Errors

ErrorHTTPMeaning
tier2_required403Your plan is below Tier 2.
invalid_host, invalid_port, invalid_version400The server address, port or version is not valid. Private addresses are refused.
invalid_command400command is not an object with a 1 to 256 character command, or its type is not dialog or gui.
no_accounts, too_many_accounts400accounts is empty, or has more than 250 entries (max).
invalid_entry400An entry is not an object with exactly one of accountId, username or ssid.
account_not_found400No account of yours has that ID or player name.
bedrock_not_supported400The account is a Bedrock account. Stat Checker is Java only.
invalid_ssid, ssid_expired400The token is not a session token, or its time ran out.
duplicate_entry400The same account or token is in the list twice.
quota_exceeded, quota_short429No checks are left this month, or fewer than you sent. quota has the numbers.
job_running429Your last check is still running or queued. jobId names it, unless that check is still being set up.
no_proxies503No residential proxy is available right now. Try again later.
job_not_found404No check of yours with that ID. Only your current or last check can be read. An ID that is not 16 hex characters answers unknown_endpoint.

Errors about one entry carry its index. Nothing is charged for a refused request. Other problems show in an entry’s error, like an account that is online on that server right now.

Need a hand?

Check the troubleshooting guide or return to all guides.