Developer API
Public Training Sandbox data: player profiles, online players, player counts by game mode, and visible worlds.
Request
GET https://training-sandbox.com/api/online
No key or sign-in is required. For automated polling, one request every 30 seconds is enough.
Response
{
"data": [
{
"login": "Example_Player",
"playerid": 42,
"online": 1
}
]
}
login— In-game nickname.playerid— In-game ID of the current connection, or null if unavailable.online— The number 1: this list only contains connected players.
A 200 response with an empty data array means the fresh snapshot contains no players.
A 503 response with roster_unavailable means no fresh list is available. Wait for the interval in Retry-After before retrying.
More than 60 requests per minute from one IP returns 429. Wait for the interval in Retry-After before retrying.
Player profile by nickname
GET /api/user/{nickname}
Returns a public profile and saved game statistics, including offline accounts. Replace {nickname} with the in-game nickname and encode it as a single URL segment. No key or sign-in is required.
GET /api/user/Example_Player
{
"data": {
"id": 42,
"login": "Example_Player",
"online": 0,
"playerid": 0,
"chase_rating": 4010,
"warn": [],
"warning_count": 0,
"warn_truncated": false
}
}
Shortened response example. The full data object contains every field below; null means a value is unavailable.
Profile fields
id- Permanent account ID.
login- In-game nickname.
access, moder- Game access level and administrator status from the legacy API.
verify, verifyText- Verification code and public verification label.
mute- Saved mute expiry as Unix seconds; 0 means no expiry. An expired timestamp does not indicate an active mute.
regdate, lastlogin- Registration date and saved last login date.
bonuspoints- BonusPoints balance.
premium, premium_expdate- Saved Premium type: 0 — none, 1 — temporary, 2 — permanent; expiry date. Check the date as well for temporary Premium.
chase_rating, chase_season- Saved current CopChase rating and season number.
chase_access_rating, chase_rp- Rating used to unlock purchases and accumulated CopChase RP (0–7000).
murders- Number of kills.
death- Number of deaths.
world_likes- Number of world likes.
played_today_minutes- Saved daily play time in minutes. This is not total play time.
spikes- Number of spikes.
chase_escapes- Saved CopChase escape count.
chase_arrests- Saved CopChase arrest count.
social_credits- Social Credits from −6000 to 9000.
warn- Up to 10 latest warnings: reason — warning reason, admin — administrator nickname, bantime — date. An empty array means no warnings; null means unavailable. The internal Halloween quarantine marker is excluded.
warning_count- Total number of warnings.
warn_truncated- true if the warning list is shortened.
online, playerid- Connection status and in-game ID; id contains the permanent account ID.
Dates and data freshness
Date strings use YYYY-MM-DD HH:MM:SS in UTC. Saved values may lag behind gameplay; saved daily play time for an offline account may belong to an earlier day.
Online status and in-game ID
With a fresh player list, online is 1 or 0. For legacy compatibility, offline players have playerid 0. An online player can also have ID 0: check online. Without a fresh list, both fields are null; the rest of the profile remains available.
Request limits
Profiles allow up to 10 requests per minute per IP and 60 in total. On 429, respect Retry-After.
Errors
404 user_not_found- No matching account.
422 invalid_nickname- Invalid nickname.
503 profile_unavailable- Service temporarily unavailable.
These responses have data set to null.
Players by game mode
GET /api/modes
The data object contains player counts for hns, copchase, dm, gungame, derby, soccer and wot. A null count means the count is unavailable. The hns_enabled flag shows whether HNS is enabled.
Public worlds
GET /api/worlds
The data array contains visible worlds: id, name, online, lock (access mode 0–3 or null) and static (whether the world is permanent).
For modes and worlds, sampled_at is the snapshot time in Unix seconds. If no fresh snapshot is available, the API returns 503 and snapshot_unavailable.