{"openapi":"3.1.0","info":{"title":"gameWE API","version":"1","description":"Read-only JSON API of the gameWE statistics. It returns only what the website shows to everyone: no IP addresses, no chat, no hidden players, no admin data, no hidden rankings. Banned players are shown where the website shows them: on the bans list and their profile.\n\n- **Authentication:** none (the admin API below needs an API token).\n- **Rate limit:** 120 requests per minute and client address; above that the answer is `429` with a `Retry-After` header.\n- **Caching:** answers may be cached for 30 seconds (`Cache-Control: public, max-age=30`); banners as long as on the website (1 to 15 minutes).\n- **Banners** (`/players/{id}/banner`, `/rankings/{game}/servers/{id}/banner`, `/voice/teamspeak/banner`) answer `image/png`, errors as JSON; they are the same pictures as the website's `/banner/...png` addresses.\n- **Settings:** endpoints of parts the site's admin turned off (live map, player map, events, hall of fame, TeamSpeak) answer 404 like the website.\n- **CORS:** `Access-Control-Allow-Origin: *`, so pages on other sites can call it from the browser.\n- **Times** are Unix timestamps in seconds; days are `YYYY-MM-DD`.\n- **Lists** are paged: `limit` (1-100, default 25) and `page` (from 1) or `offset`. The answer is `{ data, pagination, links }`: `pagination` has page, limit, offset, total and totalPages; `links` has self, first, prev, next and last (null at the ends). Lists with `sort` accept the listed fields and `order=asc|desc`.\n- **Errors** are `{ \"error\": \"...\" }`: `400` for an invalid parameter (the message says which and what it accepts), `404` for anything unknown or not public, also for unknown paths under `/api/v1`. Unknown parameters are ignored.\n- **Points** are the values the website shows in its points columns (`points`, `avgPoints`, `totalPoints`, `pointsChange`); the older names `skill`, `avgSkill` and `skillChange` still carry the same values but are deprecated. Sort keys accept `points` as well as `skill`.\n- **Values** are computed as on the website: `kpd` is kills per death (the kills when there are no deaths), `hpk`, `accuracy` and shares are fractions (0.3125 = 31.25 %), `activity` uses the site's activity setting. Hidden players are left out exactly as on the website; banned players appear on the bans list and their profile only, as there.\n- **Order** is stable: equal values keep the order of their IDs.\n\n## Admin API\n\nEverything the admin area can do, under `/api/v1/admin/...`, with an **API token** of an admin (tags *Admin: ...*).\n\n- **Token:** sign in to the admin area, open *My account → API tokens*, give the token a name (at most 40 characters) and optionally an expiry, and confirm with your password (and your TOTP code if it is set up). The token (`gwe_...`) is shown **once**; only a hash is stored. Up to 20 tokens per admin; revoking one takes effect at once.\n- **Authentication:** `Authorization: Bearer gwe_...` on every request. Nothing else (no cookie, no query parameter). A missing, wrong, expired or revoked token, or one of an admin that was deleted or lost admin rights, gets `401` without details.\n- **Scopes:** chosen when the token is made: `read` (`GET`), `write` (every other method) and `mcp`. A request outside them gets `403 insufficient_scope`. Tokens made before scopes have `read` and `write`.\n- **MCP server:** `POST /api/v1/admin/mcp` (Model Context Protocol, Streamable HTTP, stateless, JSON answers) for tokens with `mcp`: one tool per operation below, named by its `operationId` (`GET` with `read`, the others with `write`), returning the same JSON. A changing tool first answers only what it would do and a `confirmation` code (5 minutes, usable once); the same call with that code does it. Requests with an `Origin` header (web pages) get `403 forbidden_origin`; invalid JSON-RPC messages HTTP `400`. Tokens with `mcp` always expire. Admin → Settings → API can turn the MCP server off on its own: it then answers `404` `{\"error\":\"mcp_disabled\"}`, the rest of the API keeps working.\n- **Rights:** the token acts as its admin, with their rights: level 100 may do everything; level 80 only what the rights set for them allow (`rankings.view`, `servers.edit`, `resets`, ...: Admin → Users, or `permissions` of the users operations), as in the admin area. Each operation names the right it needs; without it `403 forbidden`. Admins and their rights are managed only by level 100. Every change is logged with the admin and the token name.\n- **Never with a token** (`403 self_security_forbidden`):\n  - change, set or reset the password of its own account\n  - set up, remove or reset TOTP (two-factor) of its own account\n  - change, demote or delete its own account (the user name is the login)\n  - create, list or revoke API tokens (also its own): only on the account page, signed in\n  - sign in, sign out or manage sessions\n  Other admins can be created (with a first password), changed (level, rights) and deleted as in the admin area, by level 100 only; the last level 100 admin cannot be demoted or deleted (`409 last_full_admin`), and nobody hands out a right they lack (`403 forbidden`). The password of an existing admin is never set (`403 password_own_only`): each admin changes only their own, on the account page.\n- **Bodies** are JSON (`Content-Type: application/json`, at most 64 KB). Unknown, read-only or wrongly typed fields are refused (`400`); `PATCH` changes only the fields sent. The checks are those of the admin pages.\n- **Errors:** `{ \"error\": code, \"message\": text, \"field\"?: name }` with `400`, `401`, `403`, `404`, `405`, `409` (`mismatch`, `duplicate`), `413`, `415`, `429`, `503`.\n- **Rate limit:** 300 requests per minute per address and per token; 20 failed authentications per 15 minutes block the address for 15 minutes.\n- **Caching:** never (`Cache-Control: no-store`); no CORS.","license":{"name":"GPL-3.0-or-later","identifier":"GPL-3.0-or-later"}},"servers":[{"url":"/stats/api/v1"}],"tags":[{"name":"Index"},{"name":"Rankings"},{"name":"Players"},{"name":"Countries, states and cities"},{"name":"Clans"},{"name":"Weapons"},{"name":"Maps"},{"name":"Awards and ranks"},{"name":"Actions and teams"},{"name":"Servers"},{"name":"Statistics"},{"name":"Events"},{"name":"Hall of fame"},{"name":"Bans"},{"name":"Player maps"},{"name":"Search"},{"name":"Voice server"},{"name":"Banners"},{"name":"Admin: account"},{"name":"Admin: rankings"},{"name":"Admin: servers"},{"name":"Admin: players and clans"},{"name":"Admin: definitions"},{"name":"Admin: users"},{"name":"Admin: settings"},{"name":"Admin: jobs and resets"},{"name":"Admin: data"}],"x-tagGroups":[{"name":"Public","tags":["Index","Rankings","Players","Countries, states and cities","Clans","Weapons","Maps","Awards and ranks","Actions and teams","Servers","Statistics","Events","Hall of fame","Bans","Player maps","Search","Voice server","Banners"]},{"name":"Admin","tags":["Admin: account","Admin: rankings","Admin: servers","Admin: players and clans","Admin: definitions","Admin: users","Admin: settings","Admin: jobs and resets","Admin: data"]}],"paths":{"/":{"get":{"operationId":"index","tags":["Index"],"summary":"API index","description":"Version and the list of endpoints.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","description":"API version"},"docs":{"type":"string","description":"Path of this documentation"},"endpoints":{"type":"array","items":{"type":"string","description":""}}},"required":["version","docs","endpoints"]},"example":{"version":1,"docs":"/stats/api","endpoints":["/stats/api/v1/rankings","/stats/api/v1/rankings/{game}?limit=10&offset=0","/stats/api/v1/rankings/{game}/players","/stats/api/v1/rankings/{game}/stats?days=30","/stats/api/v1/rankings/{game}/countries","/stats/api/v1/rankings/{game}/countries/{country}","/stats/api/v1/rankings/{game}/states","/stats/api/v1/rankings/{game}/cities","/stats/api/v1/rankings/{game}/clans","/stats/api/v1/rankings/{game}/clans/{id}","/stats/api/v1/rankings/{game}/clans/{id}/members","/stats/api/v1/rankings/{game}/weapons","/stats/api/v1/rankings/{game}/weapons/{code}","/stats/api/v1/rankings/{game}/weapons/{code}/players","/stats/api/v1/rankings/{game}/maps","/stats/api/v1/rankings/{game}/maps/{id}","/stats/api/v1/rankings/{game}/maps/{id}/players","/stats/api/v1/rankings/{game}/awards","/stats/api/v1/rankings/{game}/ribbons","/stats/api/v1/rankings/{game}/ranks","/stats/api/v1/rankings/{game}/ranks/{rank}/players","/stats/api/v1/rankings/{game}/actions","/stats/api/v1/rankings/{game}/actions/{id}","/stats/api/v1/rankings/{game}/teams","/stats/api/v1/rankings/{game}/servers","/stats/api/v1/rankings/{game}/servers/{id}","/stats/api/v1/rankings/{game}/servers/{id}/load?hours=24","/stats/api/v1/servers","/stats/api/v1/stats?days=30","/stats/api/v1/players/{id}","/stats/api/v1/players/{id}/weapons","/stats/api/v1/players/{id}/hitboxes","/stats/api/v1/players/{id}/maps","/stats/api/v1/players/{id}/history","/stats/api/v1/players/{id}/teams","/stats/api/v1/players/{id}/actions","/stats/api/v1/players/{id}/opponents","/stats/api/v1/players/{id}/kills","/stats/api/v1/players/{id}/names","/stats/api/v1/players/{id}/awards","/stats/api/v1/players/{id}/ribbons","/stats/api/v1/players/{id}/events","/stats/api/v1/players/{id}/radar","/stats/api/v1/players/{id}/banner?size=normal&layout=a&bg=plain&lang=en","/stats/api/v1/rankings/{game}/servers/{id}/banner?size=normal&layout=a&bg=plain&lang=en","/stats/api/v1/voice/teamspeak/banner?size=normal&layout=a&bg=plain&lang=en","/stats/api/v1/banners/styles","/stats/api/v1/voice","/stats/api/v1/voice/teamspeak","/stats/api/v1/search/players","/stats/api/v1/search/clans","/stats/api/v1/points","/stats/api/v1/activity?days=30","/stats/api/v1/rankings/{game}/activity?days=14","/stats/api/v1/rankings/{game}/load?hours=24","/stats/api/v1/rankings/{game}/map/live","/stats/api/v1/rankings/{game}/map/players?show=top","/stats/api/v1/rankings/{game}/clans/{id}/map","/stats/api/v1/rankings/{game}/clans/{id}/history?days=30","/stats/api/v1/rankings/{game}/clans/{id}/radar","/stats/api/v1/rankings/{game}/clans/{id}/weapons","/stats/api/v1/rankings/{game}/clans/{id}/maps","/stats/api/v1/rankings/{game}/clans/{id}/events","/stats/api/v1/rankings/{game}/events","/stats/api/v1/rankings/{game}/events/stats?period=24h","/stats/api/v1/rankings/{game}/bans","/stats/api/v1/rankings/{game}/hall-of-fame","/stats/api/v1/rankings/{game}/hall-of-fame/stars","/stats/api/v1/rankings/{game}/misc","/stats/api/v1/rankings/{game}/maps/{id}/heatmap"]}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings":{"get":{"operationId":"listRankings","tags":["Rankings"],"summary":"All rankings","description":"Every ranking with its servers, the players online and the current number one.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"name":{"type":"string","description":"Name of the ranking"},"baseGame":{"anyOf":[{"type":"string","description":"Code of the base game (realgame)"},{"type":"null"}]},"servers":{"type":"integer","description":"Servers"},"players":{"type":"integer","description":"Players online, bots included"},"bots":{"type":"integer","description":"Bots among the players online"},"maxPlayers":{"type":"integer","description":"Slots of all servers"},"top":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"name":{"type":"string","description":"Name"},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]}},"required":["id","name","country"]},{"type":"null"}]},"topClan":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Clan ID"},"tag":{"type":"string","description":"Clan tag"}},"required":["id","tag"]},{"type":"null"}]}},"required":["game","name","baseGame","servers","players","bots","maxPlayers","top","topClan"]}},"example":[{"game":"cstrike","name":"Counter-Strike: Source","baseGame":"css","servers":2,"players":9,"bots":0,"maxPlayers":48,"top":{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"}},"topClan":{"id":3,"tag":"[EX]"}}]}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}":{"get":{"operationId":"getRanking","tags":["Rankings"],"summary":"One ranking","description":"Totals of a ranking and its best players by points. For paging, filters and sorting use `/rankings/{game}/players`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"limit","in":"query","description":"Players","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":10}},{"name":"offset","in":"query","description":"Players to skip","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"name":{"type":"string","description":"Name of the ranking"},"baseGame":{"anyOf":[{"type":"string","description":"Code of the base game"},{"type":"null"}]},"totals":{"type":"object","properties":{"players":{"type":"integer","description":"Players"},"newPlayers24h":{"type":"integer","description":"New players in the last 24 hours"},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"},"servers":{"type":"integer","description":"Servers"}},"required":["players","newPlayers24h","kills","headshots","servers"]},"rankedPlayers":{"type":"integer","description":"Players with a place in the ranking (a kill or a death)"},"players":{"type":"array","items":{"$ref":"#/components/schemas/RankingRow"}}},"required":["game","name","baseGame","totals","rankedPlayers","players"]},"example":{"game":"cstrike","name":"Counter-Strike: Source","baseGame":"css","totals":{"players":1234,"newPlayers24h":5,"kills":456789,"headshots":123456,"servers":2},"rankedPlayers":1180,"players":[{"position":1,"rank":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"points":2210,"skill":2210,"kills":5321,"deaths":2410,"headshots":1904,"kpd":2.21,"hpk":0.3578,"accuracy":0.3163,"connectionTime":432000,"firstConnect":1735689600,"lastEvent":1767225600,"activity":98}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/players":{"get":{"operationId":"listRankingPlayers","tags":["Players"],"summary":"Players of a ranking","description":"The ranking as a paged list with the columns and filters of the website's ranking: country, state, city, clan and a name search. `position` numbers the rows of this list (the website's # column), `rank` is always the place in the whole ranking, also in a filtered or re-sorted list. By points the order is points, then kills, then fewer deaths, then the lower player ID; players without a kill and a death have no place (`rank` null) and come last. Hidden and banned players are not listed. Sort fields: `points` (or `skill`), `name`, `activity` last seen, `time` time on the servers, `kills`, `deaths`, `kpd`, `hs` headshots, `hpk` headshots per kill, `acc` accuracy, `new` first seen; ties by player ID.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"country","in":"query","description":"Only this country (ISO 3166-1 alpha-2 code, any case)","schema":{"type":"string","description":"","pattern":"^[A-Za-z]{2}$"},"example":"de"},{"name":"state","in":"query","description":"Only this state or region (exact GeoIP name, any case; best together with country)","schema":{"type":"string","description":"","maxLength":80},"example":"Bavaria"},{"name":"city","in":"query","description":"Only this city (exact name, any case; best together with country)","schema":{"type":"string","description":"","maxLength":80},"example":"Berlin"},{"name":"clan","in":"query","description":"Only members of this clan (clan ID)","schema":{"type":"integer","description":"","minimum":1}},{"name":"q","in":"query","description":"Part of the current name","schema":{"type":"string","description":"","maxLength":64}},{"name":"view","in":"query","description":"ranked: the ranking; inactive: the players the collector moved out of the ranking for inactivity (the website's Inactive players), by last seen, without a place (rank null) and without country, state or city filter","schema":{"type":"string","description":"","enum":["ranked","inactive"],"default":"ranked"}},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["skill","name","activity","time","kills","career","deaths","kpd","hs","hpk","acc","new","points"],"default":"skill"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RankingRow"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"rank":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"points":2210,"skill":2210,"kills":5321,"deaths":2410,"headshots":1904,"kpd":2.21,"hpk":0.3578,"accuracy":0.3163,"connectionTime":432000,"firstConnect":1735689600,"lastEvent":1767225600,"activity":98}],"pagination":{"page":1,"limit":25,"offset":0,"total":1180,"totalPages":48},"links":{"self":"/stats/api/v1/rankings/cstrike/players","first":"/stats/api/v1/rankings/cstrike/players","prev":null,"next":"/stats/api/v1/rankings/cstrike/players?page=2","last":"/stats/api/v1/rankings/cstrike/players?page=48"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/stats":{"get":{"operationId":"getRankingStats","tags":["Statistics"],"summary":"Statistics of a ranking","description":"Totals of a ranking and its activity per day (active players, kills, headshots), oldest day first; days without data are 0.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"days","in":"query","description":"Days back, today included","schema":{"type":"integer","description":"","minimum":1,"maximum":365,"default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"name":{"type":"string","description":"Name of the ranking"},"baseGame":{"anyOf":[{"type":"string","description":"Code of the base game"},{"type":"null"}]},"totals":{"type":"object","properties":{"players":{"type":"integer","description":"Players"},"rankedPlayers":{"type":"integer","description":"Players with a place in the ranking (a kill or a death)"},"newPlayers24h":{"type":"integer","description":"New players in the last 24 hours"},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"},"servers":{"type":"integer","description":"Servers"}},"required":["players","rankedPlayers","newPlayers24h","kills","headshots","servers"]},"days":{"type":"array","items":{"$ref":"#/components/schemas/DayActivity"}}},"required":["game","name","baseGame","totals","days"]},"example":{"game":"cstrike","name":"Counter-Strike: Source","baseGame":"css","totals":{"players":1234,"rankedPlayers":1180,"newPlayers24h":5,"kills":456789,"headshots":123456,"servers":2},"days":[{"day":"2026-01-01","players":31,"kills":4210,"headshots":1388},{"day":"2026-01-02","players":28,"kills":3987,"headshots":1290}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/countries":{"get":{"operationId":"listCountries","tags":["Countries, states and cities"],"summary":"Country ranking","description":"Countries of the ranked players (by GeoIP of their last connect) with summed and averaged values, by total points (`?sort=players` orders by number of players). `avg` (or `avgPoints`) sorts by average points, `skill` (or `points`, `totalPoints`) by total points.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["players","skill","avg","kills","deaths","kpd","hpk","time","name","points","totalPoints","avgPoints"],"default":"skill"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Place"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"country":{"code":"DE","name":"Germany"},"players":412,"avgPoints":1209,"totalPoints":498000,"skill":498000,"avgSkill":1209,"kills":812345,"deaths":790122,"headshots":260111,"kpd":1.03,"hpk":0.3202,"connectionTime":98765432,"lastEvent":1767225600,"playersUrl":"/stats/api/v1/rankings/cstrike/players?country=de"}],"pagination":{"page":1,"limit":25,"offset":0,"total":34,"totalPages":2},"links":{"self":"/stats/api/v1/rankings/cstrike/countries","first":"/stats/api/v1/rankings/cstrike/countries","prev":null,"next":"/stats/api/v1/rankings/cstrike/countries?page=2","last":"/stats/api/v1/rankings/cstrike/countries?page=2"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/countries/{country}":{"get":{"operationId":"getCountry","tags":["Countries, states and cities"],"summary":"One country","description":"Totals of one country and its place in the country ranking by total points. Its players: `playersUrl`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"country","in":"path","required":true,"description":"ISO 3166-1 alpha-2 code, any case","schema":{"type":"string","description":"","pattern":"^[A-Za-z]{2}$"},"example":"de"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"}},"required":["game"]},{"$ref":"#/components/schemas/Place"}]},"example":{"game":"cstrike","rank":1,"country":{"code":"DE","name":"Germany"},"players":412,"avgPoints":1209,"totalPoints":498000,"skill":498000,"avgSkill":1209,"kills":812345,"deaths":790122,"headshots":260111,"kpd":1.03,"hpk":0.3202,"connectionTime":98765432,"lastEvent":1767225600,"playersUrl":"/stats/api/v1/rankings/cstrike/players?country=de"}}}},"404":{"description":"Unknown ranking, or no ranked player from this country","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/states":{"get":{"operationId":"listStates","tags":["Countries, states and cities"],"summary":"State ranking","description":"States and regions of the ranked players (GeoIP subdivision of their last connect), optionally of one country, by total points (`?sort=players` orders by number of players). States are counted per country, so the same name in two countries stays apart. Its players: `playersUrl` (country and state filter of `/players`).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"country","in":"query","description":"Only this country (ISO 3166-1 alpha-2 code, any case)","schema":{"type":"string","description":"","pattern":"^[A-Za-z]{2}$"},"example":"de"},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["players","skill","avg","kills","deaths","kpd","hpk","time","name","points","totalPoints","avgPoints"],"default":"skill"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlaceState"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"country":{"code":"DE","name":"Germany"},"players":88,"avgPoints":1209,"totalPoints":498000,"skill":498000,"avgSkill":1209,"kills":812345,"deaths":790122,"headshots":260111,"kpd":1.03,"hpk":0.3202,"connectionTime":98765432,"lastEvent":1767225600,"playersUrl":"/stats/api/v1/rankings/cstrike/players?country=de&state=Bavaria","state":"Bavaria"}],"pagination":{"page":1,"limit":25,"offset":0,"total":16,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/states?country=de","first":"/stats/api/v1/rankings/cstrike/states?country=de","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/states?country=de"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/cities":{"get":{"operationId":"listCities","tags":["Countries, states and cities"],"summary":"City ranking","description":"Cities of the ranked players, optionally of one country, by total points (`?sort=players` orders by number of players). Its players: `playersUrl` (country and city filter of `/players`).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"country","in":"query","description":"Only this country (ISO 3166-1 alpha-2 code, any case)","schema":{"type":"string","description":"","pattern":"^[A-Za-z]{2}$"},"example":"de"},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["players","skill","avg","kills","deaths","kpd","hpk","time","name","points","totalPoints","avgPoints"],"default":"skill"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlaceCity"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"country":{"code":"DE","name":"Germany"},"players":57,"avgPoints":1209,"totalPoints":498000,"skill":498000,"avgSkill":1209,"kills":812345,"deaths":790122,"headshots":260111,"kpd":1.03,"hpk":0.3202,"connectionTime":98765432,"lastEvent":1767225600,"playersUrl":"/stats/api/v1/rankings/cstrike/players?country=de&city=Berlin","city":"Berlin"}],"pagination":{"page":1,"limit":25,"offset":0,"total":120,"totalPages":5},"links":{"self":"/stats/api/v1/rankings/cstrike/cities?country=de","first":"/stats/api/v1/rankings/cstrike/cities?country=de","prev":null,"next":"/stats/api/v1/rankings/cstrike/cities?country=de&page=2","last":"/stats/api/v1/rankings/cstrike/cities?country=de&page=5"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans":{"get":{"operationId":"listClans","tags":["Clans"],"summary":"Clan ranking","description":"Clans with at least two ranked members, by average points. The country is the most common one among the members. `view=inactive`: the website's inactive clans (at least two members, fewer than two of them still active), by last seen, with the numbers of all members.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"view","in":"query","description":"ranked (default) or inactive","schema":{"type":"string","description":"","enum":["ranked","inactive"],"default":"ranked"}},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["skill","members","kills","deaths","headshots","kpd","hpk","time","activity","tag","points","avgPoints"],"default":"skill"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ClanRanked"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"id":3,"tag":"[EX]","name":"Example Clan","homepage":"https://clan.example.org/","country":{"code":"DE","name":"Germany"},"members":8,"avgPoints":1650,"avgSkill":1650,"kills":23456,"deaths":19876,"headshots":7012,"kpd":1.18,"hpk":0.299,"connectionTime":1234567,"lastEvent":1767225600}],"pagination":{"page":1,"limit":25,"offset":0,"total":12,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/clans","first":"/stats/api/v1/rankings/cstrike/clans","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/clans"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}":{"get":{"operationId":"getClan","tags":["Clans"],"summary":"One clan","description":"One clan with the totals of its ranked members, where its members come from (active and inactive ones, by country) and the links to the other parts of the clan page.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"}},"required":["game"]},{"$ref":"#/components/schemas/Clan"},{"type":"object","properties":{"inactive":{"type":"boolean","description":"Fewer than two active members: an inactive clan (the website then shows the numbers of all members)"},"inactiveMembers":{"type":"integer","description":"Members the collector moved out of the ranking for inactivity"},"origins":{"type":"array","items":{"type":"object","properties":{"country":{"$ref":"#/components/schemas/Country"},"members":{"type":"integer","description":"Members from this country"}},"required":["country","members"]}},"membersUrl":{"type":"string","description":"Path of its members in this API"},"links":{"type":"object","properties":{"history":{"type":"string","description":"Path of the clan's history in this API"},"radar":{"type":"string","description":"Path of the clan's radar in this API"},"weapons":{"type":"string","description":"Path of the clan's weapons in this API"},"maps":{"type":"string","description":"Path of the clan's maps in this API"},"map":{"type":"string","description":"Path of the clan's map in this API"},"events":{"type":"string","description":"Path of the clan's events in this API"}},"required":["history","radar","weapons","maps","map","events"]}},"required":["inactive","inactiveMembers","origins","membersUrl","links"]}]},"example":{"game":"cstrike","id":3,"tag":"[EX]","name":"Example Clan","homepage":"https://clan.example.org/","country":{"code":"DE","name":"Germany"},"members":8,"avgPoints":1650,"avgSkill":1650,"kills":23456,"deaths":19876,"headshots":7012,"kpd":1.18,"hpk":0.299,"connectionTime":1234567,"lastEvent":1767225600,"inactive":false,"inactiveMembers":2,"origins":[{"country":{"code":"DE","name":"Germany"},"members":7}],"membersUrl":"/stats/api/v1/rankings/cstrike/clans/3/members","links":{"history":"/stats/api/v1/rankings/cstrike/clans/3/history","radar":"/stats/api/v1/rankings/cstrike/clans/3/radar","weapons":"/stats/api/v1/rankings/cstrike/clans/3/weapons","maps":"/stats/api/v1/rankings/cstrike/clans/3/maps","map":"/stats/api/v1/rankings/cstrike/clans/3/map","events":"/stats/api/v1/rankings/cstrike/clans/3/events"}}}}},"404":{"description":"Unknown clan, or the clan belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}/members":{"get":{"operationId":"listClanMembers","tags":["Clans"],"summary":"Members of a clan","description":"The ranked members of a clan (the website's clan page); `position` numbers the rows, `rank` is the place in the whole ranking. Sort fields as in `/players`. `view=inactive`: the members the collector moved out of the ranking, by last seen, without a place.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3},{"name":"view","in":"query","description":"ranked (default) or inactive","schema":{"type":"string","description":"","enum":["ranked","inactive"],"default":"ranked"}},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["skill","name","activity","time","kills","career","deaths","kpd","hs","hpk","acc","new","points"],"default":"skill"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RankingRow"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"rank":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"points":2210,"skill":2210,"kills":5321,"deaths":2410,"headshots":1904,"kpd":2.21,"hpk":0.3578,"accuracy":0.3163,"connectionTime":432000,"firstConnect":1735689600,"lastEvent":1767225600,"activity":98}],"pagination":{"page":1,"limit":25,"offset":0,"total":8,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/clans/3/members","first":"/stats/api/v1/rankings/cstrike/clans/3/members","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/clans/3/members"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown clan, or the clan belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/weapons":{"get":{"operationId":"listWeapons","tags":["Weapons"],"summary":"Weapons","description":"The weapons of a ranking that have kills, by kills, with the columns of the website's weapons table (kills and headshots with their share of all).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["kills","headshots","hpk","modifier","name","code"],"default":"kills"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Weapon"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"code":"ak47","name":"AK-47","modifier":1,"kills":123456,"killShare":0.2612,"headshots":45678,"headshotShare":0.3011,"hpk":0.37}],"pagination":{"page":1,"limit":25,"offset":0,"total":28,"totalPages":2},"links":{"self":"/stats/api/v1/rankings/cstrike/weapons","first":"/stats/api/v1/rankings/cstrike/weapons","prev":null,"next":"/stats/api/v1/rankings/cstrike/weapons?page=2","last":"/stats/api/v1/rankings/cstrike/weapons?page=2"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/weapons/{code}":{"get":{"operationId":"getWeapon","tags":["Weapons"],"summary":"One weapon","description":"Totals of one weapon. Its best players: `playersUrl`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"code","in":"path","required":true,"description":"Code of the weapon, as in /weapons","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_.-]{1,64}$"},"example":"awp"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"code":{"type":"string","description":"Weapon code"},"name":{"type":"string","description":"Weapon name"},"modifier":{"type":"number","description":"Points modifier"},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"playersUrl":{"type":"string","description":"Path of its best players in this API"}},"required":["game","code","name","modifier","kills","headshots","hpk","playersUrl"]},"example":{"game":"cstrike","code":"awp","name":"AWP","modifier":1,"kills":54321,"headshots":9876,"hpk":0.1818,"playersUrl":"/stats/api/v1/rankings/cstrike/weapons/awp/players"}}}},"404":{"description":"Unknown ranking or weapon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/weapons/{code}/players":{"get":{"operationId":"listWeaponPlayers","tags":["Weapons"],"summary":"Best players with a weapon","description":"Ranked players with kills by this weapon, by kills (all time).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"code","in":"path","required":true,"description":"Code of the weapon, as in /weapons","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_.-]{1,64}$"},"example":"awp"},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WeaponPlayer"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false,"kills":1234,"headshots":345,"shots":5678,"hits":2345,"hpk":0.2796,"accuracy":0.413}],"pagination":{"page":1,"limit":25,"offset":0,"total":410,"totalPages":17},"links":{"self":"/stats/api/v1/rankings/cstrike/weapons/awp/players","first":"/stats/api/v1/rankings/cstrike/weapons/awp/players","prev":null,"next":"/stats/api/v1/rankings/cstrike/weapons/awp/players?page=2","last":"/stats/api/v1/rankings/cstrike/weapons/awp/players?page=17"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking or weapon","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/maps":{"get":{"operationId":"listMaps","tags":["Maps"],"summary":"Maps","description":"The maps of a ranking that were played, by kills, with the columns of the website's maps table: time, kills and headshots with their share of all maps, CT/T round wins.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["kills","headshots","hpk","played","time","rounds","name","map"],"default":"kills"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MapRanked"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"id":7,"name":"de_dust2","kills":345678,"headshots":112233,"hpk":0.3247,"teamKills":321,"teamAWins":5012,"teamBWins":4876,"played":2345,"playTime":3456789,"rounds":9888,"ctWins":4876,"tWins":5012,"winRatio":{"ct":49,"t":51},"timeShare":0.2134,"killShare":0.3012,"headshotShare":0.2988}],"pagination":{"page":1,"limit":25,"offset":0,"total":15,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/maps","first":"/stats/api/v1/rankings/cstrike/maps","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/maps"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/maps/{id}":{"get":{"operationId":"getMap","tags":["Maps"],"summary":"One map","description":"One map with the details of the website's map page: play time (stored or counted from the server load, the larger), CT/T round wins, kills per minute, accuracy and the kills of hidden players. Its players: `playersUrl`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the map","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":7}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"}},"required":["game"]},{"$ref":"#/components/schemas/Map"},{"type":"object","properties":{"killsPerMinute":{"anyOf":[{"type":"number","description":"Kills per minute of play time, two decimals; null without play time"},{"type":"null"}]},"accuracy":{"anyOf":[{"anyOf":[{"type":"number","description":"Hits per shot from the per-map player stats; null when there are none, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},{"type":"null"}]},"players":{"type":"integer","description":"Ranked players with a kill on this map"},"hiddenKills":{"type":"integer","description":"Kills by hidden players (counted, not listed)"},"playersUrl":{"type":"string","description":"Path of its players in this API"}},"required":["killsPerMinute","accuracy","players","hiddenKills","playersUrl"]}]},"example":{"game":"cstrike","id":7,"name":"de_dust2","kills":345678,"headshots":112233,"hpk":0.3247,"teamKills":321,"teamAWins":5012,"teamBWins":4876,"played":2345,"playTime":3456789,"rounds":9888,"ctWins":4876,"tWins":5012,"winRatio":{"ct":49,"t":51},"killsPerMinute":6.01,"accuracy":null,"players":96,"hiddenKills":12,"playersUrl":"/stats/api/v1/rankings/cstrike/maps/7/players"}}}},"404":{"description":"Unknown map, or the map belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/maps/{id}/players":{"get":{"operationId":"listMapPlayers","tags":["Maps"],"summary":"Players on a map","description":"The ranked players with a kill on this map, all time, as the website's map page (from the kill events): by kills, with each one's place in the ranking (`rank`, sort `position` or `rank`) and the GunGame wins in GunGame rankings. Sort fields: `kills`, `deaths`, `kpd`, `hs` (or `headshots`), `hpk`, `name`, `position`. With `days` only the last days, by kills (no `sort`).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the map","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":7},{"name":"days","in":"query","description":"Only the last days (1-90), by kills","schema":{"type":"integer","description":"","minimum":1,"maximum":90}},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["kills","deaths","kpd","hs","hpk","name","position","headshots","rank"],"default":"kills"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MapPlayer"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false,"rank":3,"kills":512,"deaths":230,"headshots":171,"kpd":2.23,"hpk":0.334,"ggWins":null}],"pagination":{"page":1,"limit":25,"offset":0,"total":96,"totalPages":4},"links":{"self":"/stats/api/v1/rankings/cstrike/maps/7/players","first":"/stats/api/v1/rankings/cstrike/maps/7/players","prev":null,"next":"/stats/api/v1/rankings/cstrike/maps/7/players?page=2","last":"/stats/api/v1/rankings/cstrike/maps/7/players?page=4"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown map, or the map belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/awards":{"get":{"operationId":"getAwards","tags":["Awards and ranks"],"summary":"Daily awards","description":"One entry per award of the ranking (not paged). Without `day`: yesterday's winners and today's leaders, as on the website. With `day` (one of the last 365 days): the winners of that day; for today the current leaders. Hidden players are left out (`null`).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"day","in":"query","description":"Day as YYYY-MM-DD","schema":{"type":"string","description":"","format":"date"},"example":"2026-01-01"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"day":{"type":"string","description":"Day of the winners","format":"date"},"leadersDay":{"anyOf":[{"type":"string","description":"Day of the leaders (today) when the answer has them","format":"date"},{"type":"null"}]},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Award ID"},"type":{"type":"string","description":"W = weapon, O = action or player value, P = player value"},"code":{"type":"string","description":"Weapon, action or player value counted"},"name":{"type":"string","description":"Award name"},"verb":{"type":"string","description":"What is counted"},"winner":{"anyOf":[{"$ref":"#/components/schemas/AwardWinner"},{"type":"null"}]},"leader":{"anyOf":[{"$ref":"#/components/schemas/AwardWinner"},{"type":"null"}]}},"required":["id","type","code","name","verb","winner","leader"]}}},"required":["game","day","leadersDay","data"]},"example":{"game":"cstrike","day":"2026-01-01","leadersDay":"2026-01-02","data":[{"id":5,"type":"W","code":"awp","name":"AWP Master","verb":"kills with awp","winner":{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false,"value":37},"leader":null}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/ribbons":{"get":{"operationId":"getRibbons","tags":["Awards and ranks"],"summary":"Ribbons and most decorated","description":"Global awards: per award how many players won it, how many reached each ribbon class and who won it most often; and the ten players with the most award wins.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"classes":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","description":"Class, from 0"},"name":{"type":"string","description":"Class name (language key, e.g. {LANG_GOLD})"},"levels":{"type":"integer","description":"Levels in this class"},"winsPerLevel":{"type":"integer","description":"Wins per level"}},"required":["index","name","levels","winsPerLevel"]}},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Award ID"},"code":{"type":"string","description":"Award code"},"name":{"type":"string","description":"Award name"},"verb":{"type":"string","description":"What is counted"},"holders":{"type":"integer","description":"Players who won it"},"perClass":{"type":"array","items":{"type":"integer","description":"Players who reached the class with the same index"}},"leader":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"wins":{"type":"integer","description":"Wins"}},"required":["id","name","country","bot","wins"]},{"type":"null"}]}},"required":["id","code","name","verb","holders","perClass","leader"]}},"mostDecorated":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","description":"Position"},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"wins":{"type":"integer","description":"Award wins"},"kills":{"type":"integer","description":"Kills"}},"required":["rank","id","name","country","bot","wins","kills"]}}},"required":["game","classes","data","mostDecorated"]},"example":{"game":"cstrike","classes":[{"index":0,"name":"{LANG_BRONZE}","levels":8,"winsPerLevel":1}],"data":[{"id":5,"code":"awp","name":"AWP Master","verb":"kills with awp","holders":23,"perClass":[23],"leader":{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false,"wins":14}}],"mostDecorated":[{"rank":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false,"wins":61,"kills":5321}]}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/ranks":{"get":{"operationId":"listRanks","tags":["Awards and ranks"],"summary":"Ranks","description":"The ranks of a ranking (kill thresholds, lowest first) with the number of ranked players in each (not paged).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"rankedPlayers":{"type":"integer","description":"Players in the ranking"},"data":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","description":"Rank index, from 0 (for /ranks/{rank}/players)"},"name":{"type":"string","description":"Rank name"},"minKills":{"type":"integer","description":"Kills needed"},"maxKills":{"anyOf":[{"type":"integer","description":"Last kill count of this rank; null for the highest"},{"type":"null"}]},"players":{"type":"integer","description":"Ranked players in this rank"},"share":{"anyOf":[{"type":"number","description":"Share of the ranked players, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"playersUrl":{"type":"string","description":"Path of its players in this API"}},"required":["index","name","minKills","maxKills","players","share","playersUrl"]}}},"required":["game","rankedPlayers","data"]},"example":{"game":"cstrike","rankedPlayers":1180,"data":[{"index":0,"name":"Private","minKills":0,"maxKills":49,"players":610,"share":0.5169,"playersUrl":"/stats/api/v1/rankings/cstrike/ranks/0/players"}]}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/ranks/{rank}/players":{"get":{"operationId":"listRankPlayers","tags":["Awards and ranks"],"summary":"Players of a rank","description":"The ranked players of one rank, by kills, with the columns of the website's rank table (kills, progress to the next rank, points, time, activity). Sort fields: `kills`, `name`, `points` (or `skill`), `time`, `activity`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"rank","in":"path","required":true,"description":"Rank index from /ranks","schema":{"type":"integer","description":"","minimum":0,"maximum":999},"example":0},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["kills","name","skill","time","activity","points"],"default":"kills"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RankPlayer"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false,"kills":48,"progress":0.96,"points":1210,"skill":1210,"connectionTime":7200,"lastEvent":1767225600,"activity":97}],"pagination":{"page":1,"limit":25,"offset":0,"total":610,"totalPages":25},"links":{"self":"/stats/api/v1/rankings/cstrike/ranks/0/players","first":"/stats/api/v1/rankings/cstrike/ranks/0/players","prev":null,"next":"/stats/api/v1/rankings/cstrike/ranks/0/players?page=2","last":"/stats/api/v1/rankings/cstrike/ranks/0/players?page=25"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking or rank","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/actions":{"get":{"operationId":"listActions","tags":["Actions and teams"],"summary":"Actions","description":"The actions of a ranking that happened (bomb planted, flag captured, ...), by count, with the columns of the website's actions table. `reward` (or `bonus`) sorts by the points bonus.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["count","reward","name","bonus"],"default":"count"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Action"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"rank":1,"id":11,"code":"Planted_The_Bomb","description":"Planted the bomb","team":"TERRORIST","bonus":3,"rewardPlayer":3,"rewardTeam":0,"count":2345,"share":0.2101,"playersUrl":"/stats/api/v1/rankings/cstrike/actions/11"}],"pagination":{"page":1,"limit":25,"offset":0,"total":9,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/actions","first":"/stats/api/v1/rankings/cstrike/actions","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/actions"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/actions/{id}":{"get":{"operationId":"getAction","tags":["Actions and teams"],"summary":"One action","description":"One action with its best players, as the website's action page: how often each triggered it and the points it brought, most often first (at most 50).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the action","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":11}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Action ID"},"code":{"type":"string","description":"Action code"},"description":{"anyOf":[{"type":"string","description":"Description"},{"type":"null"}]},"team":{"anyOf":[{"type":"string","description":"Team the action is for"},{"type":"null"}]},"bonus":{"type":"integer","description":"Points bonus: the player reward, else the team reward"},"rewardPlayer":{"type":"integer","description":"Points for the player"},"rewardTeam":{"type":"integer","description":"Points for the team"},"count":{"type":"integer","description":"Times it happened"},"players":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","description":"Position"},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"count":{"type":"integer","description":"Times this player triggered it"},"points":{"type":"integer","description":"Points it brought this player"}},"required":["position","id","name","country","bot","count","points"]}}},"required":["game","id","code","description","team","bonus","rewardPlayer","rewardTeam","count","players"]},"example":{"game":"cstrike","id":11,"code":"Planted_The_Bomb","description":"Planted the bomb","team":"TERRORIST","bonus":3,"rewardPlayer":3,"rewardTeam":0,"count":2345,"players":[{"position":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false,"count":120,"points":360}]}}}},"404":{"description":"Unknown action, or the action belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/teams":{"get":{"operationId":"listTeams","tags":["Actions and teams"],"summary":"Teams and roles","description":"The teams of a ranking with how often players (not hidden ones) joined them, and its roles (classes), not paged, as the website's teams page: most time first, time, kills and deaths with their share of the table. Teams and roles without time, kills or deaths are left out.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"teams":{"type":"array","items":{"$ref":"#/components/schemas/TeamWithJoins"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/Team"}}},"required":["game","teams","roles"]},"example":{"game":"cstrike","teams":[{"position":1,"id":1,"code":"CT","name":"Counter-Terrorists","timePlayed":3456789,"timeShare":0.5012,"kills":41234,"killShare":0.4987,"deaths":41002,"deathShare":0.5003,"headshots":13456,"kpd":1.01,"wins":4876,"losses":5012,"rounds":9888,"joined":8123}],"roles":[]}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/servers":{"get":{"operationId":"listRankingServers","tags":["Servers"],"summary":"Servers of a ranking","description":"The servers of a ranking with who is online on each. Bots have no player ID.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Server"},{"type":"object","properties":{"online":{"type":"array","items":{"$ref":"#/components/schemas/LivePlayer"}}},"required":["online"]}]}},"example":[{"id":1,"name":"Example Public #1","address":"cs.example.org:27015","map":"de_dust2","players":2,"bots":0,"maxPlayers":24,"mapStarted":1767225600,"kills":182345,"headshots":61234,"hpk":0.3358,"suicides":412,"rounds":9876,"ctWins":4876,"tWins":5000,"bombsPlanted":2345,"bombsDefused":987,"country":"DE","version":"9540945","os":"linux","vac":true,"online":[{"id":42,"name":"ExamplePlayer","bot":false,"team":"CT","kills":12,"deaths":5,"headshots":4,"hpk":0.3333,"rounds":9,"shots":140,"hits":41,"accuracy":0.2929,"ping":35,"points":1450,"pointsChange":23,"rank":7,"skill":1450,"skillChange":23,"connectedSince":1767225900,"dead":false,"country":{"code":"DE","name":"Germany"}},{"id":null,"name":"BOT Example","bot":true,"team":"TERRORIST","kills":12,"deaths":5,"headshots":4,"hpk":0.3333,"rounds":9,"shots":140,"hits":41,"accuracy":0.2929,"ping":null,"points":1450,"pointsChange":0,"rank":null,"skill":1450,"skillChange":0,"connectedSince":1767225900,"dead":false,"country":null}]}]}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/servers/{id}":{"get":{"operationId":"getRankingServer","tags":["Servers"],"summary":"One server","description":"One server of a ranking with the values of the website's server page (kills, headshots, suicides, rounds, CT/T wins, bombs) and who is online (hidden players without ID, as on the website).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the server","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"}},"required":["game"]},{"allOf":[{"$ref":"#/components/schemas/Server"},{"type":"object","properties":{"online":{"type":"array","items":{"$ref":"#/components/schemas/LivePlayer"}}},"required":["online"]}]}]},"example":{"game":"cstrike","id":1,"name":"Example Public #1","address":"cs.example.org:27015","map":"de_dust2","players":2,"bots":0,"maxPlayers":24,"mapStarted":1767225600,"kills":182345,"headshots":61234,"hpk":0.3358,"suicides":412,"rounds":9876,"ctWins":4876,"tWins":5000,"bombsPlanted":2345,"bombsDefused":987,"country":"DE","version":"9540945","os":"linux","vac":true,"online":[{"id":42,"name":"ExamplePlayer","bot":false,"team":"CT","kills":12,"deaths":5,"headshots":4,"hpk":0.3333,"rounds":9,"shots":140,"hits":41,"accuracy":0.2929,"ping":35,"points":1450,"pointsChange":23,"rank":7,"skill":1450,"skillChange":23,"connectedSince":1767225900,"dead":false,"country":{"code":"DE","name":"Germany"}}]}}}},"404":{"description":"Unknown ranking or server, or the server belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/servers/{id}/load":{"get":{"operationId":"getRankingServerLoad","tags":["Servers"],"summary":"Server load","description":"Players on one server over the last hours, one point per 10 minutes (bots included), oldest first.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the server","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1},{"name":"hours","in":"query","description":"Hours back","schema":{"type":"integer","description":"","minimum":1,"maximum":168,"default":24}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Server ID"},"hours":{"type":"integer","description":"Hours back"},"maxPlayers":{"type":"integer","description":"Slots now"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LoadPoint"}}},"required":["game","id","hours","maxPlayers","data"]},"example":{"game":"cstrike","id":1,"hours":24,"maxPlayers":24,"data":[{"time":1767225600,"players":12,"min":10,"max":14,"map":"de_dust2","uptime":86400}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking or server, or the server belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/servers":{"get":{"operationId":"listServers","tags":["Servers"],"summary":"All servers","description":"The servers of all rankings.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"}},"required":["game"]},{"$ref":"#/components/schemas/Server"}]}},"example":[{"game":"cstrike","id":1,"name":"Example Public #1","address":"cs.example.org:27015","map":"de_dust2","players":2,"bots":0,"maxPlayers":24,"mapStarted":1767225600,"kills":182345,"headshots":61234,"hpk":0.3358,"suicides":412,"rounds":9876,"ctWins":4876,"tWins":5000,"bombsPlanted":2345,"bombsDefused":987,"country":"DE","version":"9540945","os":"linux","vac":true}]}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stats":{"get":{"operationId":"getStats","tags":["Statistics"],"summary":"Statistics of all rankings","description":"Totals over all rankings, the start page's general statistics (its five cards: players of both player tables without bots, clans and the rankings with clans, servers and those with players, players online, kills with the latest one, headshots) and the activity per day (players active in any ranking, kills, headshots, clans with an active member), oldest day first.","parameters":[{"name":"days","in":"query","description":"Days back, today included","schema":{"type":"integer","description":"","minimum":1,"maximum":365,"default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"totals":{"type":"object","properties":{"rankings":{"type":"integer","description":"Rankings with servers"},"servers":{"type":"integer","description":"Servers"},"players":{"type":"integer","description":"Players"},"clans":{"type":"integer","description":"Clans"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"headshots":{"type":"integer","description":"Headshots"}},"required":["rankings","servers","players","clans","kills","deaths","headshots"]},"general":{"type":"object","properties":{"players":{"type":"integer","description":"Players of all visible rankings, also hidden, banned and inactive ones (counted, not listed), without bots"},"playersOnline":{"type":"integer","description":"Players online now, without bots"},"clans":{"type":"integer","description":"Clans of the visible rankings"},"clanRankings":{"type":"integer","description":"Rankings with clans"},"servers":{"type":"integer","description":"Servers of the visible rankings"},"serversActive":{"type":"integer","description":"Servers with players now"},"kills":{"type":"integer","description":"Kills of both player tables"},"lastKill":{"anyOf":[{"type":"integer","description":"Latest kill (Unix time, seconds)"},{"type":"null"}]},"headshots":{"type":"integer","description":"Headshots of both player tables"}},"required":["players","playersOnline","clans","clanRankings","servers","serversActive","kills","lastKill","headshots"]},"days":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/DayActivity"},{"type":"object","properties":{"activeClans":{"type":"integer","description":"Clans with an active member that day"}},"required":["activeClans"]}]}}},"required":["totals","general","days"]},"example":{"totals":{"rankings":2,"servers":3,"players":2345,"clans":21,"kills":987654,"deaths":965432,"headshots":312345},"general":{"players":2790,"playersOnline":14,"clans":21,"clanRankings":2,"servers":3,"serversActive":2,"kills":1043210,"lastKill":1767225590,"headshots":330112},"days":[{"day":"2026-01-01","players":31,"kills":4210,"headshots":1388,"activeClans":4},{"day":"2026-01-02","players":28,"kills":3987,"headshots":1290,"activeClans":4}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}":{"get":{"operationId":"getPlayer","tags":["Players"],"summary":"One player","description":"Public summary of one player with the values of the website's profile (player profile and summary) and the hall of fame stars (null where the ranking shows no hall of fame). A player banned in the ranking keeps the profile with the ban notice, as on the website (`banned`, `bans`, no `rank`); like there, they are not in the lists. Hidden players, bots without a profile and players of hidden rankings answer 404, also on all `/players/{id}/...` endpoints. No Steam ID, Steam profile, IP address or chat.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"rank":{"anyOf":[{"type":"integer","description":"Place in the ranking (1 + players with more points), the profile's Position"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"state":{"anyOf":[{"type":"string","description":"State or region of the last connect (GeoIP)"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","description":"City of the last connect (GeoIP)"},{"type":"null"}]},"clan":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Clan ID"},"tag":{"type":"string","description":"Clan tag"},"name":{"type":"string","description":"Clan name"}},"required":["id","tag","name"]},{"type":"null"}]},"points":{"type":"integer","description":"Points, as the website's points column"},"pointsChange":{"type":"integer","description":"Points won or lost at the last event (kill, death or action)"},"pointsToday":{"anyOf":[{"type":"integer","description":"Points won or lost today so far (the day in the site's time zone), beside the points on the profile: today's points against the last earlier day with history, like the player trend. null when the player has not played today"},{"type":"null"}]},"skill":{"type":"integer","description":"Points, as the website's points column (deprecated: use points)","deprecated":true},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"suicides":{"type":"integer","description":"Suicides"},"headshots":{"type":"integer","description":"Headshots"},"teamKills":{"type":"integer","description":"Team kills"},"killStreak":{"type":"integer","description":"Longest kill streak"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"killsPerMinute":{"anyOf":[{"type":"number","description":"Kills per minute on the servers, two decimals; null without time"},{"type":"null"}]},"assists":{"type":"integer","description":"Kill assists"},"assistedKills":{"type":"integer","description":"Kills of this player others helped with"},"shots":{"type":"integer","description":"Shots"},"hits":{"type":"integer","description":"Hits"},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"shotsPerKill":{"anyOf":[{"type":"number","description":"Shots per kill, two decimals; null without kills or shots"},{"type":"null"}]},"rounds":{"type":"integer","description":"Rounds (only rounds with a winner count)"},"wins":{"type":"integer","description":"Rounds won"},"losses":{"type":"integer","description":"Rounds lost"},"winRatio":{"anyOf":[{"type":"number","description":"Rounds won per round, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"survived":{"type":"integer","description":"Rounds survived"},"survivedShare":{"anyOf":[{"type":"number","description":"Rounds survived per round, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"connects":{"anyOf":[{"type":"integer","description":"Connections"},{"type":"null"}]},"averagePing":{"anyOf":[{"type":"integer","description":"Average latency in ms; null while unknown"},{"type":"null"}]},"firstConnect":{"anyOf":[{"type":"integer","description":"First seen (Unix time, seconds)"},{"type":"null"}]},"lastEvent":{"type":"integer","description":"Last seen (Unix time, seconds)"},"activity":{"type":"integer","description":"Activity in percent (100 = played today)","minimum":0,"maximum":100},"careerRank":{"anyOf":[{"type":"object","properties":{"index":{"type":"integer","description":"Rank index"},"name":{"type":"string","description":"Rank name"},"minKills":{"type":"integer","description":"Kills needed"},"nextAt":{"anyOf":[{"type":"integer","description":"Kills for the next rank"},{"type":"null"}]}},"required":["index","name","minKills","nextAt"]},{"type":"null"}]},"favoriteWeapon":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Weapon code"},"name":{"type":"string","description":"Weapon name"},"kills":{"type":"integer","description":"Kills with it"}},"required":["code","name","kills"]},{"type":"null"}]},"stars":{"anyOf":[{"type":"object","properties":{"gold":{"type":"integer","description":"First places in the hall of fame"},"silver":{"type":"integer","description":"Second places"},"bronze":{"type":"integer","description":"Third places"}},"required":["gold","silver","bronze"]},{"type":"null"}]},"banned":{"type":"boolean","description":"Banned: in the ranking (hidden as banned) or with a running ban, as the profile's ban notice and badges"},"bans":{"type":"array","items":{"$ref":"#/components/schemas/Ban"}},"links":{"type":"object","properties":{"weapons":{"type":"string","description":"Path of the player's weapons in this API"},"hitboxes":{"type":"string","description":"Path of the player's hitboxes in this API"},"maps":{"type":"string","description":"Path of the player's maps in this API"},"teams":{"type":"string","description":"Path of the player's teams in this API"},"actions":{"type":"string","description":"Path of the player's actions in this API"},"opponents":{"type":"string","description":"Path of the player's opponents in this API"},"killStats":{"type":"string","description":"Path of the player's killStats in this API"},"names":{"type":"string","description":"Path of the player's names in this API"},"history":{"type":"string","description":"Path of the player's history in this API"},"awards":{"type":"string","description":"Path of the player's awards in this API"},"ribbons":{"type":"string","description":"Path of the player's ribbons in this API"},"events":{"type":"string","description":"Path of the player's events in this API"},"radar":{"type":"string","description":"Path of the player's radar in this API"},"banner":{"type":"string","description":"Path of the player's banner in this API"}},"required":["weapons","hitboxes","maps","teams","actions","opponents","killStats","names","history","awards","ribbons","events","radar","banner"]}},"required":["id","game","name","rank","country","state","city","clan","points","pointsChange","pointsToday","skill","kills","deaths","suicides","headshots","teamKills","killStreak","kpd","hpk","killsPerMinute","assists","assistedKills","shots","hits","accuracy","shotsPerKill","rounds","wins","losses","winRatio","survived","survivedShare","connectionTime","connects","averagePing","firstConnect","lastEvent","activity","careerRank","favoriteWeapon","stars","banned","bans","links"]},"example":{"id":42,"game":"cstrike","name":"ExamplePlayer","rank":1,"country":{"code":"DE","name":"Germany"},"state":"Bavaria","city":"Munich","clan":{"id":3,"tag":"[EX]","name":"Example Clan"},"points":2210,"pointsChange":12,"pointsToday":37,"skill":2210,"kills":5321,"deaths":2410,"suicides":12,"headshots":1904,"teamKills":3,"killStreak":17,"kpd":2.21,"hpk":0.3578,"killsPerMinute":0.74,"assists":512,"assistedKills":230,"shots":98000,"hits":31000,"accuracy":0.3163,"shotsPerKill":18.42,"rounds":2100,"wins":1100,"losses":1000,"winRatio":0.5238,"survived":840,"survivedShare":0.4,"connectionTime":432000,"connects":310,"averagePing":35,"firstConnect":1735689600,"lastEvent":1767225600,"activity":98,"careerRank":{"index":9,"name":"General","minKills":5000,"nextAt":null},"favoriteWeapon":{"code":"ak47","name":"AK-47","kills":2100},"stars":{"gold":1,"silver":0,"bronze":2},"banned":false,"bans":[],"links":{"weapons":"/stats/api/v1/players/42/weapons","hitboxes":"/stats/api/v1/players/42/hitboxes","maps":"/stats/api/v1/players/42/maps","teams":"/stats/api/v1/players/42/teams","actions":"/stats/api/v1/players/42/actions","opponents":"/stats/api/v1/players/42/opponents","killStats":"/stats/api/v1/players/42/kills","names":"/stats/api/v1/players/42/names","history":"/stats/api/v1/players/42/history","awards":"/stats/api/v1/players/42/awards","ribbons":"/stats/api/v1/players/42/ribbons","events":"/stats/api/v1/players/42/events","radar":"/stats/api/v1/players/42/radar","banner":"/stats/api/v1/players/42/banner"}}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/weapons":{"get":{"operationId":"listPlayerWeapons","tags":["Players"],"summary":"Weapons of a player","description":"A player's weapons with the columns of the profile's weapons table (kills, K/D, accuracy, damage per hit, shots per kill) and hits per body zone, by kills.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["kills","deaths","kpd","headshots","hpk","accuracy","shots","hits","damage","name"],"default":"kills"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerWeapon"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"code":"ak47","name":"AK-47","kills":2100,"deaths":900,"headshots":830,"shots":41000,"hits":12500,"damage":380000,"kpd":2.33,"hpk":0.3952,"accuracy":0.3049,"damagePerHit":30.4,"shotsPerKill":19.52,"hitboxes":{"head":1904,"neck":0,"chest":5120,"stomach":2310,"leftarm":880,"rightarm":910,"leftleg":640,"rightleg":655}}],"pagination":{"page":1,"limit":25,"offset":0,"total":14,"totalPages":1},"links":{"self":"/stats/api/v1/players/42/weapons","first":"/stats/api/v1/players/42/weapons","prev":null,"next":null,"last":"/stats/api/v1/players/42/weapons"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/hitboxes":{"get":{"operationId":"getPlayerHitboxes","tags":["Players"],"summary":"Hitboxes of a player","description":"Hits per body zone over all weapons (per weapon: `/players/{id}/weapons`).","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"total":{"type":"integer","description":"Hits with a known zone"},"data":{"type":"array","items":{"type":"object","properties":{"zone":{"type":"string","description":"Body zone","enum":["head","neck","chest","stomach","leftarm","rightarm","leftleg","rightleg"]},"hits":{"type":"integer","description":"Hits"},"share":{"anyOf":[{"type":"number","description":"Share of the hits, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["zone","hits","share"]}}},"required":["id","total","data"]},"example":{"id":42,"total":12419,"data":[{"zone":"head","hits":1904,"share":0.1533}]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/maps":{"get":{"operationId":"listPlayerMaps","tags":["Players"],"summary":"Maps of a player","description":"A player's kills and deaths per map, from the kill events the database still holds, by kills.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["kills","deaths","headshots","kpd","name"],"default":"kills"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerMap"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"id":7,"name":"de_dust2","kills":812,"deaths":390,"headshots":270,"kpd":2.08,"hpk":0.3325}],"pagination":{"page":1,"limit":25,"offset":0,"total":9,"totalPages":1},"links":{"self":"/stats/api/v1/players/42/maps","first":"/stats/api/v1/players/42/maps","prev":null,"next":null,"last":"/stats/api/v1/players/42/maps"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/history":{"get":{"operationId":"listPlayerHistory","tags":["Players"],"summary":"History of a player","description":"A player's days on the servers, newest first, with the columns of the website's sessions table: points and their change, time, rounds, kills, K/D, headshots, accuracy. Sort fields as the table: `date`, `change`, `points`, `time`, `rounds`, `wins`, `kills`, `deaths`, `kpd`, `streak`, `hs`, `hpk`, `acc`; another order than newest first covers the last 5000 days.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["date","change","points","time","rounds","wins","kills","deaths","kpd","streak","hs","hpk","acc"],"default":"date"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerDay"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"day":"2026-01-01","points":2210,"pointsChange":35,"skill":2210,"skillChange":35,"connectionTime":5400,"rounds":40,"wins":22,"kills":61,"deaths":30,"kpd":2.03,"headshots":20,"hpk":0.3279,"killStreak":7,"shots":1400,"hits":450,"accuracy":0.3214}],"pagination":{"page":1,"limit":25,"offset":0,"total":210,"totalPages":9},"links":{"self":"/stats/api/v1/players/42/history","first":"/stats/api/v1/players/42/history","prev":null,"next":"/stats/api/v1/players/42/history?page=2","last":"/stats/api/v1/players/42/history?page=9"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/teams":{"get":{"operationId":"listPlayerTeams","tags":["Players"],"summary":"Teams of a player","description":"How often a player joined each team with the share of all joins (the profile's teams table), most joins first.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Team ID"},"name":{"type":"string","description":"Team name"},"joined":{"type":"integer","description":"Times joined"},"share":{"anyOf":[{"type":"number","description":"Share of all joins, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["id","name","joined","share"]}}},"required":["id","game","data"]},"example":{"id":42,"game":"cstrike","data":[{"id":1,"name":"Counter-Terrorists","joined":61,"share":0.5214}]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/actions":{"get":{"operationId":"listPlayerActions","tags":["Players"],"summary":"Actions of a player","description":"The actions a player triggered (the profile's actions table): how often and the points they brought, most often first.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Action ID"},"description":{"anyOf":[{"type":"string","description":"Description"},{"type":"null"}]},"count":{"type":"integer","description":"Times triggered"},"points":{"type":"integer","description":"Points it brought"}},"required":["id","description","count","points"]}}},"required":["id","game","data"]},"example":{"id":42,"game":"cstrike","data":[{"id":11,"description":"Planted the bomb","count":120,"points":360}]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/opponents":{"get":{"operationId":"getPlayerOpponents","tags":["Players"],"summary":"Victims and killers of a player","description":"The ten players this player killed most often and the ten who killed this player most often (the profile's victims and killers tables). Hidden players are left out.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"},"victims":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["id","name","country","bot","kills","headshots","hpk"]}},"killers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["id","name","country","bot","kills","headshots","hpk"]}}},"required":["id","game","victims","killers"]},"example":{"id":42,"game":"cstrike","victims":[{"id":43,"name":"OtherPlayer","country":{"code":"DE","name":"Germany"},"bot":false,"kills":88,"headshots":30,"hpk":0.3409}],"killers":[]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/kills":{"get":{"operationId":"getPlayerKillStats","tags":["Players"],"summary":"Kill statistics of a player","description":"Everyone this player killed at least five times (at most 50, most kills first) with the kills against and deaths by each and the other player's place in the ranking (the profile's kill statistics). Hidden players are left out, bots stay.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"},"minKills":{"type":"integer","description":"Kills needed to be listed"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"rank":{"anyOf":[{"type":"integer","description":"The other player's place in the ranking; null for bots"},{"type":"null"}]},"kills":{"type":"integer","description":"Kills against this player"},"deaths":{"type":"integer","description":"Deaths by this player"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"headshots":{"type":"integer","description":"Headshots against this player"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["id","name","country","bot","rank","kills","deaths","kpd","headshots","hpk"]}}},"required":["id","game","minKills","data"]},"example":{"id":42,"game":"cstrike","minKills":5,"data":[{"id":43,"name":"OtherPlayer","country":{"code":"DE","name":"Germany"},"bot":false,"rank":12,"kills":88,"deaths":41,"kpd":2.15,"headshots":30,"hpk":0.3409}]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/names":{"get":{"operationId":"listPlayerNames","tags":["Players"],"summary":"Names of a player","description":"The names a player used (the profile's names table, the 20 used last), newest first.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"},"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Name"},"connectionTime":{"type":"integer","description":"Time played under this name in seconds"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"headshots":{"type":"integer","description":"Headshots"},"uses":{"type":"integer","description":"Times used"},"lastUsed":{"anyOf":[{"type":"integer","description":"Last used (Unix time, seconds)"},{"type":"null"}]}},"required":["name","connectionTime","kills","deaths","headshots","uses","lastUsed"]}}},"required":["id","game","data"]},"example":{"id":42,"game":"cstrike","data":[{"name":"ExamplePlayer","connectionTime":400000,"kills":5100,"deaths":2300,"headshots":1850,"uses":290,"lastUsed":1767225600}]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/awards":{"get":{"operationId":"listPlayerAwards","tags":["Players"],"summary":"Awards of a player","description":"The daily awards a player won, newest first (the website's awards page); `sort=award` orders by the award's name.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["date","award"],"default":"date"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerAward"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"day":"2026-01-01","id":5,"code":"awp","name":"AWP Master","verb":"kills with awp","value":37}],"pagination":{"page":1,"limit":25,"offset":0,"total":61,"totalPages":3},"links":{"self":"/stats/api/v1/players/42/awards","first":"/stats/api/v1/players/42/awards","prev":null,"next":"/stats/api/v1/players/42/awards?page=2","last":"/stats/api/v1/players/42/awards?page=3"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/ribbons":{"get":{"operationId":"getPlayerRibbons","tags":["Players"],"summary":"Rank and ribbons of a player","description":"A player's rank (by kills) and ribbons: per award the number of wins and the ribbon class and level reached.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"},"rank":{"anyOf":[{"type":"object","properties":{"index":{"type":"integer","description":"Rank index"},"name":{"type":"string","description":"Rank name"},"minKills":{"type":"integer","description":"Kills needed"},"nextAt":{"anyOf":[{"type":"integer","description":"Kills for the next rank"},{"type":"null"}]}},"required":["index","name","minKills","nextAt"]},{"type":"null"}]},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Award ID"},"code":{"type":"string","description":"Award code"},"name":{"type":"string","description":"Award name"},"verb":{"type":"string","description":"What is counted"},"wins":{"type":"integer","description":"Wins"},"ribbon":{"anyOf":[{"type":"object","properties":{"class":{"type":"integer","description":"Class index"},"name":{"type":"string","description":"Class name"},"level":{"type":"integer","description":"Level in the class"},"maxLevel":{"type":"integer","description":"Levels of the class"}},"required":["class","name","level","maxLevel"]},{"type":"null"}]}},"required":["id","code","name","verb","wins","ribbon"]}}},"required":["id","game","rank","data"]},"example":{"id":42,"game":"cstrike","rank":{"index":9,"name":"General","minKills":5000,"nextAt":null},"data":[{"id":5,"code":"awp","name":"AWP Master","verb":"kills with awp","wins":14,"ribbon":{"class":1,"name":"{LANG_SILVER}","level":6,"maxLevel":8}}]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/events":{"get":{"operationId":"listPlayerEvents","tags":["Players"],"summary":"Events of a player","description":"The player's events page: connects, entries, leaves, team, role and name changes, actions, kills, deaths, suicides and team kills, newest first (`order=asc`: oldest first), optionally one `type`. Events with a hidden player on the other side are left out; never chat or addresses. Lists end after 10000 events.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42},{"name":"type","in":"query","description":"Only this type","schema":{"type":"string","description":"","enum":["connect","entry","disconnect","team","role","name","action","playeraction","teambonus","kill","death","suicide","teamkill"]}},{"name":"order","in":"query","description":"desc (newest first, default) or asc","schema":{"type":"string","description":"","enum":["desc","asc"],"default":"desc"}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerEvent"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"time":1767225600,"type":"kill","other":{"id":43,"name":"OtherPlayer","country":{"code":"DE","name":"Germany"},"bot":false},"weapon":{"code":"ak47","name":"AK-47"},"headshot":true,"action":null,"team":null,"oldName":null,"newName":null,"map":"de_dust2"}],"pagination":{"page":1,"limit":25,"offset":0,"total":5210,"totalPages":209},"links":{"self":"/stats/api/v1/players/42/events","first":"/stats/api/v1/players/42/events","prev":null,"next":"/stats/api/v1/players/42/events?page=2","last":"/stats/api/v1/players/42/events?page=209"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/radar":{"get":{"operationId":"getPlayerRadar","tags":["Players"],"summary":"Radar of a player","description":"The radar of the profile: the player's last 14 days (`kpd` kills per death, `kpm` kills per minute, `assists` per kill, rounds `survived` and `wins` per round) against all players of the ranking active in them. `relative` is the player's value divided by the average (1 = average); assists only where the game records them.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"game":{"type":"string","description":"Code of the ranking"}},"required":["id","game"]},{"$ref":"#/components/schemas/Radar"}]},"example":{"id":42,"game":"cstrike","days":14,"activeDays":9,"comparedPlayers":118,"axes":[{"axis":"kpd","value":1.84,"average":1.02,"relative":1.8039,"noData":false},{"axis":"kpm","value":0.71,"average":0.52,"relative":1.3654,"noData":false},{"axis":"survived","value":0.41,"average":0.38,"relative":1.0789,"noData":false},{"axis":"wins","value":0.53,"average":0.5,"relative":1.06,"noData":false}]}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/players/{id}/banner":{"get":{"operationId":"getPlayerBanner","tags":["Banners"],"summary":"Player banner","description":"The player banner (forum signature, 400×100 PNG) of the profile: rank insignia with the progress to the next rank, Steam avatar, name, place and key numbers. The same picture as `/banner/{game}/player/{id}.png` (in a language `/banner/{game}/player/{lang}/{id}.png`) on the website; `style` picks a design template (`/banners/styles`), without it the active skin; `size`, `layout`, `bg` and `lang` as the website's `?size=`, `?layout=`, `?bg=` and language folder.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42},{"name":"style","in":"query","description":"Design template of the banner (an id of /banners/styles); without it, or with an unknown one, the active skin","schema":{"type":"string","description":"","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"}},{"name":"size","in":"query","description":"Size: normal (the layouts), small (350×20, one line) or tall (160×400, upright); small and tall have one design and ignore layout","schema":{"type":"string","description":"","enum":["normal","small","tall"],"default":"normal"}},{"name":"layout","in":"query","description":"Layout of the banner (a: clear, b: card, c: badge, d: points trend of the last 30 days, e: side strip, the label runs from top to bottom)","schema":{"type":"string","description":"","enum":["a","b","c","d","e"],"default":"a"}},{"name":"bg","in":"query","description":"Background pattern over the design's background","schema":{"type":"string","description":"","enum":["plain","dots","grid","stripes","carbon","glow"],"default":"plain"}},{"name":"lang","in":"query","description":"Language of the texts (Chinese, Japanese, Korean and Arabic get English: the banner fonts have no glyphs for them)","schema":{"type":"string","description":"","enum":["en","de","bar","gsw","swg","nds","ru","es","fr","pt","nl","da","pl","pt-br","sr","zh-tw","zh-cn","ja","ko","ar","tr","it","uk","cs","sv"],"default":"en"}}],"responses":{"200":{"description":"PNG, 400×100 pixels","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown, hidden or bot player","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/servers/{id}/banner":{"get":{"operationId":"getServerBanner","tags":["Banners"],"summary":"Server banner","description":"The server banner (560×95 PNG) of the server and misc pages: name with flag, address, port, status, players with a pie, map and the players of the last 24 hours. The same picture as `/banner/{game}/server/{id}.png` (in a language `/banner/{game}/server/{lang}/{id}.png`) on the website; `style` picks a design template, `size`, `layout`, `bg` and `lang` as on the website.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the server","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1},{"name":"style","in":"query","description":"Design template of the banner (an id of /banners/styles); without it, or with an unknown one, the active skin","schema":{"type":"string","description":"","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"}},{"name":"size","in":"query","description":"Size: normal (the layouts), small (350×20, one line) or tall (160×400, upright); small and tall have one design and ignore layout","schema":{"type":"string","description":"","enum":["normal","small","tall"],"default":"normal"}},{"name":"layout","in":"query","description":"Layout of the banner (a: clear, b: card, c: badge, e: side strip, the label runs from top to bottom, f: the map picture instead of the players graph)","schema":{"type":"string","description":"","enum":["a","b","c","f"],"default":"a"}},{"name":"bg","in":"query","description":"Background pattern over the design's background","schema":{"type":"string","description":"","enum":["plain","dots","grid","stripes","carbon","glow"],"default":"plain"}},{"name":"lang","in":"query","description":"Language of the texts (Chinese, Japanese, Korean and Arabic get English: the banner fonts have no glyphs for them)","schema":{"type":"string","description":"","enum":["en","de","bar","gsw","swg","nds","ru","es","fr","pt","nl","da","pl","pt-br","sr","zh-tw","zh-cn","ja","ko","ar","tr","it","uk","cs","sv"],"default":"en"}}],"responses":{"200":{"description":"PNG, 560×95 pixels","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking or server, or the server belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voice/teamspeak/banner":{"get":{"operationId":"getTeamSpeakBanner","tags":["Banners"],"summary":"TeamSpeak banner","description":"The TeamSpeak banner (560×95 PNG) of the TeamSpeak page: name with flag, address, status, users online of the slots, channels and uptime, live from the ServerQuery. The same picture as `/banner/teamspeak.png` (in a language `/banner/{lang}/teamspeak.png`) on the website; `style` picks a design template, `size`, `layout`, `bg` and `lang` as on the website.","parameters":[{"name":"style","in":"query","description":"Design template of the banner (an id of /banners/styles); without it, or with an unknown one, the active skin","schema":{"type":"string","description":"","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"}},{"name":"size","in":"query","description":"Size: normal (the layouts), small (350×20, one line) or tall (160×400, upright); small and tall have one design and ignore layout","schema":{"type":"string","description":"","enum":["normal","small","tall"],"default":"normal"}},{"name":"layout","in":"query","description":"Layout of the banner (a: clear, b: card, c: badge, e: side strip, the label runs from top to bottom)","schema":{"type":"string","description":"","enum":["a","b","c","e"],"default":"a"}},{"name":"bg","in":"query","description":"Background pattern over the design's background","schema":{"type":"string","description":"","enum":["plain","dots","grid","stripes","carbon","glow"],"default":"plain"}},{"name":"lang","in":"query","description":"Language of the texts (Chinese, Japanese, Korean and Arabic get English: the banner fonts have no glyphs for them)","schema":{"type":"string","description":"","enum":["en","de","bar","gsw","swg","nds","ru","es","fr","pt","nl","da","pl","pt-br","sr","zh-tw","zh-cn","ja","ko","ar","tr","it","uk","cs","sv"],"default":"en"}}],"responses":{"200":{"description":"PNG, 560×95 pixels","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"TeamSpeak is not the voice server of this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/banners/styles":{"get":{"operationId":"listBannerStyles","tags":["Banners"],"summary":"Banner styles","description":"The styles every banner takes as `style` besides the default (the active skin): one per design template, as in the website's banner code box.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Value of style"},"name":{"type":"object","properties":{"en":{"type":"string","description":"Name in English"},"de":{"type":"string","description":"Name in German"}},"required":["en","de"]}},"required":["id","name"]}}},"required":["data"]},"example":{"data":[{"id":"dark","name":{"en":"Dark","de":"Dunkel"}}]}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voice":{"get":{"operationId":"getVoiceBox","tags":["Voice server"],"summary":"Voice server box","description":"The voice server box of the start page: the TeamSpeak server (live from its ServerQuery, kept for a minute), the Ventrilo server (its UDP status, kept for a minute) or the Discord server (its public widget, kept for five minutes). All null when the site has no voice server.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"teamspeak":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"Server name"},"type":{"type":"string","description":"Server type, e.g. TeamSpeak 3"},"country":{"anyOf":[{"type":"string","description":"ISO code of the flag the site shows; null without one"},{"type":"null"}]},"address":{"type":"string","description":"Address to connect to"},"link":{"type":"string","description":"ts3server:// link"},"passwordProtected":{"type":"boolean","description":"The server needs a password"},"password":{"anyOf":[{"type":"string","description":"The server password, only while the admin allows showing it (Admin → Settings → Voice server: Allow showing the TeamSpeak password, default off); else null"},{"type":"null"}]},"clients":{"anyOf":[{"type":"integer","description":"Users online; null while the query fails"},{"type":"null"}]},"maxClients":{"anyOf":[{"type":"integer","description":"Slots"},{"type":"null"}]},"channels":{"anyOf":[{"type":"integer","description":"Channels"},{"type":"null"}]},"uptime":{"anyOf":[{"type":"integer","description":"Seconds since the server started"},{"type":"null"}]},"detailsUrl":{"type":"string","description":"Path of the TeamSpeak details in this API"},"bannerUrl":{"type":"string","description":"Path of the TeamSpeak banner in this API"}},"required":["name","type","country","address","link","passwordProtected","password","clients","maxClients","channels","uptime","detailsUrl","bannerUrl"]},{"type":"null"}]},"ventrilo":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"Server name"},"type":{"type":"string","description":"Server type, e.g. Ventrilo 3"},"address":{"type":"string","description":"Address to connect to"},"link":{"type":"string","description":"ventrilo:// link"},"passwordProtected":{"type":"boolean","description":"The server needs a password (from its status)"},"clients":{"anyOf":[{"type":"integer","description":"Users online; null while the status fails"},{"type":"null"}]},"maxClients":{"anyOf":[{"type":"integer","description":"Slots"},{"type":"null"}]},"channels":{"anyOf":[{"type":"integer","description":"Channels"},{"type":"null"}]},"uptime":{"anyOf":[{"type":"integer","description":"Seconds since the server started"},{"type":"null"}]}},"required":["name","type","address","link","passwordProtected","clients","maxClients","channels","uptime"]},{"type":"null"}]},"discord":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","description":"Server name"},"invite":{"anyOf":[{"type":"string","description":"Invite link"},{"type":"null"}]},"online":{"anyOf":[{"type":"integer","description":"Members online; null when unknown"},{"type":"null"}]}},"required":["name","invite","online"]},{"type":"null"}]}},"required":["teamspeak","ventrilo","discord"]},"example":{"teamspeak":{"name":"Example TeamSpeak","type":"TeamSpeak 3","country":"DE","address":"ts.example.org","link":"ts3server://ts.example.org","passwordProtected":true,"password":null,"clients":5,"maxClients":32,"channels":12,"uptime":864000,"detailsUrl":"/stats/api/v1/voice/teamspeak","bannerUrl":"/stats/api/v1/voice/teamspeak/banner"},"ventrilo":null,"discord":null}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/voice/teamspeak":{"get":{"operationId":"getTeamSpeak","tags":["Voice server"],"summary":"TeamSpeak server","description":"The TeamSpeak page: server data, traffic, the welcome message and the channel tree with the people online (names only while the admin shows them; `clientCount` always). Live from the ServerQuery, kept for a minute; `online` false and `info` null while the query fails.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Server name"},"type":{"type":"string","description":"Server type"},"country":{"anyOf":[{"type":"string","description":"ISO code of the flag"},{"type":"null"}]},"address":{"type":"string","description":"Address to connect to"},"link":{"type":"string","description":"ts3server:// link"},"passwordProtected":{"type":"boolean","description":"The server needs a password"},"password":{"anyOf":[{"type":"string","description":"The server password, only while the admin allows showing it (default off); else null"},{"type":"null"}]},"online":{"type":"boolean","description":"The query answered"},"clients":{"anyOf":[{"type":"integer","description":"Users online"},{"type":"null"}]},"maxClients":{"anyOf":[{"type":"integer","description":"Slots"},{"type":"null"}]},"channelCount":{"anyOf":[{"type":"integer","description":"Channels"},{"type":"null"}]},"showClients":{"type":"boolean","description":"The names of the people online are shown"},"info":{"anyOf":[{"type":"object","properties":{"uptime":{"anyOf":[{"type":"integer","description":"Seconds since the server started"},{"type":"null"}]},"created":{"anyOf":[{"type":"integer","description":"Server created (Unix time, seconds)"},{"type":"null"}]},"version":{"anyOf":[{"type":"string","description":"Server version"},{"type":"null"}]},"os":{"anyOf":[{"type":"string","description":"Linux, Windows, FreeBSD or macOS"},{"type":"null"}]},"clientConnections":{"anyOf":[{"type":"integer","description":"Client connections so far"},{"type":"null"}]},"queryConnections":{"anyOf":[{"type":"integer","description":"Query connections so far"},{"type":"null"}]},"securityLevel":{"anyOf":[{"type":"integer","description":"Identity security level needed"},{"type":"null"}]},"ping":{"anyOf":[{"type":"number","description":"Average ping in ms"},{"type":"null"}]},"packetLoss":{"anyOf":[{"type":"number","description":"Packet loss, a fraction"},{"type":"null"}]},"bandwidthIn":{"anyOf":[{"type":"integer","description":"Bytes received in the last second"},{"type":"null"}]},"bandwidthOut":{"anyOf":[{"type":"integer","description":"Bytes sent in the last second"},{"type":"null"}]},"bytesIn":{"anyOf":[{"type":"integer","description":"Bytes received in total"},{"type":"null"}]},"bytesOut":{"anyOf":[{"type":"integer","description":"Bytes sent in total"},{"type":"null"}]},"hostBannerUrl":{"anyOf":[{"type":"string","description":"The server's own host banner (http or https)"},{"type":"null"}]},"welcome":{"anyOf":[{"type":"string","description":"Welcome message as plain text"},{"type":"null"}]}},"required":["uptime","created","version","os","clientConnections","queryConnections","securityLevel","ping","packetLoss","bandwidthIn","bandwidthOut","bytesIn","bytesOut","hostBannerUrl","welcome"]},{"type":"null"}]},"channels":{"type":"array","items":{"$ref":"#/components/schemas/VoiceChannel"}},"bannerUrl":{"type":"string","description":"Path of the TeamSpeak banner in this API"}},"required":["name","type","country","address","link","passwordProtected","password","online","clients","maxClients","channelCount","showClients","info","channels","bannerUrl"]},"example":{"name":"Example TeamSpeak","type":"TeamSpeak 3","country":"DE","address":"ts.example.org","link":"ts3server://ts.example.org","passwordProtected":true,"password":"join-example","online":true,"clients":2,"maxClients":32,"channelCount":2,"showClients":true,"info":{"uptime":864000,"created":1735689600,"version":"3.13.7 [Build: 1655727713]","os":"Linux","clientConnections":4321,"queryConnections":98765,"securityLevel":8,"ping":21.5,"packetLoss":0,"bandwidthIn":1200,"bandwidthOut":3400,"bytesIn":123456789,"bytesOut":987654321,"hostBannerUrl":null,"welcome":"Welcome!"},"channels":[{"id":1,"name":"Lobby","spacer":null,"topic":null,"password":false,"clientCount":2,"clients":[{"name":"ExamplePlayer","away":false,"muted":false,"deaf":false,"country":"DE"}],"children":[]}],"bannerUrl":"/stats/api/v1/voice/teamspeak/banner"}}}},"404":{"description":"TeamSpeak is not the voice server of this site","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/search/players":{"get":{"operationId":"searchPlayers","tags":["Search"],"summary":"Search players","description":"The website's search over all rankings (or one with `game`): every name a player used (`in=names`, at least 3 characters; `alias` is the used name that matched when it is not the current one), or a Steam ID in any of its forms (`in=steamid`, exact match only). Active and inactive players are found, hidden and banned ones are not. At most 100 hits, best points first; `url` is null for bots without a profile.","parameters":[{"name":"q","in":"query","required":true,"description":"Text to search for","schema":{"type":"string","description":"","minLength":1,"maxLength":64},"example":"Example"},{"name":"in","in":"query","description":"names (default) or steamid","schema":{"type":"string","description":"","enum":["names","steamid"],"default":"names"}},{"name":"game","in":"query","description":"Only this ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SearchPlayer"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"game":"cstrike","id":42,"name":"ExamplePlayer","alias":null,"country":{"code":"DE","name":"Germany"},"bot":false,"points":2210,"kills":5321,"deaths":2410,"kpd":2.21,"lastEvent":1767225600,"url":"/stats/api/v1/players/42"}],"pagination":{"page":1,"limit":25,"offset":0,"total":1,"totalPages":1},"links":{"self":"/stats/api/v1/search/players?q=Example","first":"/stats/api/v1/search/players?q=Example","prev":null,"next":null,"last":"/stats/api/v1/search/players?q=Example"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/search/clans":{"get":{"operationId":"searchClans","tags":["Search"],"summary":"Search clans","description":"The website's clan search over all rankings (or one with `game`): part of the tag or the name, at least 2 characters. Clans without a ranked member are not found. At most 100 hits, most members first.","parameters":[{"name":"q","in":"query","required":true,"description":"Part of the tag or the name","schema":{"type":"string","description":"","minLength":2,"maxLength":64},"example":"EX"},{"name":"game","in":"query","description":"Only this ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SearchClan"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"game":"cstrike","id":3,"tag":"[EX]","name":"Example Clan","members":8,"avgPoints":1650,"url":"/stats/api/v1/rankings/cstrike/clans/3"}],"pagination":{"page":1,"limit":25,"offset":0,"total":1,"totalPages":1},"links":{"self":"/stats/api/v1/search/clans?q=EX","first":"/stats/api/v1/search/clans?q=EX","prev":null,"next":null,"last":"/stats/api/v1/search/clans?q=EX"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/points":{"get":{"operationId":"getPoints","tags":["Statistics"],"summary":"Point rules","description":"The point rules of the help page: the collector's point settings, and per ranking whether it ranks bots and whether kills of bots give points. Bonuses of actions: `/rankings/{game}/actions`; weapon modifiers: `/rankings/{game}/weapons`.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"startPoints":{"type":"integer","description":"Points of a new player"},"killPoints":{"type":"integer","description":"Base points of a kill (before the weapon modifier and the points difference)"},"headshotBonus":{"type":"integer","description":"Extra points of a headshot"},"suicidePenalty":{"type":"integer","description":"Points lost by a suicide"},"teamkillPenalty":{"type":"integer","description":"Points lost by a team kill"},"rankings":{"type":"array","items":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"botsRanked":{"type":"boolean","description":"Bots are ranked and have profiles"},"botKillPoints":{"type":"boolean","description":"Kills of bots give points"}},"required":["game","botsRanked","botKillPoints"]}}},"required":["startPoints","killPoints","headshotBonus","suicidePenalty","teamkillPenalty","rankings"]},"example":{"startPoints":1000,"killPoints":5,"headshotBonus":0,"suicidePenalty":5,"teamkillPenalty":10,"rankings":[{"game":"cstrike","botsRanked":false,"botKillPoints":true}]}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/activity":{"get":{"operationId":"getActivity","tags":["Statistics"],"summary":"Activity per 15 minutes","description":"Players online, servers with players, kills and headshots per 15 minutes over all rankings, oldest first: the lines of the start page's general statistics and its load chart. `players` and `servers` are null where the collector recorded no load (it samples every 10 minutes).","parameters":[{"name":"days","in":"query","description":"Days back","schema":{"type":"integer","description":"","enum":[1,7,14,30],"default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","description":"Days back"},"step":{"type":"integer","description":"Seconds per entry (900)"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ActivityPoint"}}},"required":["days","step","data"]},"example":{"days":30,"step":900,"data":[{"time":1767225600,"players":12.5,"servers":2,"kills":41,"headshots":13}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/activity":{"get":{"operationId":"getRankingActivity","tags":["Statistics"],"summary":"Activity of a ranking per 15 minutes","description":"Players online, servers with players, kills and headshots of one ranking per 15 minutes, oldest first: the trend of the ranking's start page (14 days).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"days","in":"query","description":"Days back","schema":{"type":"integer","description":"","enum":[1,7,14,30],"default":14}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"days":{"type":"integer","description":"Days back"},"step":{"type":"integer","description":"Seconds per entry (900)"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ActivityPoint"}}},"required":["game","days","step","data"]},"example":{"game":"cstrike","days":14,"step":900,"data":[{"time":1767225600,"players":12.5,"servers":2,"kills":41,"headshots":13}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/load":{"get":{"operationId":"getRankingLoad","tags":["Servers"],"summary":"Load of all servers","description":"The load of every server of a ranking in one answer (the graph of all servers on the ranking's start page): one point per server and 10 minutes, oldest first, servers in the site's order.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"hours","in":"query","description":"Hours back","schema":{"type":"integer","description":"","minimum":1,"maximum":168,"default":24}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"hours":{"type":"integer","description":"Hours back"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Server ID"},"name":{"type":"string","description":"Server name"},"maxPlayers":{"type":"integer","description":"Slots now"},"load":{"type":"array","items":{"$ref":"#/components/schemas/LoadPoint"}}},"required":["id","name","maxPlayers","load"]}}},"required":["game","hours","data"]},"example":{"game":"cstrike","hours":24,"data":[{"id":1,"name":"Example Public #1","maxPlayers":24,"load":[{"time":1767225600,"players":12,"min":10,"max":14,"map":"de_dust2","uptime":86400}]}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/map/live":{"get":{"operationId":"getLiveMap","tags":["Player maps"],"summary":"Live map","description":"The live map of the ranking's start page: the players online (not hidden ones, no bots) at the GeoIP city point of their connection, with the server they are on, and the ranking's servers at the point of their address. Only city points, never an address. 404 while the site shows no live map.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"players":{"type":"array","items":{"$ref":"#/components/schemas/MapMarker"}},"servers":{"type":"array","items":{"$ref":"#/components/schemas/MapServer"}}},"required":["game","players","servers"]},"example":{"game":"cstrike","players":[{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"city":"Munich","lat":48.14,"lng":11.58,"rank":1,"points":2210,"kills":5321,"deaths":2410,"kpd":2.21,"lastEvent":1767225600,"server":{"id":1,"name":"Example Public #1"},"inactive":false}],"servers":[{"id":1,"name":"Example Public #1","address":"cs.example.org:27015","map":"de_dust2","city":"Frankfurt am Main","country":{"code":"DE","name":"Germany"},"lat":50.11,"lng":8.68,"online":true,"uptime":86400,"vac":true}]}}}},"404":{"description":"Unknown ranking, or the site shows no live map","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/map/players":{"get":{"operationId":"getPlayerMap","tags":["Player maps"],"summary":"Player map","description":"The player map of the players page: the best players with a known place (`show=top`: the top 10 with the server they are on now; `show=all`: up to 1000), optionally of one country, state or city, each at the GeoIP city point. 404 while the site shows no player map.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"show","in":"query","description":"top (default, 10 players) or all (up to 1000)","schema":{"type":"string","description":"","enum":["top","all"],"default":"top"}},{"name":"country","in":"query","description":"Only this country (ISO 3166-1 alpha-2 code, any case)","schema":{"type":"string","description":"","pattern":"^[A-Za-z]{2}$"},"example":"de"},{"name":"state","in":"query","description":"Only this state or region (exact name, any case)","schema":{"type":"string","description":"","maxLength":80}},{"name":"city","in":"query","description":"Only this city (exact name, any case)","schema":{"type":"string","description":"","maxLength":80}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"show":{"type":"string","description":"top or all"},"players":{"type":"array","items":{"$ref":"#/components/schemas/MapMarker"}}},"required":["game","show","players"]},"example":{"game":"cstrike","show":"top","players":[{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"city":"Munich","lat":48.14,"lng":11.58,"rank":1,"points":2210,"kills":5321,"deaths":2410,"kpd":2.21,"lastEvent":1767225600,"server":null,"inactive":false}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking, or the site shows no player map","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}/map":{"get":{"operationId":"getClanMap","tags":["Player maps"],"summary":"Clan map","description":"The map of the clan page: every member with a known place, active ones first (with their place in the ranking), then the inactive ones (`inactive` true, no rank). 404 while the site shows no player map.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Clan ID"},"players":{"type":"array","items":{"$ref":"#/components/schemas/MapMarker"}}},"required":["game","id","players"]},"example":{"game":"cstrike","id":3,"players":[{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"city":"Munich","lat":48.14,"lng":11.58,"rank":1,"points":2210,"kills":5321,"deaths":2410,"kpd":2.21,"lastEvent":1767225600,"server":null,"inactive":false}]}}}},"404":{"description":"Unknown clan, the clan belongs to another ranking, or the site shows no player map","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}/history":{"get":{"operationId":"getClanHistory","tags":["Clans"],"summary":"History of a clan","description":"The members' days added up (the clan page's summary and its lines): one entry per day, oldest first, days without play 0. The members are the active ones, or all of them for an inactive clan.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3},{"name":"days","in":"query","description":"Days back, today included","schema":{"type":"integer","description":"","minimum":1,"maximum":90,"default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Clan ID"},"days":{"type":"integer","description":"Days back"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ClanDay"}}},"required":["game","id","days","data"]},"example":{"game":"cstrike","id":3,"days":30,"data":[{"day":"2026-01-01","connectionTime":21600,"rounds":160,"wins":88,"survived":61,"kills":240,"deaths":190,"kpd":1.26,"headshots":80,"hpk":0.3333,"assists":31,"shots":5400,"hits":1700,"accuracy":0.3148,"pointsChange":54}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown clan, or the clan belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}/radar":{"get":{"operationId":"getClanRadar","tags":["Clans"],"summary":"Radar of a clan","description":"The radar of the clan page: the members' last 14 days together against all players of the ranking active in them, as `/players/{id}/radar`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Clan ID"}},"required":["game","id"]},{"$ref":"#/components/schemas/Radar"}]},"example":{"game":"cstrike","id":3,"days":14,"activeDays":9,"comparedPlayers":118,"axes":[{"axis":"kpd","value":1.84,"average":1.02,"relative":1.8039,"noData":false},{"axis":"kpm","value":0.71,"average":0.52,"relative":1.3654,"noData":false},{"axis":"survived","value":0.41,"average":0.38,"relative":1.0789,"noData":false},{"axis":"wins","value":0.53,"average":0.5,"relative":1.06,"noData":false}]}}}},"404":{"description":"Unknown clan, or the clan belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}/weapons":{"get":{"operationId":"listClanWeapons","tags":["Clans"],"summary":"Weapons of a clan","description":"The members' weapons added up (the clan page's weapon tables and hitboxes), with the columns of `/players/{id}/weapons`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["kills","deaths","kpd","headshots","hpk","accuracy","shots","hits","damage","name"],"default":"kills"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PlayerWeapon"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"code":"ak47","name":"AK-47","kills":9100,"deaths":4900,"headshots":3300,"shots":181000,"hits":54000,"damage":1620000,"kpd":1.86,"hpk":0.3626,"accuracy":0.2983,"damagePerHit":30,"shotsPerKill":19.89,"hitboxes":{"head":1904,"neck":0,"chest":5120,"stomach":2310,"leftarm":880,"rightarm":910,"leftleg":640,"rightleg":655}}],"pagination":{"page":1,"limit":25,"offset":0,"total":18,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/clans/3/weapons","first":"/stats/api/v1/rankings/cstrike/clans/3/weapons","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/clans/3/weapons"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown clan, or the clan belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}/maps":{"get":{"operationId":"listClanMaps","tags":["Clans"],"summary":"Maps of a clan","description":"The members' kills and deaths per map, the 15 maps with the most kills (the clan page's map table, from the kill events the database still holds; a kill between two members counts both ways).","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Clan ID"},"data":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/PlayerMap"},{"type":"object","properties":{"url":{"type":"string","description":"Path of the map in this API"}},"required":["url"]}]}}},"required":["game","id","data"]},"example":{"game":"cstrike","id":3,"data":[{"id":7,"name":"de_dust2","kills":3120,"deaths":2410,"headshots":1010,"kpd":1.29,"hpk":0.3237,"url":"/stats/api/v1/rankings/cstrike/maps/7"}]}}}},"404":{"description":"Unknown clan, or the clan belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/clans/{id}/events":{"get":{"operationId":"listClanEvents","tags":["Events"],"summary":"Latest events of a clan","description":"The latest events of the clan page: connects, entries, leaves, team, role and name changes, actions, kills, deaths, suicides and team kills of the active members, newest first, at most 25. Events with a hidden player are left out. 404 while the site shows no player event boxes.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Clan ID"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}},"required":["game","id","data"]},"example":{"game":"cstrike","id":3,"data":[{"time":1767225600,"type":"kill","player":{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false},"other":{"id":43,"name":"OtherPlayer","country":{"code":"DE","name":"Germany"},"bot":false},"weapon":{"code":"ak47","name":"AK-47"},"headshot":true,"action":null,"team":null,"oldName":null,"newName":null,"map":"de_dust2","server":"Example Public #1"}]}}}},"404":{"description":"Unknown clan, the clan belongs to another ranking, or the site shows no player event boxes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/events":{"get":{"operationId":"listEvents","tags":["Events"],"summary":"Events of a ranking","description":"The events page of a ranking: connects, entries, leaves, team, role and name changes, actions, kills, suicides and team kills of the last hour, 24 hours or 7 days, newest first (`order=asc`: oldest first), with its type filter (`action` covers actions on players too). Events with a hidden or banned player are left out; never chat or addresses. A list ends after 5000 events, as on the website. 404 while the site has no events page.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"period","in":"query","description":"The last hour, 24 hours or 7 days","schema":{"type":"string","description":"","enum":["1h","24h","7d"],"default":"24h"}},{"name":"type","in":"query","description":"Only this type","schema":{"type":"string","description":"","enum":["connect","entry","disconnect","team","role","name","action","teambonus","kill","suicide","teamkill"]}},{"name":"order","in":"query","description":"desc (newest first, default) or asc","schema":{"type":"string","description":"","enum":["desc","asc"],"default":"desc"}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"time":1767225600,"type":"kill","player":{"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"bot":false},"other":{"id":43,"name":"OtherPlayer","country":{"code":"DE","name":"Germany"},"bot":false},"weapon":{"code":"ak47","name":"AK-47"},"headshot":true,"action":null,"team":null,"oldName":null,"newName":null,"map":"de_dust2","server":"Example Public #1"}],"pagination":{"page":1,"limit":25,"offset":0,"total":1234,"totalPages":50},"links":{"self":"/stats/api/v1/rankings/cstrike/events","first":"/stats/api/v1/rankings/cstrike/events","prev":null,"next":"/stats/api/v1/rankings/cstrike/events?page=2","last":"/stats/api/v1/rankings/cstrike/events?page=50"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking, or the site has no events page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/events/stats":{"get":{"operationId":"getEventStats","tags":["Events"],"summary":"Event counts of a ranking","description":"The chart and the share table of the events page: the events of each type over the period with its share of all (most first), and per group of types the events per chart step (5 minutes for 1h, else 1 hour) from `from` on.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"period","in":"query","description":"The last hour, 24 hours or 7 days","schema":{"type":"string","description":"","enum":["1h","24h","7d"],"default":"24h"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"period":{"type":"string","description":"1h, 24h or 7d"},"from":{"type":"integer","description":"Start of the first chart step (Unix time, seconds)"},"step":{"type":"integer","description":"Seconds per chart step"},"total":{"type":"integer","description":"Events in the period"},"types":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Event type"},"count":{"type":"integer","description":"Events"},"share":{"type":"number","description":"Share of all events, a fraction"}},"required":["type","count","share"]}},"groups":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","description":"kills, actions, joins, changes or deaths"},"types":{"type":"array","items":{"type":"string","description":"Types in the group"}},"counts":{"type":"array","items":{"type":"integer","description":"Events in the step"}}},"required":["group","types","counts"]}}},"required":["game","period","from","step","total","types","groups"]},"example":{"game":"cstrike","period":"24h","from":1767139200,"step":3600,"total":1234,"types":[{"type":"kill","count":900,"share":0.7293}],"groups":[{"group":"kills","types":["kill"],"counts":[40,37]}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking, or the site has no events page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/bans":{"get":{"operationId":"listBans","tags":["Bans"],"summary":"Banned players","description":"The bans page of a ranking: every banned player once (also players banned in the ranking; hidden players never), with each running ban: recorded by the collector from the server logs (`sourcemod`, `amx`, `engine`, `sourcebans`) and the bans the collector stores for every known player (collector `features.bans_sync`): running bans of the SourceBans list (`sourcebans`, where the site has its address) and VAC or game bans from Steam (`vac`, with a Steam Web API key). Like the page in two tabs: `view=ranked` (default) the banned players still in the ranking, `view=inactive` those the collector moved out of the ranking for inactivity. Expired and lifted bans are not listed. Newest ban first, paged; `length` in English. Sort fields: `date`, `name`, `type`, `reason`, `kpd`, `hpk`, `acc`. No IP addresses.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"view","in":"query","description":"ranked (default) or inactive","schema":{"type":"string","description":"","enum":["ranked","inactive"],"default":"ranked"}},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["date","name","type","reason","kpd","hpk","acc"],"default":"date"}},{"name":"order","in":"query","description":"Direction; without it names sort ascending and numbers descending","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BannedPlayer"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"id":66,"name":"BannedExample","country":{"code":"DE","name":"Germany"},"bannedAt":1767225600,"dateText":null,"reason":"Cheating","bans":[{"source":"vac","reason":"1× VAC","bannedAt":1767225600,"dateText":null,"length":null,"endsAt":null},{"source":"sourcebans","reason":"Cheating","bannedAt":1767225600,"dateText":null,"length":"Permanent","endsAt":null}],"kills":350,"deaths":150,"kpd":2.33,"hpk":0.41,"accuracy":0.3812,"url":"/stats/api/v1/players/66"}],"pagination":{"page":1,"limit":25,"offset":0,"total":12,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/bans","first":"/stats/api/v1/rankings/cstrike/bans","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/bans"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/hall-of-fame":{"get":{"operationId":"listHallOfFame","tags":["Hall of fame"],"summary":"Hall of fame","description":"The hall of fame of a ranking: per reset period, newest first, the first three players with their values at the end of the period (name as then; `currentName` now). Removed entries and players hidden now are left out and the ones below move up. 404 while the ranking shows no hall of fame.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/HallPeriod"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"unit":"month","every":1,"start":"2026-09-01","end":"2026-09-30","resetAt":1759276800,"players":312,"places":[{"place":1,"id":42,"name":"ExamplePlayer","currentName":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"points":2210,"kills":812,"deaths":410,"kpd":1.98,"headshots":270,"hpk":0.3325,"accuracy":0.3011,"killStreak":14,"connectionTime":98765,"favoriteWeapon":{"code":"ak47","name":"AK-47"},"rankName":"General"},null,null]}],"pagination":{"page":1,"limit":25,"offset":0,"total":6,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/hall-of-fame","first":"/stats/api/v1/rankings/cstrike/hall-of-fame","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/hall-of-fame"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking, or it shows no hall of fame","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/hall-of-fame/stars":{"get":{"operationId":"listHallOfFameStars","tags":["Hall of fame"],"summary":"Hall of fame stars","description":"The star table of the hall of fame: per player gold (first places), silver and bronze; most gold first, then silver, bronze and the latest period.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"page","in":"query","description":"Page, from 1. Use page or offset, not both.","schema":{"type":"integer","description":"","minimum":1,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":25}},{"name":"offset","in":"query","description":"Entries to skip instead of a page","schema":{"type":"integer","description":"","minimum":0,"maximum":1000000}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/HallStars"}},"pagination":{"$ref":"#/components/schemas/Pagination"},"links":{"$ref":"#/components/schemas/Links"}},"required":["data","pagination","links"]},"example":{"data":[{"position":1,"id":42,"name":"ExamplePlayer","country":{"code":"DE","name":"Germany"},"gold":2,"silver":1,"bronze":0,"lastPeriod":"2026-09-01"}],"pagination":{"page":1,"limit":25,"offset":0,"total":9,"totalPages":1},"links":{"self":"/stats/api/v1/rankings/cstrike/hall-of-fame/stars","first":"/stats/api/v1/rankings/cstrike/hall-of-fame/stars","prev":null,"next":null,"last":"/stats/api/v1/rankings/cstrike/hall-of-fame/stars"}}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown ranking, or it shows no hall of fame","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/misc":{"get":{"operationId":"getMiscStats","tags":["Statistics"],"summary":"Misc statistics","description":"The misc page of a ranking: countries of the ranked players (null: unknown), connects and play time per weekday over the last year, connect methods (where the collector records them; `name` in English) and connects per day of the last 30 days.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"countries":{"type":"array","items":{"type":"object","properties":{"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"players":{"type":"integer","description":"Ranked players"}},"required":["country","players"]}},"weekdays":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"string","description":"monday to sunday"},"connects":{"type":"integer","description":"Connects"},"connectionTime":{"type":"integer","description":"Time played in seconds"}},"required":["weekday","connects","connectionTime"]}},"connectTypes":{"type":"array","items":{"type":"object","properties":{"type":{"type":"integer","description":"Connect method"},"name":{"anyOf":[{"type":"string","description":"Name of the method"},{"type":"null"}]},"connects":{"type":"integer","description":"Players"}},"required":["type","name","connects"]}},"connectsPerDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","description":"Day (YYYY-MM-DD)","format":"date"},"connects":{"type":"integer","description":"Connects"}},"required":["day","connects"]}}},"required":["game","countries","weekdays","connectTypes","connectsPerDay"]},"example":{"game":"cstrike","countries":[{"country":{"code":"DE","name":"Germany"},"players":412}],"weekdays":[{"weekday":"monday","connects":812,"connectionTime":1234567}],"connectTypes":[{"type":6,"name":"Steam","connects":120}],"connectsPerDay":[{"day":"2026-01-01","connects":61}]}}}},"404":{"description":"Unknown ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rankings/{game}/maps/{id}/heatmap":{"get":{"operationId":"getMapHeatmap","tags":["Maps"],"summary":"Heatmap of a map","description":"The heatmap of the map page: where killers stood (with the headshot flag) and where players died, the newest 3000 positions of each, in game units (x to the right, y up; `bounds` frames them). No players, only positions. Counter-Strike 2 maps with two levels (`levels` not null) take `level=upper` or `lower`.","parameters":[{"name":"game","in":"path","required":true,"description":"Code of the ranking, as in /api/v1/rankings","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"id","in":"path","required":true,"description":"ID of the map","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":7},{"name":"level","in":"query","description":"upper or lower (maps with two levels only)","schema":{"type":"string","description":"","enum":["upper","lower"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Map ID"},"map":{"type":"string","description":"Map name"},"levels":{"anyOf":[{"type":"object","properties":{"split":{"type":"integer","description":"Height (game units) between the levels"},"level":{"anyOf":[{"type":"string","description":"The level shown; null: both"},{"type":"null"}]}},"required":["split","level"]},{"type":"null"}]},"bounds":{"anyOf":[{"type":"object","properties":{"minX":{"type":"number","description":"Left edge"},"minY":{"type":"number","description":"Bottom edge"},"width":{"type":"number","description":"Width"},"height":{"type":"number","description":"Height"}},"required":["minX","minY","width","height"]},{"type":"null"}]},"kills":{"type":"integer","description":"Kill positions stored"},"deaths":{"type":"integer","description":"Death positions stored"},"killDots":{"type":"array","items":{"type":"object","properties":{"x":{"type":"number","description":"x"},"y":{"type":"number","description":"y"},"headshot":{"type":"boolean","description":"Headshot"}},"required":["x","y","headshot"]}},"deathDots":{"type":"array","items":{"type":"object","properties":{"x":{"type":"number","description":"x"},"y":{"type":"number","description":"y"}},"required":["x","y"]}}},"required":["game","id","map","levels","bounds","kills","deaths","killDots","deathDots"]},"example":{"game":"cstrike","id":7,"map":"de_dust2","levels":null,"bounds":{"minX":-2400,"minY":-1200,"width":4200,"height":4500},"kills":18234,"deaths":18190,"killDots":[{"x":-410,"y":1720,"headshot":true}],"deathDots":[{"x":-380,"y":1910}]}}}},"400":{"description":"Invalid query parameter (the message names it and what it accepts)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Unknown map, or the map belongs to another ranking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (more than 120 per minute from one address); see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/admin/me":{"get":{"operationId":"adminMe","tags":["Admin: account"],"summary":"Token owner","description":"The admin the token belongs to, their level and rights, and the token used. Tokens are created and revoked only on the account page (Admin → My account → API tokens); there is no API for that.\n\nNeeds: any admin.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string","description":"User name"},"level":{"type":"integer","description":"Admin level: 100 full admin, 80 restricted"},"permissions":{"type":"array","items":{"type":"string","description":"","enum":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"]},"description":"What the admin may do (level 100: every right)"},"token":{"type":"object","properties":{"name":{"type":"string","description":"Name of the token"},"scopes":{"type":"array","items":{"type":"string","description":"","enum":["read","write","mcp"]},"description":"What the token may do"},"prefix":{"type":"string","description":"First characters of the token"}},"required":["name","scopes","prefix"],"additionalProperties":false}},"required":["username","level","permissions","token"],"additionalProperties":false},"example":{"username":"admin","level":100,"permissions":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"],"token":{"name":"deploy script","scopes":["read","write"],"prefix":"gwe_Ab12Cd34"}}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings":{"get":{"operationId":"adminListRankings","tags":["Admin: rankings"],"summary":"List rankings","description":"Every ranking (also hidden ones and templates without servers) with its game and number of servers, in display order.\n\nNeeds: the right `rankings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminRankingSummary"}},"example":[{"id":3,"code":"cstrike","name":"Example Assault","hidden":false,"baseGame":"css","servers":2,"template":false}]}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateRanking","tags":["Admin: rankings"],"summary":"Create a ranking","description":"Creates a ranking with the checks of the admin page. `realgame` is the ranking's game; `template` (optional) copies weapons, actions, teams, roles, awards, ranks and ribbons from that ranking, must be of the same game and defaults to the game's standard ranking (e.g. `css`); `name` empty takes the game's name; `realgame` empty takes the template's game, one of the two is required. Fields left out get the value an empty form field gives.\n\nNeeds: the right `rankings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRankingCreate"},"example":{"code":"cstrike","template":"css","name":"Example Assault","hidden":false,"display_id":1}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRanking"},"example":{"id":3,"code":"cstrike","realgame":"css","name":"Example Assault","hidden":false,"display_id":1}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}":{"get":{"operationId":"adminGetRanking","tags":["Admin: rankings"],"summary":"Get a ranking","description":"One ranking with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `rankings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRanking"},"example":{"id":3,"code":"cstrike","realgame":"css","name":"Example Assault","hidden":false,"display_id":1}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateRanking","tags":["Admin: rankings"],"summary":"Change a ranking","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `rankings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRankingUpdate"},"example":{"realgame":"css","name":"Example Assault"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRanking"},"example":{"id":3,"code":"cstrike","realgame":"css","name":"Example Assault","hidden":false,"display_id":1}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/servers":{"get":{"operationId":"adminListServers","tags":["Admin: servers"],"summary":"List servers","description":"The collector only accepts logs from servers listed here and re-reads the list every minute. On the game server: logaddress_add <collector IP>:41337; Counter-Strike 2 (with -usercon): logaddress_delall_http and logaddress_add_http \"http://<collector IP>:41338/<log token>\" (the server's log token, entered here). Same list as Admin → Servers.\n\nNeeds: the right `servers.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"q","in":"query","description":"Search in name, address","schema":{"type":"string","description":"","maxLength":100}},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["name","address","port","game","display_id"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminServer"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":1,"name":"Example Server #1","address":"203.0.113.10","port":27015,"game":"cstrike","rcon_passwordSet":true,"log_secretSet":false,"publicaddress":"play.example.org:27015","max_players":24,"display_id":1}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateServer","tags":["Admin: servers"],"summary":"Create a server","description":"Creates a server with the checks of the admin page. IP and port must be unique (`409 duplicate`, with the other server's ID). Fields left out get the value an empty form field gives.\n\nNeeds: the right `servers.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminServerCreate"},"example":{"name":"Example Server #1","address":"203.0.113.10","port":27015,"game":"cstrike","publicaddress":"play.example.org:27015","max_players":24,"display_id":1,"rcon_password":"REPLACE_WITH_RCON_PASSWORD"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminServer"},"example":{"id":1,"name":"Example Server #1","address":"203.0.113.10","port":27015,"game":"cstrike","rcon_passwordSet":true,"log_secretSet":false,"publicaddress":"play.example.org:27015","max_players":24,"display_id":1}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/servers/{id}":{"get":{"operationId":"adminGetServer","tags":["Admin: servers"],"summary":"Get a server","description":"One server with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `servers.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the server","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminServer"},"example":{"id":1,"name":"Example Server #1","address":"203.0.113.10","port":27015,"game":"cstrike","rcon_passwordSet":true,"log_secretSet":false,"publicaddress":"play.example.org:27015","max_players":24,"display_id":1}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateServer","tags":["Admin: servers"],"summary":"Change a server","description":"Changes only the fields sent, with the checks of the admin page. A new `game` must be a ranking of the same game (`409 mismatch`); IP and port stay unique (`409 duplicate`). A secret set to null is cleared.\n\nNeeds: the right `servers.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the server","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminServerUpdate"},"example":{"name":"Example Server #1","address":"203.0.113.10"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminServer"},"example":{"id":1,"name":"Example Server #1","address":"203.0.113.10","port":27015,"game":"cstrike","rcon_passwordSet":true,"log_secretSet":false,"publicaddress":"play.example.org:27015","max_players":24,"display_id":1}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteServer","tags":["Admin: servers"],"summary":"Delete a server","description":"Deletes the server for good.\n\nNeeds: the right `servers.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the server","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/players":{"get":{"operationId":"adminListPlayers","tags":["Admin: players and clans"],"summary":"List players","description":"The name comes from the game and is updated by the collector on every connect. Same list as Admin → Players.\n\nNeeds: the right `players.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"q","in":"query","description":"Search in lastName","schema":{"type":"string","description":"","maxLength":100}},{"name":"status","in":"query","description":"Only rows in this state","schema":{"type":"string","description":"","enum":["visible","hidden","banned","inactive"]}},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["lastName","game","skill","hideranking"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminPlayer"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":42,"lastName":"ExamplePlayer","game":"cstrike","skill":1450,"hideranking":"0","clan":3}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/players/{id}":{"get":{"operationId":"adminGetPlayer","tags":["Admin: players and clans"],"summary":"Get a player","description":"One player with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `players.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPlayer"},"example":{"id":42,"lastName":"ExamplePlayer","game":"cstrike","skill":1450,"hideranking":"0","clan":3}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdatePlayer","tags":["Admin: players and clans"],"summary":"Change a player","description":"Changes only the fields sent, with the checks of the admin page. `hideranking`: 0 visible, 1 hidden (admin or bot), 2 banned, 3 hidden by the player.\n\nNeeds: the right `players.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":42}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPlayerUpdate"},"example":{"skill":1450,"hideranking":"0"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPlayer"},"example":{"id":42,"lastName":"ExamplePlayer","game":"cstrike","skill":1450,"hideranking":"0","clan":3}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/clans":{"get":{"operationId":"adminListClans","tags":["Admin: players and clans"],"summary":"List clans","description":"Assign members under Players. The collector does not detect clan tags. Same list as Admin → Clans.\n\nNeeds: the right `players.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"q","in":"query","description":"Search in tag, name","schema":{"type":"string","description":"","maxLength":100}},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["tag","name","game"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminClan"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":3,"tag":"[EX]","name":"Example Clan","homepage":"https://clan.example.org/","game":"cstrike"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateClan","tags":["Admin: players and clans"],"summary":"Create a clan","description":"Creates a clan with the checks of the admin page. Fields left out get the value an empty form field gives.\n\nNeeds: the right `players.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminClanCreate"},"example":{"tag":"[EX]","name":"Example Clan","homepage":"https://clan.example.org/","game":"cstrike"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminClan"},"example":{"id":3,"tag":"[EX]","name":"Example Clan","homepage":"https://clan.example.org/","game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/clans/{id}":{"get":{"operationId":"adminGetClan","tags":["Admin: players and clans"],"summary":"Get a clan","description":"One clan with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `players.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminClan"},"example":{"id":3,"tag":"[EX]","name":"Example Clan","homepage":"https://clan.example.org/","game":"cstrike"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateClan","tags":["Admin: players and clans"],"summary":"Change a clan","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `players.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminClanUpdate"},"example":{"tag":"[EX]","name":"Example Clan"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminClan"},"example":{"id":3,"tag":"[EX]","name":"Example Clan","homepage":"https://clan.example.org/","game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteClan","tags":["Admin: players and clans"],"summary":"Delete a clan","description":"Deletes the clan for good.\n\nNeeds: the right `players.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the clan","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":3}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/weapons":{"get":{"operationId":"adminListWeapons","tags":["Admin: definitions"],"summary":"List weapons","description":"The modifier multiplies the points for a kill with this weapon. The collector creates new weapons on their first kill. Same list as Admin → Weapons.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"q","in":"query","description":"Search in code, name","schema":{"type":"string","description":"","maxLength":100}},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["code","name","modifier","game"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminWeapon"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":12,"code":"ak47","name":"AK-47","modifier":1,"game":"cstrike"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateWeapon","tags":["Admin: definitions"],"summary":"Create a weapon","description":"Creates a weapon with the checks of the admin page. Fields left out get the value an empty form field gives.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWeaponCreate"},"example":{"code":"ak47","name":"AK-47","modifier":1,"game":"cstrike"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWeapon"},"example":{"id":12,"code":"ak47","name":"AK-47","modifier":1,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/weapons/{id}":{"get":{"operationId":"adminGetWeapon","tags":["Admin: definitions"],"summary":"Get a weapon","description":"One weapon with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the weapon","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":12}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWeapon"},"example":{"id":12,"code":"ak47","name":"AK-47","modifier":1,"game":"cstrike"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateWeapon","tags":["Admin: definitions"],"summary":"Change a weapon","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the weapon","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":12}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWeaponUpdate"},"example":{"name":"AK-47","modifier":1}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWeapon"},"example":{"id":12,"code":"ak47","name":"AK-47","modifier":1,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/actions":{"get":{"operationId":"adminListActions","tags":["Admin: definitions"],"summary":"List actions","description":"Bonus points for events such as bomb planted or round won. The code must match the trigger in the server log. Same list as Admin → Actions.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"q","in":"query","description":"Search in code, description","schema":{"type":"string","description":"","maxLength":100}},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["code","description","reward_player","reward_team","game"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminAction"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":7,"code":"Planted_The_Bomb","description":"Planted the bomb","reward_player":3,"reward_team":0,"team":"TERRORIST","for_PlayerActions":true,"for_PlayerPlayerActions":false,"for_TeamActions":false,"for_WorldActions":false,"game":"cstrike"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateAction","tags":["Admin: definitions"],"summary":"Create a action","description":"Creates a action with the checks of the admin page. Fields left out get the value an empty form field gives.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionCreate"},"example":{"code":"Planted_The_Bomb","description":"Planted the bomb","reward_player":3,"reward_team":0,"team":"TERRORIST","for_PlayerActions":true,"for_PlayerPlayerActions":false,"for_TeamActions":false,"for_WorldActions":false,"game":"cstrike"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAction"},"example":{"id":7,"code":"Planted_The_Bomb","description":"Planted the bomb","reward_player":3,"reward_team":0,"team":"TERRORIST","for_PlayerActions":true,"for_PlayerPlayerActions":false,"for_TeamActions":false,"for_WorldActions":false,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/actions/{id}":{"get":{"operationId":"adminGetAction","tags":["Admin: definitions"],"summary":"Get a action","description":"One action with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the action","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":7}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAction"},"example":{"id":7,"code":"Planted_The_Bomb","description":"Planted the bomb","reward_player":3,"reward_team":0,"team":"TERRORIST","for_PlayerActions":true,"for_PlayerPlayerActions":false,"for_TeamActions":false,"for_WorldActions":false,"game":"cstrike"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateAction","tags":["Admin: definitions"],"summary":"Change a action","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the action","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":7}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionUpdate"},"example":{"code":"Planted_The_Bomb","description":"Planted the bomb"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAction"},"example":{"id":7,"code":"Planted_The_Bomb","description":"Planted the bomb","reward_player":3,"reward_team":0,"team":"TERRORIST","for_PlayerActions":true,"for_PlayerPlayerActions":false,"for_TeamActions":false,"for_WorldActions":false,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteAction","tags":["Admin: definitions"],"summary":"Delete a action","description":"Deletes the action for good.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the action","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":7}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/teams":{"get":{"operationId":"adminListTeams","tags":["Admin: definitions"],"summary":"List teams","description":"Teams Same list as Admin → Teams.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["code","name","hidden","game"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminTeam"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":2,"code":"CT","name":"Counter-Terrorists","hidden":false,"game":"cstrike"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateTeam","tags":["Admin: definitions"],"summary":"Create a team","description":"Creates a team with the checks of the admin page. Fields left out get the value an empty form field gives.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTeamCreate"},"example":{"code":"CT","name":"Counter-Terrorists","hidden":false,"game":"cstrike"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTeam"},"example":{"id":2,"code":"CT","name":"Counter-Terrorists","hidden":false,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/teams/{id}":{"get":{"operationId":"adminGetTeam","tags":["Admin: definitions"],"summary":"Get a team","description":"One team with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the team","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":2}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTeam"},"example":{"id":2,"code":"CT","name":"Counter-Terrorists","hidden":false,"game":"cstrike"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateTeam","tags":["Admin: definitions"],"summary":"Change a team","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the team","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":2}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTeamUpdate"},"example":{"name":"Counter-Terrorists","hidden":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTeam"},"example":{"id":2,"code":"CT","name":"Counter-Terrorists","hidden":false,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/roles":{"get":{"operationId":"adminListRoles","tags":["Admin: definitions"],"summary":"List roles","description":"Roles Same list as Admin → Roles.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["code","name","hidden","game"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminRole"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":1,"code":"sniper","name":"Sniper","hidden":false,"game":"cstrike"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateRole","tags":["Admin: definitions"],"summary":"Create a role","description":"Creates a role with the checks of the admin page. Fields left out get the value an empty form field gives.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRoleCreate"},"example":{"code":"sniper","name":"Sniper","hidden":false,"game":"cstrike"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRole"},"example":{"id":1,"code":"sniper","name":"Sniper","hidden":false,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/roles/{id}":{"get":{"operationId":"adminGetRole","tags":["Admin: definitions"],"summary":"Get a role","description":"One role with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the role","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRole"},"example":{"id":1,"code":"sniper","name":"Sniper","hidden":false,"game":"cstrike"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateRole","tags":["Admin: definitions"],"summary":"Change a role","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the role","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRoleUpdate"},"example":{"name":"Sniper","hidden":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRole"},"example":{"id":1,"code":"sniper","name":"Sniper","hidden":false,"game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteRole","tags":["Admin: definitions"],"summary":"Delete a role","description":"Deletes the role for good.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the role","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/awards":{"get":{"operationId":"adminListAwards","tags":["Admin: definitions"],"summary":"List awards","description":"Award definitions as in gameME. The daily winners on the website are computed from daily totals; this list adds to them. Same list as Admin → Awards.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"q","in":"query","description":"Search in code, name","schema":{"type":"string","description":"","maxLength":100}},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["awardType","code","name","game"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminAward"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":9,"awardType":"W","code":"awp","name":"AWP Master","verb":"kills with the AWP","game":"cstrike"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateAward","tags":["Admin: definitions"],"summary":"Create a award","description":"Creates a award with the checks of the admin page. Fields left out get the value an empty form field gives.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAwardCreate"},"example":{"awardType":"W","code":"awp","name":"AWP Master","verb":"kills with the AWP","game":"cstrike"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAward"},"example":{"id":9,"awardType":"W","code":"awp","name":"AWP Master","verb":"kills with the AWP","game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/awards/{id}":{"get":{"operationId":"adminGetAward","tags":["Admin: definitions"],"summary":"Get a award","description":"One award with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the award","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":9}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAward"},"example":{"id":9,"awardType":"W","code":"awp","name":"AWP Master","verb":"kills with the AWP","game":"cstrike"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateAward","tags":["Admin: definitions"],"summary":"Change a award","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the award","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":9}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAwardUpdate"},"example":{"awardType":"W","code":"awp"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAward"},"example":{"id":9,"awardType":"W","code":"awp","name":"AWP Master","verb":"kills with the AWP","game":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteAward","tags":["Admin: definitions"],"summary":"Delete a award","description":"Deletes the award for good.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the award","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":9}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/ranks":{"get":{"operationId":"adminListRanks","tags":["Admin: definitions"],"summary":"List ranks","description":"Ranks by number of kills, shown in the player profile. Same list as Admin → Ranks.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking (code)","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["name","minimum","game_code"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminRank"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":5,"name":"{LANG_RANG_PVT}","minimum":50,"game_code":"cstrike"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateRank","tags":["Admin: definitions"],"summary":"Create a rank","description":"Creates a rank with the checks of the admin page. Fields left out get the value an empty form field gives.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRankCreate"},"example":{"name":"{LANG_RANG_PVT}","minimum":50,"game_code":"cstrike"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRank"},"example":{"id":5,"name":"{LANG_RANG_PVT}","minimum":50,"game_code":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/ranks/{id}":{"get":{"operationId":"adminGetRank","tags":["Admin: definitions"],"summary":"Get a rank","description":"One rank with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: the right `definitions.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the rank","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":5}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRank"},"example":{"id":5,"name":"{LANG_RANG_PVT}","minimum":50,"game_code":"cstrike"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateRank","tags":["Admin: definitions"],"summary":"Change a rank","description":"Changes only the fields sent, with the checks of the admin page.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the rank","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":5}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRankUpdate"},"example":{"name":"{LANG_RANG_PVT}","minimum":50}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRank"},"example":{"id":5,"name":"{LANG_RANG_PVT}","minimum":50,"game_code":"cstrike"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteRank","tags":["Admin: definitions"],"summary":"Delete a rank","description":"Deletes the rank for good.\n\nNeeds: the right `definitions.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the rank","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":5}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/users":{"get":{"operationId":"adminListUsers","tags":["Admin: users"],"summary":"List users","description":"Level 100 = full admin (every right, manages the admins). Level 80 = restricted: only the rights checked on the admin's page. Each user changes their password and TOTP only themselves, under My account. Same list as Admin → Users.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"parameters":[{"name":"sort","in":"query","description":"Sort field (then the default order)","schema":{"type":"string","description":"","enum":["username","acclevel"]}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AdminUser"}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"id":"editor","username":"editor","acclevel":"80","role":null,"permissions":["rankings.view","players.view","players.edit","chat.view"]}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"Missing right, self_security_forbidden (your own account) or password_own_only (another admin's password)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateUser","tags":["Admin: users"],"summary":"Create a user","description":"Creates a user with the checks of the admin page. `password` is required. `permissions` are the rights of a level 80 admin (left out: the old level 80 rights); or `role`, an admin role (GET /admin/admin-roles). Fields left out get the value an empty form field gives.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserCreate"},"example":{"username":"editor","password":"REPLACE_WITH_A_PASSWORD","acclevel":"80","permissions":["players.edit","chat.view"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUser"},"example":{"id":"editor","username":"editor","acclevel":"80","role":null,"permissions":["rankings.view","players.view","players.edit","chat.view"]}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"Missing right, self_security_forbidden (your own account) or password_own_only (another admin's password)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/users/{username}":{"get":{"operationId":"adminGetUser","tags":["Admin: users"],"summary":"Get a user","description":"One user with every field of its edit page. Passwords and secrets are never returned, only whether a secret is set.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"parameters":[{"name":"username","in":"path","required":true,"description":"User name (URL-encoded)","schema":{"type":"string","description":"","minLength":1,"maxLength":128},"example":"editor"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUser"},"example":{"id":"editor","username":"editor","acclevel":"80","role":null,"permissions":["rankings.view","players.view","players.edit","chat.view"]}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"Missing right, self_security_forbidden (your own account) or password_own_only (another admin's password)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateUser","tags":["Admin: users"],"summary":"Change a user","description":"Changes only the fields sent, with the checks of the admin page. `permissions` replaces the rights of a level 80 admin, `role` gives them an admin role instead (null: rights of their own again); demoting the last level 100 admin is refused (`409 last_full_admin`). Your own account cannot be changed or deleted with a token (`403 self_security_forbidden`): change your password and TOTP on your account page. The password of an existing admin cannot be set (`403 password_own_only`): it is given only when the admin is created; afterwards each admin changes only their own, on their account page.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"parameters":[{"name":"username","in":"path","required":true,"description":"User name (URL-encoded)","schema":{"type":"string","description":"","minLength":1,"maxLength":128},"example":"editor"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserUpdate"},"example":{"permissions":["rankings.view","ips.view"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUser"},"example":{"id":"editor","username":"editor","acclevel":"80","role":null,"permissions":["rankings.view","players.view","players.edit","chat.view"]}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"Missing right, self_security_forbidden (your own account) or password_own_only (another admin's password)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteUser","tags":["Admin: users"],"summary":"Delete a user","description":"Deletes the user for good. Also removes the user's TOTP key, API tokens and rights. The last level 100 admin cannot be deleted (`409 last_full_admin`). Your own account cannot be changed or deleted with a token (`403 self_security_forbidden`): change your password and TOTP on your account page.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"parameters":[{"name":"username","in":"path","required":true,"description":"User name (URL-encoded)","schema":{"type":"string","description":"","minLength":1,"maxLength":128},"example":"editor"}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"Missing right, self_security_forbidden (your own account) or password_own_only (another admin's password)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/servers":{"get":{"operationId":"adminListRankingServers","tags":["Admin: rankings"],"summary":"Servers of a ranking","description":"The servers whose logs count for this ranking.\n\nNeeds: the right `servers.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"Server ID"},"name":{"type":"string","description":"Name"},"address":{"type":"string","description":"IP address"},"port":{"type":"integer","description":"Port"}},"required":["id","name","address","port"],"additionalProperties":false}},"example":[{"id":1,"name":"Example Server #1","address":"203.0.113.10","port":27015}]}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminAssignRankingServers","tags":["Admin: rankings"],"summary":"Assign servers to a ranking","description":"Moves the servers into this ranking (they leave their current one). Only servers of the same game (`409 mismatch`). The collector picks the change up within a minute.\n\nNeeds: the right `servers.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"servers":{"type":"array","items":{"type":"integer","description":"Server ID","minimum":1},"description":"Server IDs (1-500)"}},"required":["servers"],"additionalProperties":false},"example":{"servers":[1,2]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"moved":{"type":"integer","description":"Servers moved"}},"required":["moved"],"additionalProperties":false},"example":{"moved":2}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/servers/{id}/move":{"post":{"operationId":"adminMoveServer","tags":["Admin: servers"],"summary":"Move a server to another ranking","description":"Moves one server into another ranking of the same game (`409 mismatch` otherwise).\n\nNeeds: the right `servers.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the server","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ranking":{"type":"string","description":"Code of the target ranking"}},"required":["ranking"],"additionalProperties":false},"example":{"ranking":"cstrike"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","description":"Always true"}},"required":["ok"],"additionalProperties":false},"example":{"ok":true}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/bots":{"get":{"operationId":"adminGetRankingBots","tags":["Admin: rankings"],"summary":"Bot settings of a ranking","description":"Whether bots are ranked, kills with bots give points, kills of bots count for the career rank and kills with bots count in the players' stats.\n\nNeeds: the right `rankings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ranked":{"type":"boolean","description":"Bots appear in the ranking"},"points":{"type":"boolean","description":"Kills with bots give points"},"kills":{"type":"boolean","description":"Kills of bots count for the career rank"},"stats":{"type":"boolean","description":"Kills with bots count in the players' stats (kills, deaths, headshots, K/D)"}},"required":["ranked","points","kills","stats"],"additionalProperties":false},"example":{"ranked":false,"points":false,"kills":true,"stats":false}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"put":{"operationId":"adminSetRankingBots","tags":["Admin: rankings"],"summary":"Change the bot settings","description":"Switching `ranked` also shows or hides the ranking's existing bots; `changedBots` is their number.\n\nNeeds: the right `rankings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ranked":{"type":"boolean","description":"Bots appear in the ranking"},"points":{"type":"boolean","description":"Kills with bots give points"},"kills":{"type":"boolean","description":"Kills of bots count for the career rank"},"stats":{"type":"boolean","description":"Kills with bots count in the players' stats (kills, deaths, headshots, K/D)"}},"required":["ranked","points","kills","stats"],"additionalProperties":false},"example":{"ranked":true,"points":false,"kills":true,"stats":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ranked":{"type":"boolean","description":"As sent"},"points":{"type":"boolean","description":"As sent"},"kills":{"type":"boolean","description":"As sent"},"stats":{"type":"boolean","description":"As sent"},"changedBots":{"type":"integer","description":"Bots shown or hidden"}},"required":["ranked","points","kills","stats","changedBots"],"additionalProperties":false},"example":{"ranked":true,"points":false,"kills":true,"stats":false,"changedBots":12}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/vac":{"get":{"operationId":"adminGetRankingVac","tags":["Admin: rankings"],"summary":"VAC block of a ranking","description":"Whether players with a VAC or game ban are left out of the ranking.\n\nNeeds: the right `rankings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"block":{"type":"boolean","description":"VAC block on"}},"required":["block"],"additionalProperties":false},"example":{"block":false}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"put":{"operationId":"adminSetRankingVac","tags":["Admin: rankings"],"summary":"Switch the VAC block","description":"The collector applies it within a minute (it needs a Steam API key).\n\nNeeds: the right `rankings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"block":{"type":"boolean","description":"VAC block on"}},"required":["block"],"additionalProperties":false},"example":{"block":true}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"block":{"type":"boolean","description":"As sent"}},"required":["block"],"additionalProperties":false},"example":{"block":true}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/fastdl":{"get":{"operationId":"adminGetRankingFastdl","tags":["Admin: rankings"],"summary":"Own FastDL address and download headers of a ranking","description":"Empty: the ranking uses the global address (setting `gamewe_fastdl_url`) and the global header fields (`gamewe_fastdl_agent`, `gamewe_fastdl_referer`, `gamewe_fastdl_user`; the secrets `gamewe_fastdl_password`, `gamewe_fastdl_token`, `gamewe_fastdl_header`). Secrets only say whether they are set.\n\nNeeds: the right `rankings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The ranking's own address, or empty"},"agent":{"type":"string","description":"User-Agent of its downloads, or empty (the global one applies)"},"referer":{"type":"string","description":"Referer, or empty (the global one applies)"},"user":{"type":"string","description":"Basic auth user, or empty"},"password":{"type":"boolean","description":"A basic auth password is stored (never shown)"},"token":{"type":"boolean","description":"A bearer token is stored (never shown)"},"header":{"type":"boolean","description":"Extra headers are stored (never shown)"}},"required":["url","agent","referer","user","password","token","header"],"additionalProperties":false},"example":{"url":"https://dl.example.org/cstrike/","agent":"Mozilla/5.0","referer":"","user":"","password":false,"token":true,"header":false}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"put":{"operationId":"adminSetRankingFastdl","tags":["Admin: rankings"],"summary":"Change the own FastDL address and download headers","description":"url: http(s) only, no user or password; empty removes it, so the global address applies. The download refuses private addresses and redirects as with the global address. The other fields are optional: missing keeps the stored value, an empty agent, referer or user removes it (the global one applies), null removes a secret. A token goes as `Authorization: Bearer`, a user with the password as `Authorization: Basic`; this ranking's token or user replace the global authentication, a token wins over a user. header: one `Name: value`, not Host, Authorization, User-Agent, Referer or connection headers. Secrets are never logged or returned.\n\nNeeds: the right `rankings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The folder above maps/, or empty","maxLength":255},"agent":{"type":"string","description":"User-Agent, empty: the global one","maxLength":255},"referer":{"type":"string","description":"Referer, empty: the global one","maxLength":255},"user":{"type":"string","description":"Basic auth user without a colon, empty: none of its own","maxLength":255},"password":{"anyOf":[{"type":"string","description":"Basic auth password; empty keeps it, null removes it","maxLength":255},{"type":"null"}]},"token":{"anyOf":[{"type":"string","description":"Bearer token; empty keeps it, null removes it","maxLength":255},{"type":"null"}]},"header":{"anyOf":[{"type":"string","description":"Up to 8 more headers, one Name: value per line (\\n), each name once; empty keeps them, null removes them","maxLength":255},{"type":"null"}]}},"required":["url"],"additionalProperties":false},"example":{"url":"https://dl.example.org/cstrike/","agent":"Mozilla/5.0","token":"s3cr3t-token"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The ranking's own address, or empty"},"agent":{"type":"string","description":"User-Agent of its downloads, or empty (the global one applies)"},"referer":{"type":"string","description":"Referer, or empty (the global one applies)"},"user":{"type":"string","description":"Basic auth user, or empty"},"password":{"type":"boolean","description":"A basic auth password is stored (never shown)"},"token":{"type":"boolean","description":"A bearer token is stored (never shown)"},"header":{"type":"boolean","description":"Extra headers are stored (never shown)"}},"required":["url","agent","referer","user","password","token","header"],"additionalProperties":false},"example":{"url":"https://dl.example.org/cstrike/","agent":"Mozilla/5.0","referer":"","user":"","password":false,"token":true,"header":false}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/hall-of-fame":{"get":{"operationId":"adminGetRankingHall","tags":["Admin: rankings"],"summary":"Reset schedule and hall of fame of a ranking","description":"The ranking's own schedule, the one for all rankings, and the one in effect.\n\nNeeds: the right `rankings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","description":"global, own or off"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"page":{"type":"string","description":"auto, on or off"},"global":{"type":"object","properties":{"schedule":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]}},"required":["schedule","mode"],"additionalProperties":false},"effective":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"effectiveMode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"lastStart":{"type":"integer","description":"Start of the running period, 0 if none (Unix time, seconds)"},"periods":{"type":"integer","description":"Periods in the hall of fame"},"available":{"type":"boolean","description":"The database has the hall of fame table (collector 0.19 or newer)"}},"required":["source","schedule","mode","page","global","effective","effectiveMode","lastStart","periods","available"],"additionalProperties":false},"example":{"source":"own","schedule":{"unit":"month","every":1,"monthDay":1},"mode":"player-stats","page":"auto","global":{"schedule":null,"mode":"player-stats"},"effective":{"unit":"month","every":1,"monthDay":1},"effectiveMode":"player-stats","lastStart":1767225600,"periods":4,"available":true}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"put":{"operationId":"adminSetRankingHall","tags":["Admin: rankings"],"summary":"Change the reset schedule of a ranking","description":"`schedule` is needed for `source: own`. Switching a schedule on or changing it needs `confirm: true` (`400 confirmation_required`): the ranking is then reset at the end of every period. A template (a ranking without servers) has no schedule (`409 template_ranking`).\n\nNeeds: the right `resets` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","description":"global: follow the schedule for all rankings; own: own schedule; off: never reset by schedule","enum":["global","own","off"]},"schedule":{"$ref":"#/components/schemas/AdminSchedule"},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"page":{"type":"string","description":"Hall of fame page: auto (shown when there are entries), on or off","enum":["auto","on","off"]},"confirm":{"type":"boolean","description":"Must be true when a schedule is switched on or changed (the ranking is then reset at the end of every period)"}},"required":["source","mode","page"],"additionalProperties":false},"example":{"source":"own","schedule":{"unit":"month","every":1,"monthDay":1},"mode":"player-stats","page":"auto","confirm":true}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","description":"global, own or off"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"page":{"type":"string","description":"auto, on or off"},"global":{"type":"object","properties":{"schedule":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]}},"required":["schedule","mode"],"additionalProperties":false},"effective":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"effectiveMode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"lastStart":{"type":"integer","description":"Start of the running period, 0 if none (Unix time, seconds)"},"periods":{"type":"integer","description":"Periods in the hall of fame"},"available":{"type":"boolean","description":"The database has the hall of fame table (collector 0.19 or newer)"}},"required":["source","schedule","mode","page","global","effective","effectiveMode","lastStart","periods","available"],"additionalProperties":false},"example":{"source":"own","schedule":{"unit":"month","every":1,"monthDay":1},"mode":"player-stats","page":"auto","global":{"schedule":null,"mode":"player-stats"},"effective":{"unit":"month","every":1,"monthDay":1},"effectiveMode":"player-stats","lastStart":1767225600,"periods":4,"available":true}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"503":{"description":"The database lacks what this needs (update the collector)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/hall-of-fame/entries":{"get":{"operationId":"adminListHallEntries","tags":["Admin: rankings"],"summary":"Hall of fame entries","description":"Every stored period with all places, removed entries too, newest first.\n\nNeeds: the right `resets` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"unit":{"type":"string","description":"Unit of the period"},"every":{"type":"integer","description":"Units per period"},"start":{"type":"string","description":"First day"},"end":{"type":"string","description":"Last day"},"entries":{"type":"array","items":{"type":"object","properties":{"place":{"type":"integer","description":"Place"},"playerId":{"type":"integer","description":"Player ID"},"name":{"type":"string","description":"Name at the time"},"currentName":{"anyOf":[{"type":"string","description":"Current name"},{"type":"null"}]},"points":{"type":"integer","description":"Points"},"kills":{"type":"integer","description":"Kills"},"removed":{"type":"boolean","description":"Removed by an admin"},"hidden":{"type":"boolean","description":"The player is hidden now"}},"required":["place","playerId","name","currentName","points","kills","removed","hidden"],"additionalProperties":false}}},"required":["unit","every","start","end","entries"],"additionalProperties":false}},"example":[{"unit":"month","every":1,"start":"2026-09-01","end":"2026-09-30","entries":[{"place":1,"playerId":42,"name":"ExamplePlayer","currentName":"ExamplePlayer","points":2210,"kills":5321,"removed":false,"hidden":false}]}]}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/hall-of-fame/entries/remove":{"post":{"operationId":"adminRemoveHallEntries","tags":["Admin: rankings"],"summary":"Remove hall of fame entries","description":"Removes one place or, without `place`, the whole period from the hall of fame (they can be restored). Needs `confirm: true`.\n\nNeeds: the right `resets` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"string","description":"First day of the period, YYYY-MM-DD"},"place":{"type":"integer","description":"Place 1-99; left out: the whole period","minimum":1,"maximum":99},"confirm":{"type":"boolean","description":"Must be true"}},"required":["start","confirm"],"additionalProperties":false},"example":{"start":"2026-09-01","place":1,"confirm":true}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"integer","description":"Entries changed"}},"required":["changed"],"additionalProperties":false},"example":{"changed":1}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/hall-of-fame/entries/restore":{"post":{"operationId":"adminRestoreHallEntries","tags":["Admin: rankings"],"summary":"Restore hall of fame entries","description":"Brings back one place or, without `place`, the whole period.\n\nNeeds: the right `resets` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"start":{"type":"string","description":"First day of the period, YYYY-MM-DD","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"place":{"type":"integer","description":"Place 1-99; left out: the whole period","minimum":1,"maximum":99}},"required":["start"],"additionalProperties":false},"example":{"start":"2026-09-01","place":1}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"integer","description":"Entries changed"}},"required":["changed"],"additionalProperties":false},"example":{"changed":1}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/players/{id}/erase":{"post":{"operationId":"adminErasePlayer","tags":["Admin: jobs and resets"],"summary":"Delete a player's data","description":"Queues a job for an erasure request; the collector deletes the player with names, Steam IDs, statistics, events, chat, connection data, bans and hall of fame entries (it pauses the ranking's servers). `confirm: true` is required because the data is **deleted for good**. Events shared with another player go too, that player's totals stay.\n\nNeeds: the right `players.erase` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the player","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":1}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirm":{"type":"boolean","description":"Must be true: the data is deleted for good"}},"required":["confirm"],"additionalProperties":false},"example":{"confirm":true}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"integer","description":"Job ID"}},"required":["job"],"additionalProperties":false},"example":{"job":18}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"503":{"description":"The database lacks what this needs (update the collector)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/rankings/{code}/reset":{"post":{"operationId":"adminResetRanking","tags":["Admin: jobs and resets"],"summary":"Reset a ranking","description":"Queues a reset job; the collector runs it (it pauses the ranking's servers). `confirm: true` is required because the data is **deleted for good**. A reset already queued for the ranking is returned instead (`existing: true`). Poll `/admin/jobs/{id}` for the result. A template (a ranking without servers) is never reset (`409 template_ranking`).\n\nNeeds: the right `resets` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"code","in":"path","required":true,"description":"Code of the ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"confirm":{"type":"boolean","description":"Must be true: the data is deleted for good"}},"required":["mode","confirm"],"additionalProperties":false},"example":{"mode":"player-stats","confirm":true}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"integer","description":"Job ID"},"existing":{"type":"boolean","description":"A reset was already queued"}},"required":["job","existing"],"additionalProperties":false},"example":{"job":17,"existing":false}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"503":{"description":"The database lacks what this needs (update the collector)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/hall-of-fame":{"get":{"operationId":"adminGetGlobalHall","tags":["Admin: rankings"],"summary":"Reset schedule for all rankings","description":"The schedule every ranking without its own one follows.\n\nNeeds: the right `rankings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Switched on"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]}},"required":["enabled","schedule","mode"],"additionalProperties":false},"example":{"enabled":true,"schedule":{"unit":"month","every":1,"monthDay":1},"mode":"player-stats"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"put":{"operationId":"adminSetGlobalHall","tags":["Admin: rankings"],"summary":"Change the reset schedule for all rankings","description":"Switching it on or changing it while on needs `confirm: true`: every ranking that follows it is reset at the end of every period.\n\nNeeds: the right `resets` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Switched on"},"schedule":{"$ref":"#/components/schemas/AdminSchedule"},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"confirm":{"type":"boolean","description":"Must be true when it is switched on or changed"}},"required":["enabled","schedule","mode"],"additionalProperties":false},"example":{"enabled":true,"schedule":{"unit":"month","every":1,"monthDay":1},"mode":"player-stats","confirm":true}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Switched on"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/AdminSchedule"},{"type":"null"}]},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]}},"required":["enabled","schedule","mode"],"additionalProperties":false},"example":{"enabled":true,"schedule":{"unit":"month","every":1,"monthDay":1},"mode":"player-stats"}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/jobs":{"get":{"operationId":"adminJobs","tags":["Admin: jobs and resets"],"summary":"Jobs of the collector","description":"What the collector does next, what waits or runs and what it did last (Admin → Jobs).\n\nNeeds: the right `jobs.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"collectorSeen":{"type":"integer","description":"Last heartbeat of the collector, 0 if never (Unix time, seconds)"},"queue":{"type":"array","items":{"$ref":"#/components/schemas/AdminJob"},"description":"Waiting and running jobs"},"history":{"type":"array","items":{"$ref":"#/components/schemas/AdminJob"},"description":"Finished jobs, newest first (last 30)"},"scheduled":{"type":"array","items":{"type":"object","properties":{"game":{"type":"string","description":"Ranking"},"schedule":{"$ref":"#/components/schemas/AdminSchedule"},"mode":{"type":"string","description":"What a reset deletes: player-stats (player statistics), all-stats (also server statistics), all (also the players)","enum":["player-stats","all-stats","all"]},"next":{"type":"integer","description":"Next reset (Unix time, seconds)"}},"required":["game","schedule","mode","next"],"additionalProperties":false}},"available":{"type":"boolean","description":"The job table exists (collector 0.1.0 or newer)"}},"required":["collectorSeen","queue","history","scheduled","available"],"additionalProperties":false},"example":{"collectorSeen":1767225600,"queue":[],"history":[{"id":17,"type":"scheduled-reset","game":"cstrike","mode":"player-stats","status":"done","requestedBy":"schedule","requestedAt":1767225000,"startedAt":1767225030,"finishedAt":1767225041,"result":"ok","origin":{"feature":"scheduled_resets","startup":true,"from":1759269600,"to":1767222000,"schedule":"3 month","inherited":true,"zone":"Europe/Berlin","day":"","command":"","token":"","version":"1.4.0"}}],"scheduled":[{"game":"cstrike","schedule":{"unit":"month","every":1,"monthDay":1},"mode":"player-stats","next":1769904000}],"available":true}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/jobs/{id}":{"get":{"operationId":"adminGetResetJob","tags":["Admin: jobs and resets"],"summary":"State of a reset job","description":"The reset job returned by `POST /admin/rankings/{code}/reset`.\n\nNeeds: the right `jobs.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of the job","schema":{"type":"integer","description":"","minimum":1,"maximum":9999999999},"example":17}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminJob"},"example":{"id":17,"type":"reset","game":"cstrike","mode":"player-stats","status":"running","requestedBy":"admin","requestedAt":1767225000,"startedAt":1767225030,"finishedAt":0,"result":"","origin":{"feature":"api","startup":false,"from":0,"to":0,"schedule":"","inherited":false,"zone":"","day":"","command":"","token":"deploy","version":""}}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/admin-roles":{"get":{"operationId":"adminListAdminRoles","tags":["Admin: users"],"summary":"List admin roles","description":"Every admin role with its rights and the admins who have it. An admin with a role has exactly the role's rights (users: `role`).\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminAccessRole"}},"example":[{"id":"a1b2c3d4","name":"Level 75","permissions":["rankings.view","players.view","players.edit"],"admins":["editor"]}]}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateAdminRole","tags":["Admin: users"],"summary":"Create an admin role","description":"A new role with a unique name (`409 duplicate`). At most 50 roles (`409 limit`).\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccessRoleCreate"},"example":{"name":"Level 75","permissions":["rankings.view","players.edit"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccessRole"},"example":{"id":"a1b2c3d4","name":"Level 75","permissions":["rankings.view","players.view","players.edit"],"admins":["editor"]}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/admin-roles/{role}":{"get":{"operationId":"adminGetAdminRole","tags":["Admin: users"],"summary":"Get an admin role","description":"One role with its rights and admins.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"parameters":[{"name":"role","in":"path","required":true,"description":"ID of the admin role","schema":{"type":"string","description":"","pattern":"^[a-z0-9]{8}$"},"example":"a1b2c3d4"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccessRole"},"example":{"id":"a1b2c3d4","name":"Level 75","permissions":["rankings.view","players.view","players.edit"],"admins":["editor"]}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateAdminRole","tags":["Admin: users"],"summary":"Change an admin role","description":"Renames the role or replaces its rights; every admin with the role has the new rights at once.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"parameters":[{"name":"role","in":"path","required":true,"description":"ID of the admin role","schema":{"type":"string","description":"","pattern":"^[a-z0-9]{8}$"},"example":"a1b2c3d4"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccessRoleUpdate"},"example":{"permissions":["rankings.view","players.edit","chat.view"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAccessRole"},"example":{"id":"a1b2c3d4","name":"Level 75","permissions":["rankings.view","players.view","players.edit"],"admins":["editor"]}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteAdminRole","tags":["Admin: users"],"summary":"Delete an admin role","description":"Deletes the role. A role that admins still have stays (`409 role_in_use`): give them another role or rights of their own first.\n\nNeeds: admin level 100.","security":[{"bearerAuth":[]}],"parameters":[{"name":"role","in":"path","required":true,"description":"ID of the admin role","schema":{"type":"string","description":"","pattern":"^[a-z0-9]{8}$"},"example":"a1b2c3d4"}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"409":{"description":"mismatch (server and ranking of different games), last_full_admin (no level 100 admin would be left) or duplicate (IP and port taken, or another row with the same unique key, e.g. an award code twice in a ranking)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/settings":{"get":{"operationId":"adminSettingGroups","tags":["Admin: settings"],"summary":"Settings pages","description":"The settings pages and their settings (without values).\n\nNeeds: the right `settings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminSettingGroup"}},"example":[{"id":"general","area":"website","title":"General","settings":[{"key":"sitename","type":"text","label":"Site title","readOnly":false}]}]}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/settings/raw":{"get":{"operationId":"adminGetRawOptions","tags":["Admin: settings"],"summary":"Other options (raw)","description":"hlstats_Options rows without a field on a settings page. Secrets, TOTP keys, API tokens and the privacy texts are never listed.\n\nNeeds: the right `settings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"Key"},"value":{"type":"string","description":"Value"},"readOnly":{"type":"boolean","description":"Written by the collector"}},"required":["key","value","readOnly"],"additionalProperties":false}},"example":[{"key":"gamewe_heartbeat","value":"1767225600","readOnly":true}]}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateRawOptions","tags":["Admin: settings"],"summary":"Change other options (raw)","description":"Changes or deletes listed rows and adds one new key (letters, digits, `_ . -`; not a key of a settings page or a hidden one). Without the right settings.protected, rows of reset schedules, the VAC block and bot settings are refused. Values: at most 255 characters, no line breaks.\n\nNeeds: the right `settings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"set":{"type":"object","additionalProperties":{"type":"string","maxLength":255},"description":"Existing keys and their new values"},"delete":{"type":"array","items":{"type":"string","description":"Key"},"description":"Existing keys to delete"},"create":{"type":"object","properties":{"key":{"type":"string","description":"New key","maxLength":128},"value":{"type":"string","description":"Value","maxLength":255}},"required":["key","value"],"additionalProperties":false}},"required":[],"additionalProperties":false},"example":{"set":{"contact":"admin@example.org"},"create":{"key":"example_key","value":"1"}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"written":{"type":"array","items":{"type":"string","description":"Key"}},"removed":{"type":"array","items":{"type":"string","description":"Key"}}},"required":["written","removed"],"additionalProperties":false},"example":{"written":["contact","example_key"],"removed":[]}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/settings/{group}":{"get":{"operationId":"adminGetSettings","tags":["Admin: settings"],"summary":"Settings of one page","description":"The stored values (or defaults) of one settings page. Secrets show only whether they are set.\n\nNeeds: the right `settings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"group","in":"path","required":true,"description":"Settings page","schema":{"type":"string","description":"","enum":["general","design","header","maps","seo","voice","bans","steam","monitoring","api","notifications","capture","privacy","points","commands","admin"]},"example":"general"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettings"},"example":{"id":"general","area":"website","title":"General","settings":{"sitename":"Example Stats","gamewe_default_lang":"en","MinActivity":28,"gamewe_chat_public":false},"readOnly":[]}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"patch":{"operationId":"adminUpdateSettings","tags":["Admin: settings"],"summary":"Change settings of one page","description":"Changes only the settings sent, with the checks of the settings page. Settings that need the right settings.protected are refused without it. Types per setting: see `AdminSettingsChange`.\n\nNeeds: the right `settings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"group","in":"path","required":true,"description":"Settings page","schema":{"type":"string","description":"","enum":["general","design","header","maps","seo","voice","bans","steam","monitoring","api","notifications","capture","privacy","points","commands","admin"]},"example":"general"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettingsChange"},"example":{"sitename":"Example Stats","MinActivity":28,"gamewe_chat_public":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettings"},"example":{"id":"general","area":"website","title":"General","settings":{"sitename":"Example Stats","gamewe_default_lang":"en","MinActivity":28,"gamewe_chat_public":false},"readOnly":[]}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/me/notifications":{"get":{"operationId":"adminMyNotifications","tags":["Admin: account"],"summary":"My notifications","description":"The token owner's own address and events per channel (Admin → My account → Notifications), with the outcome of the last message and test. `ready`: the channel can send (e-mail needs the site's SMTP server, Telegram your bot token). Telegram and ntfy tell whether you stored a token (`token`), never the token itself.\n\nNeeds: any admin.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","description":"Channel","enum":["email","telegram","ntfy"]},"ready":{"type":"boolean","description":"The channel can send: e-mail once the site's SMTP server is set up, Telegram once your bot token is stored, ntfy always"},"to":{"type":"string","description":"Own address, empty: none"},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]}},"token":{"type":"boolean","description":"Telegram and ntfy: an own token is stored (never the token itself)"},"status":{"anyOf":[{"type":"object","properties":{"at":{"type":"integer","description":"When (Unix time, seconds)"},"ok":{"type":"boolean","description":"Delivered"},"error":{"type":"string","description":"Error of the channel, empty if delivered"}},"required":["at","ok","error"],"additionalProperties":false,"description":"Outcome of the last message, written by the collector; null: none yet"},{"type":"null"}]},"test":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Job ID"},"status":{"type":"string","description":"pending, running, done or failed"},"result":{"type":"string","description":"Result"},"at":{"type":"integer","description":"Requested (Unix time, seconds)"}},"required":["id","status","result","at"],"additionalProperties":false,"description":"Last test message; null: none"},{"type":"null"}]}},"required":["channel","ready","to","events","status","test"],"additionalProperties":false}},"lang":{"type":"string","description":"Language of your messages (a language code); empty: the site's default language"},"collectorRunning":{"type":"boolean","description":"The collector's heartbeat is fresh"},"available":{"type":"boolean","description":"The job table exists (test messages)"}},"required":["channels","lang","collectorRunning","available"],"additionalProperties":false},"example":{"channels":[{"channel":"email","ready":true,"to":"me@example.org","events":["reset","hof"],"status":null,"test":null}],"lang":"","collectorRunning":true,"available":true}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"put":{"operationId":"adminSetMyNotifications","tags":["Admin: account"],"summary":"Change my notifications","description":"Sets the token owner's own address, events and tokens of the channels sent; others stay. An empty `to` removes the channel with its token. Addresses: e-mail an address, Telegram the chat ID (or @channel), ntfy a topic on ntfy.sh (letters, digits, `_ -`) or `https://<server>/<topic>`. `token`: Telegram your bot's token from @BotFather (needed), ntfy an access token (`tk_…`, optional); sent only with your messages; empty removes it, missing keeps it. `lang`: the language of your messages.\n\nNeeds: any admin.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"object","properties":{"to":{"type":"string","description":"Address, empty: none","maxLength":200},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]}}},"required":["to","events"],"additionalProperties":false},"telegram":{"type":"object","properties":{"to":{"type":"string","description":"Address, empty: none","maxLength":200},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]}},"token":{"type":"string","description":"Own bot or access token; empty: remove it, missing: keep it","maxLength":128}},"required":["to","events"],"additionalProperties":false},"ntfy":{"type":"object","properties":{"to":{"type":"string","description":"Address, empty: none","maxLength":200},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]}},"token":{"type":"string","description":"Own bot or access token; empty: remove it, missing: keep it","maxLength":128}},"required":["to","events"],"additionalProperties":false},"lang":{"type":"string","description":"Language of your messages (a language code such as de); empty: the site's default language"}},"required":[],"additionalProperties":false},"example":{"email":{"to":"me@example.org","events":["reset","hof","update"]}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","description":"Channel","enum":["email","telegram","ntfy"]},"ready":{"type":"boolean","description":"The channel can send: e-mail once the site's SMTP server is set up, Telegram once your bot token is stored, ntfy always"},"to":{"type":"string","description":"Own address, empty: none"},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]}},"token":{"type":"boolean","description":"Telegram and ntfy: an own token is stored (never the token itself)"},"status":{"anyOf":[{"type":"object","properties":{"at":{"type":"integer","description":"When (Unix time, seconds)"},"ok":{"type":"boolean","description":"Delivered"},"error":{"type":"string","description":"Error of the channel, empty if delivered"}},"required":["at","ok","error"],"additionalProperties":false,"description":"Outcome of the last message, written by the collector; null: none yet"},{"type":"null"}]},"test":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Job ID"},"status":{"type":"string","description":"pending, running, done or failed"},"result":{"type":"string","description":"Result"},"at":{"type":"integer","description":"Requested (Unix time, seconds)"}},"required":["id","status","result","at"],"additionalProperties":false,"description":"Last test message; null: none"},{"type":"null"}]}},"required":["channel","ready","to","events","status","test"],"additionalProperties":false}},"lang":{"type":"string","description":"Language of your messages (a language code); empty: the site's default language"},"collectorRunning":{"type":"boolean","description":"The collector's heartbeat is fresh"},"available":{"type":"boolean","description":"The job table exists (test messages)"}},"required":["channels","lang","collectorRunning","available"],"additionalProperties":false},"example":{"channels":[{"channel":"email","ready":true,"to":"me@example.org","events":["reset","hof","update"],"status":null,"test":null}],"lang":"","collectorRunning":true,"available":true}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/me/notifications/test":{"post":{"operationId":"adminMyNotificationTest","tags":["Admin: account"],"summary":"Test message to me","description":"Queues a test message to the token owner's own stored address of the channel. A test still waiting is returned (`existing: true`).\n\nNeeds: any admin.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","description":"Channel","enum":["email","telegram","ntfy"]}},"required":["channel"],"additionalProperties":false},"example":{"channel":"email"}}}},"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"integer","description":"Job ID"},"existing":{"type":"boolean","description":"A test was already waiting"}},"required":["job","existing"],"additionalProperties":false},"example":{"job":22,"existing":false}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"503":{"description":"The database lacks what this needs (update the collector)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/webhooks":{"get":{"operationId":"adminListWebhooks","tags":["Admin: settings"],"summary":"List webhooks","description":"The site's webhooks (Settings → Notifications), each for one or more events, called by the collector. Header values are never returned.\n\nNeeds: the right `settings.protected` (level 100 has every right).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"ID"},"name":{"type":"string","description":"Name for the overview","maxLength":64},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]},"description":"The events it is called for (at least one), all with the same payload: {event} and {event_label} name the one that happened"},"event":{"type":"string","description":"Deprecated (web 1.22): one event; the output gives the first of events, the input sets events to it. Do not send it with events","enum":["reset","hof","update"]},"enabled":{"type":"boolean","description":"Called on its events; false: only its test"},"method":{"type":"string","description":"HTTP method; GET sends no payload","enum":["POST","PUT","PATCH","GET","DELETE"]},"url":{"type":"string","description":"http(s) address without user or fragment","maxLength":2048},"payload":{"type":"string","description":"Body with placeholders such as {event}, {event_label}, {ranking}, {title}, {body}, {url}, {by}, {placeN_name}, {placeN_points}, {version}; those of another event are empty (docs/USAGE.md)","maxLength":4000},"expect":{"type":"integer","description":"Expected HTTP status; 0: any 2xx","minimum":0,"maximum":599},"allowPrivate":{"type":"boolean","description":"Also loopback and private addresses (a service on the collector's machine or network)"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Header name"},"set":{"type":"boolean","description":"A value is stored (never returned)"}},"required":["name","set"],"additionalProperties":false}},"status":{"anyOf":[{"type":"object","properties":{"at":{"type":"integer","description":"When (Unix time, seconds)"},"ok":{"type":"boolean","description":"Answered the expected status"},"error":{"type":"string","description":"Error, empty if ok"},"code":{"type":"integer","description":"HTTP status, 0 on an error"}},"required":["at","ok","error","code"],"additionalProperties":false,"description":"Last call, written by the collector; null: none yet"},{"type":"null"}]},"test":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Job ID"},"status":{"type":"string","description":"pending, running, done or failed"},"result":{"type":"string","description":"Result"},"at":{"type":"integer","description":"Requested (Unix time, seconds)"}},"required":["id","status","result","at"],"additionalProperties":false,"description":"Last test message; null: none"},{"type":"null"}]}},"required":["id","name","events","event","enabled","method","url","payload","expect","allowPrivate","headers","status","test"],"additionalProperties":false}},"example":[{"id":"0123456789abcdef","name":"Hall of fame to Mastodon","events":["hof","reset"],"event":"hof","enabled":true,"method":"POST","url":"https://social.example.org/api/v1/statuses","payload":"{\"status\":\"{title}\\n{body}\"}","expect":200,"allowPrivate":false,"headers":[{"name":"Authorization","set":true},{"name":"Content-Type","set":true}],"status":null,"test":null}]}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"503":{"description":"The database lacks what this needs (update the collector)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"post":{"operationId":"adminCreateWebhook","tags":["Admin: settings"],"summary":"Create a webhook","description":"A new webhook for one or more events (`events`). Header values must not contain line breaks; Host, Content-Length and the like are set by the collector.\n\nNeeds: the right `settings.protected` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name for the overview","maxLength":64},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]},"description":"The events it is called for (at least one), all with the same payload: {event} and {event_label} name the one that happened"},"event":{"type":"string","description":"Deprecated (web 1.22): one event; the output gives the first of events, the input sets events to it. Do not send it with events","enum":["reset","hof","update"]},"enabled":{"type":"boolean","description":"Called on its events; false: only its test"},"method":{"type":"string","description":"HTTP method; GET sends no payload","enum":["POST","PUT","PATCH","GET","DELETE"]},"url":{"type":"string","description":"http(s) address without user or fragment","maxLength":2048},"payload":{"type":"string","description":"Body with placeholders such as {event}, {event_label}, {ranking}, {title}, {body}, {url}, {by}, {placeN_name}, {placeN_points}, {version}; those of another event are empty (docs/USAGE.md)","maxLength":4000},"expect":{"type":"integer","description":"Expected HTTP status; 0: any 2xx","minimum":0,"maximum":599},"allowPrivate":{"type":"boolean","description":"Also loopback and private addresses (a service on the collector's machine or network)"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Header name, e.g. Authorization"},"value":{"type":"string","description":"Value; empty: keep the stored value of this name"}},"required":["name","value"],"additionalProperties":false},"description":"At most 20; replaces all headers"}},"required":["name","events","url"],"additionalProperties":false},"example":{"name":"Hall of fame to Mastodon","events":["hof","reset"],"url":"https://social.example.org/api/v1/statuses","headers":[{"name":"Authorization","value":"Bearer abc123"},{"name":"Content-Type","value":"application/json"}],"payload":"{\"status\":\"{event_label}: {title}\\n{body}\"}","expect":200}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"ID"},"name":{"type":"string","description":"Name for the overview","maxLength":64},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]},"description":"The events it is called for (at least one), all with the same payload: {event} and {event_label} name the one that happened"},"event":{"type":"string","description":"Deprecated (web 1.22): one event; the output gives the first of events, the input sets events to it. Do not send it with events","enum":["reset","hof","update"]},"enabled":{"type":"boolean","description":"Called on its events; false: only its test"},"method":{"type":"string","description":"HTTP method; GET sends no payload","enum":["POST","PUT","PATCH","GET","DELETE"]},"url":{"type":"string","description":"http(s) address without user or fragment","maxLength":2048},"payload":{"type":"string","description":"Body with placeholders such as {event}, {event_label}, {ranking}, {title}, {body}, {url}, {by}, {placeN_name}, {placeN_points}, {version}; those of another event are empty (docs/USAGE.md)","maxLength":4000},"expect":{"type":"integer","description":"Expected HTTP status; 0: any 2xx","minimum":0,"maximum":599},"allowPrivate":{"type":"boolean","description":"Also loopback and private addresses (a service on the collector's machine or network)"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Header name"},"set":{"type":"boolean","description":"A value is stored (never returned)"}},"required":["name","set"],"additionalProperties":false}},"status":{"anyOf":[{"type":"object","properties":{"at":{"type":"integer","description":"When (Unix time, seconds)"},"ok":{"type":"boolean","description":"Answered the expected status"},"error":{"type":"string","description":"Error, empty if ok"},"code":{"type":"integer","description":"HTTP status, 0 on an error"}},"required":["at","ok","error","code"],"additionalProperties":false,"description":"Last call, written by the collector; null: none yet"},{"type":"null"}]},"test":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Job ID"},"status":{"type":"string","description":"pending, running, done or failed"},"result":{"type":"string","description":"Result"},"at":{"type":"integer","description":"Requested (Unix time, seconds)"}},"required":["id","status","result","at"],"additionalProperties":false,"description":"Last test message; null: none"},{"type":"null"}]}},"required":["id","name","events","event","enabled","method","url","payload","expect","allowPrivate","headers","status","test"],"additionalProperties":false},"example":{"id":"0123456789abcdef","name":"Hall of fame to Mastodon","events":["hof","reset"],"event":"hof","enabled":true,"method":"POST","url":"https://social.example.org/api/v1/statuses","payload":"{\"status\":\"{title}\\n{body}\"}","expect":200,"allowPrivate":false,"headers":[{"name":"Authorization","set":true},{"name":"Content-Type","set":true}],"status":null,"test":null}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"503":{"description":"The database lacks what this needs (update the collector)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/webhooks/{webhook}":{"put":{"operationId":"adminUpdateWebhook","tags":["Admin: settings"],"summary":"Change a webhook","description":"Replaces the webhook's fields; fields left out keep their value. A header sent with an empty value keeps its stored value; headers not sent are removed when `headers` is given.\n\nNeeds: the right `settings.protected` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"webhook","in":"path","required":true,"description":"ID of the webhook","schema":{"type":"string","description":"","pattern":"^[0-9a-f]{16}$"},"example":"0123456789abcdef"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name for the overview","maxLength":64},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]},"description":"The events it is called for (at least one), all with the same payload: {event} and {event_label} name the one that happened"},"event":{"type":"string","description":"Deprecated (web 1.22): one event; the output gives the first of events, the input sets events to it. Do not send it with events","enum":["reset","hof","update"]},"enabled":{"type":"boolean","description":"Called on its events; false: only its test"},"method":{"type":"string","description":"HTTP method; GET sends no payload","enum":["POST","PUT","PATCH","GET","DELETE"]},"url":{"type":"string","description":"http(s) address without user or fragment","maxLength":2048},"payload":{"type":"string","description":"Body with placeholders such as {event}, {event_label}, {ranking}, {title}, {body}, {url}, {by}, {placeN_name}, {placeN_points}, {version}; those of another event are empty (docs/USAGE.md)","maxLength":4000},"expect":{"type":"integer","description":"Expected HTTP status; 0: any 2xx","minimum":0,"maximum":599},"allowPrivate":{"type":"boolean","description":"Also loopback and private addresses (a service on the collector's machine or network)"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Header name, e.g. Authorization"},"value":{"type":"string","description":"Value; empty: keep the stored value of this name"}},"required":["name","value"],"additionalProperties":false},"description":"At most 20; replaces all headers"}},"required":[],"additionalProperties":false},"example":{"enabled":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"ID"},"name":{"type":"string","description":"Name for the overview","maxLength":64},"events":{"type":"array","items":{"type":"string","description":"Event: reset (a ranking was reset), hof (a period ended, the hall of fame was stored), update (a new release of the collector or the web)","enum":["reset","hof","update"]},"description":"The events it is called for (at least one), all with the same payload: {event} and {event_label} name the one that happened"},"event":{"type":"string","description":"Deprecated (web 1.22): one event; the output gives the first of events, the input sets events to it. Do not send it with events","enum":["reset","hof","update"]},"enabled":{"type":"boolean","description":"Called on its events; false: only its test"},"method":{"type":"string","description":"HTTP method; GET sends no payload","enum":["POST","PUT","PATCH","GET","DELETE"]},"url":{"type":"string","description":"http(s) address without user or fragment","maxLength":2048},"payload":{"type":"string","description":"Body with placeholders such as {event}, {event_label}, {ranking}, {title}, {body}, {url}, {by}, {placeN_name}, {placeN_points}, {version}; those of another event are empty (docs/USAGE.md)","maxLength":4000},"expect":{"type":"integer","description":"Expected HTTP status; 0: any 2xx","minimum":0,"maximum":599},"allowPrivate":{"type":"boolean","description":"Also loopback and private addresses (a service on the collector's machine or network)"},"headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Header name"},"set":{"type":"boolean","description":"A value is stored (never returned)"}},"required":["name","set"],"additionalProperties":false}},"status":{"anyOf":[{"type":"object","properties":{"at":{"type":"integer","description":"When (Unix time, seconds)"},"ok":{"type":"boolean","description":"Answered the expected status"},"error":{"type":"string","description":"Error, empty if ok"},"code":{"type":"integer","description":"HTTP status, 0 on an error"}},"required":["at","ok","error","code"],"additionalProperties":false,"description":"Last call, written by the collector; null: none yet"},{"type":"null"}]},"test":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Job ID"},"status":{"type":"string","description":"pending, running, done or failed"},"result":{"type":"string","description":"Result"},"at":{"type":"integer","description":"Requested (Unix time, seconds)"}},"required":["id","status","result","at"],"additionalProperties":false,"description":"Last test message; null: none"},{"type":"null"}]}},"required":["id","name","events","event","enabled","method","url","payload","expect","allowPrivate","headers","status","test"],"additionalProperties":false},"example":{"id":"0123456789abcdef","name":"Hall of fame to Mastodon","events":["hof","reset"],"event":"hof","enabled":false,"method":"POST","url":"https://social.example.org/api/v1/statuses","payload":"{\"status\":\"{title}\\n{body}\"}","expect":200,"allowPrivate":false,"headers":[{"name":"Authorization","set":true},{"name":"Content-Type","set":true}],"status":null,"test":null}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"delete":{"operationId":"adminDeleteWebhook","tags":["Admin: settings"],"summary":"Delete a webhook","description":"Deletes the webhook for good.\n\nNeeds: the right `settings.protected` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"webhook","in":"path","required":true,"description":"ID of the webhook","schema":{"type":"string","description":"","pattern":"^[0-9a-f]{16}$"},"example":"0123456789abcdef"}],"responses":{"204":{"description":"Done, no content"},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/webhooks/{webhook}/test":{"post":{"operationId":"adminWebhookTest","tags":["Admin: settings"],"summary":"Test call of a webhook","description":"Queues a test call with sample values of the webhook's event (`{test}` is 1); the job's result is the HTTP status the service answered. A test still waiting is returned (`existing: true`).\n\nNeeds: the right `settings.protected` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"webhook","in":"path","required":true,"description":"ID of the webhook","schema":{"type":"string","description":"","pattern":"^[0-9a-f]{16}$"},"example":"0123456789abcdef"}],"responses":{"202":{"description":"Queued","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"integer","description":"Job ID"},"existing":{"type":"boolean","description":"A test was already waiting"}},"required":["job","existing"],"additionalProperties":false},"example":{"job":23,"existing":false}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"404":{"description":"Unknown ranking, row, job or settings page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"503":{"description":"The database lacks what this needs (update the collector)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/privacy":{"get":{"operationId":"adminGetPrivacy","tags":["Admin: settings"],"summary":"Operator data of the privacy page","description":"Name, postal address, contact e-mail and the free text of the privacy page.\n\nNeeds: the right `settings.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Controller"},"address":{"type":"string","description":"Postal address (lines with \\n)"},"email":{"type":"string","description":"Contact e-mail"},"text":{"type":"string","description":"Free text"}},"required":["name","address","email","text"],"additionalProperties":false},"example":{"name":"Example Clan e.V.","address":"Example Street 1\n12345 Example City","email":"privacy@example.org","text":""}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}},"put":{"operationId":"adminSetPrivacy","tags":["Admin: settings"],"summary":"Change the operator data of the privacy page","description":"All four fields, with the checks of the page (lengths, e-mail format, no hidden characters).\n\nNeeds: the right `settings.edit` (level 100 has every right).","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Controller","maxLength":120},"address":{"type":"string","description":"Postal address","maxLength":120},"email":{"type":"string","description":"Contact e-mail","maxLength":120},"text":{"type":"string","description":"Free text","maxLength":3000}},"required":["name","address","email","text"],"additionalProperties":false},"example":{"name":"Example Clan e.V.","address":"Example Street 1\n12345 Example City","email":"privacy@example.org","text":""}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Controller"},"address":{"type":"string","description":"Postal address"},"email":{"type":"string","description":"Contact e-mail"},"text":{"type":"string","description":"Free text"}},"required":["name","address","email","text"],"additionalProperties":false},"example":{"name":"Example Clan e.V.","address":"Example Street 1\n12345 Example City","email":"privacy@example.org","text":""}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/chat":{"get":{"operationId":"adminChat","tags":["Admin: data"],"summary":"Stored chat","description":"All stored chat lines, also of hidden players (Admin → Chat). Personal data.\n\nNeeds: the right `chat.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"player","in":"query","description":"Only this player ID","schema":{"type":"integer","description":"","minimum":1}},{"name":"q","in":"query","description":"Search in message and name","schema":{"type":"string","description":"","maxLength":100}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"time":{"type":"integer","description":"Time (Unix time, seconds)"},"playerId":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Player name"},{"type":"null"}]},"team":{"type":"boolean","description":"Team chat"},"message":{"type":"string","description":"Message"},"server":{"anyOf":[{"type":"string","description":"Server name"},{"type":"null"}]}},"required":["time","playerId","name","team","message","server"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"time":1767225600,"playerId":42,"name":"ExamplePlayer","team":false,"message":"gg","server":"Example Server #1"}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}},"/admin/ips":{"get":{"operationId":"adminIps","tags":["Admin: data"],"summary":"Stored player addresses","description":"Address, player and connects (Admin → IP addresses). `q`: an IPv4 address or prefix, a Steam ID or part of a name or host name. Personal data.\n\nNeeds: the right `ips.view` (level 100 has every right).","security":[{"bearerAuth":[]}],"parameters":[{"name":"game","in":"query","description":"Only this ranking","schema":{"type":"string","description":"","pattern":"^[A-Za-z0-9_-]{1,32}$"},"example":"cstrike"},{"name":"q","in":"query","description":"Address, prefix, Steam ID or name","schema":{"type":"string","description":"","maxLength":100}},{"name":"days","in":"query","description":"Only connects of the last N days","schema":{"type":"integer","description":"","minimum":1,"maximum":3650}},{"name":"sort","in":"query","description":"Sort field","schema":{"type":"string","description":"","enum":["last","first","connects","ip","name","steam","game","host"],"default":"last"}},{"name":"order","in":"query","description":"Direction","schema":{"type":"string","description":"","enum":["asc","desc"]}},{"name":"page","in":"query","description":"Page, from 1","schema":{"type":"integer","description":"","minimum":1,"maximum":100000,"default":1}},{"name":"limit","in":"query","description":"Entries per page","schema":{"type":"integer","description":"","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string","description":"IPv4 address"},"playerId":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"game":{"type":"string","description":"Ranking"},"uniqueId":{"anyOf":[{"type":"string","description":"Steam ID"},{"type":"null"}]},"connects":{"type":"integer","description":"Connects"},"first":{"type":"integer","description":"First connect (Unix time, seconds)"},"last":{"type":"integer","description":"Last connect (Unix time, seconds)"},"hostname":{"type":"string","description":"Host name"}},"required":["ip","playerId","name","game","uniqueId","connects","first","last","hostname"],"additionalProperties":false}},"pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page"},"limit":{"type":"integer","description":"Entries per page"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages (at least 1)"}},"required":["page","limit","total","totalPages"],"additionalProperties":false}},"required":["data","pagination"],"additionalProperties":false},"example":{"data":[{"ip":"203.0.113.10","playerId":42,"name":"ExamplePlayer","game":"cstrike","uniqueId":"STEAM_ID_PLACEHOLDER","connects":12,"first":1735689600,"last":1767225600,"hostname":""}],"pagination":{"page":1,"limit":50,"total":1,"totalPages":1}}}}},"400":{"description":"Invalid body or parameter: the field and what it accepts are named; also confirmation_required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"401":{"description":"No, a wrong, expired or revoked token, or its admin no longer exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"403":{"description":"The admin lacks the right this needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"429":{"description":"Too many requests or failed authentications; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}},"500":{"description":"Internal or database error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminError"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong: not found, rate limit, internal error, or which parameter is invalid and what it accepts","examples":["invalid limit: integer from 1 to 100"]}},"required":["error"]},"Country":{"type":"object","properties":{"code":{"type":"string","description":"ISO 3166-1 alpha-2 code"},"name":{"type":"string","description":"Country name"}},"required":["code","name"]},"Pagination":{"type":"object","properties":{"page":{"type":"integer","description":"Current page, from 1"},"limit":{"type":"integer","description":"Entries per page"},"offset":{"type":"integer","description":"Entries skipped"},"total":{"type":"integer","description":"Entries in the whole list"},"totalPages":{"type":"integer","description":"Pages in the whole list (at least 1)"}},"required":["page","limit","offset","total","totalPages"]},"Links":{"type":"object","properties":{"self":{"type":"string","description":"This page"},"first":{"type":"string","description":"First page"},"prev":{"anyOf":[{"type":"string","description":"Previous page; null on the first"},{"type":"null"}]},"next":{"anyOf":[{"type":"string","description":"Next page; null on the last"},{"type":"null"}]},"last":{"type":"string","description":"Last page"}},"required":["self","first","prev","next","last"]},"Server":{"type":"object","properties":{"id":{"type":"integer","description":"Server ID"},"name":{"type":"string","description":"Server name"},"address":{"type":"string","description":"Public address with port"},"map":{"anyOf":[{"type":"string","description":"Current map"},{"type":"null"}]},"players":{"type":"integer","description":"Players online, bots included"},"bots":{"type":"integer","description":"Bots among the players online"},"maxPlayers":{"type":"integer","description":"Slots"},"mapStarted":{"anyOf":[{"type":"integer","description":"Start of the current map (Unix time, seconds)"},{"type":"null"}]},"kills":{"type":"integer","description":"Kills on this server"},"headshots":{"type":"integer","description":"Headshots on this server"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"suicides":{"type":"integer","description":"Suicides"},"rounds":{"type":"integer","description":"Rounds played"},"ctWins":{"type":"integer","description":"Rounds won by the counter-terrorists (0 in games without sides)"},"tWins":{"type":"integer","description":"Rounds won by the terrorists (0 in games without sides)"},"bombsPlanted":{"type":"integer","description":"Bombs planted"},"bombsDefused":{"type":"integer","description":"Bombs defused"},"country":{"anyOf":[{"type":"string","description":"ISO code of the server's country"},{"type":"null"}]},"version":{"anyOf":[{"type":"string","description":"Version of the game server, as it reports it (A2S_INFO or RCON status); null when unknown"},{"type":"null"}]},"os":{"anyOf":[{"type":"string","description":"Operating system of the game server: linux, windows or mac; null when unknown"},{"type":"null"}]},"vac":{"anyOf":[{"type":"boolean","description":"VAC-secured; null when unknown"},{"type":"null"}]}},"required":["id","name","address","map","players","bots","maxPlayers","mapStarted","kills","headshots","hpk","suicides","rounds","ctWins","tWins","bombsPlanted","bombsDefused","country","version","os","vac"]},"LivePlayer":{"type":"object","properties":{"id":{"anyOf":[{"type":"integer","description":"Player ID, null for bots"},{"type":"null"}]},"name":{"type":"string","description":"Name in game"},"bot":{"type":"boolean","description":"Bot"},"team":{"anyOf":[{"type":"string","description":"Team"},{"type":"null"}]},"kills":{"type":"integer","description":"Kills this map"},"deaths":{"type":"integer","description":"Deaths this map"},"headshots":{"type":"integer","description":"Headshots this map"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill this map, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"rounds":{"type":"integer","description":"Rounds this map"},"shots":{"type":"integer","description":"Shots this map"},"hits":{"type":"integer","description":"Hits this map"},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot this map, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"ping":{"anyOf":[{"type":"integer","description":"Latency in ms; null while unknown"},{"type":"null"}]},"points":{"type":"integer","description":"Points, as the website's points column"},"pointsChange":{"type":"integer","description":"Points won or lost this map (the +/- column)"},"rank":{"anyOf":[{"type":"integer","description":"Place in the ranking (by points, then kills, then fewer deaths, then the lower player ID); null for bots, hidden players and players without a kill and a death"},{"type":"null"}]},"skill":{"type":"integer","description":"Points, as the website's points column (deprecated: use points)","deprecated":true},"skillChange":{"type":"integer","description":"Points won or lost this map (deprecated: use pointsChange)","deprecated":true},"connectedSince":{"anyOf":[{"type":"integer","description":"Connected since (Unix time, seconds)"},{"type":"null"}]},"dead":{"type":"boolean","description":"Dead right now"},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]}},"required":["id","name","bot","team","kills","deaths","headshots","hpk","rounds","shots","hits","accuracy","ping","points","pointsChange","rank","skill","skillChange","connectedSince","dead","country"]},"RankingRow":{"type":"object","properties":{"position":{"type":"integer","description":"Number of the row in this list (the website's # column)"},"rank":{"anyOf":[{"type":"integer","description":"Place in the whole ranking: by points, then kills, then fewer deaths, then the lower player ID (no shared places), also in a filtered or re-sorted list; null for inactive players (view=inactive) and players without a kill and a death, who have no place"},{"type":"null"}]},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"points":{"type":"integer","description":"Points, as the website's points column"},"skill":{"type":"integer","description":"Points, as the website's points column (deprecated: use points)","deprecated":true},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"headshots":{"type":"integer","description":"Headshots"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"firstConnect":{"anyOf":[{"type":"integer","description":"First seen (Unix time, seconds)"},{"type":"null"}]},"lastEvent":{"type":"integer","description":"Last seen (Unix time, seconds)"},"activity":{"type":"integer","description":"Activity in percent (100 = played today)","minimum":0,"maximum":100}},"required":["position","rank","id","name","country","points","skill","kills","deaths","headshots","kpd","hpk","accuracy","connectionTime","firstConnect","lastEvent","activity"]},"Place":{"type":"object","properties":{"rank":{"anyOf":[{"type":"integer","description":"Position in this list"},{"type":"null"}]},"country":{"$ref":"#/components/schemas/Country"},"players":{"type":"integer","description":"Ranked players"},"avgPoints":{"type":"integer","description":"Average points of its players (the website's Avg. points column)"},"totalPoints":{"type":"integer","description":"Points of all its players (the website's Total points column)"},"skill":{"type":"integer","description":"Points of all its players (deprecated: use totalPoints)","deprecated":true},"avgSkill":{"type":"integer","description":"Average points (deprecated: use avgPoints)","deprecated":true},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"headshots":{"type":"integer","description":"Headshots"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"lastEvent":{"type":"integer","description":"Last seen of its most recent player (Unix time, seconds)"},"playersUrl":{"type":"string","description":"Path of its players (/rankings/{game}/players with country, state or city) in this API"}},"required":["rank","country","players","avgPoints","totalPoints","skill","avgSkill","kills","deaths","headshots","kpd","hpk","connectionTime","lastEvent","playersUrl"]},"Clan":{"type":"object","properties":{"id":{"type":"integer","description":"Clan ID"},"tag":{"type":"string","description":"Clan tag"},"name":{"type":"string","description":"Clan name"},"homepage":{"anyOf":[{"type":"string","description":"Homepage (http or https only)"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"members":{"type":"integer","description":"Ranked members"},"avgPoints":{"type":"integer","description":"Average points of the members"},"avgSkill":{"type":"integer","description":"Average points of the members (deprecated: use avgPoints)","deprecated":true},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"headshots":{"type":"integer","description":"Headshots"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"lastEvent":{"anyOf":[{"type":"integer","description":"Last seen of its most recent member (Unix time, seconds)"},{"type":"null"}]}},"required":["id","tag","name","homepage","country","members","avgPoints","avgSkill","kills","deaths","headshots","kpd","hpk","connectionTime","lastEvent"]},"Weapon":{"type":"object","properties":{"rank":{"type":"integer","description":"Position in this list"},"code":{"type":"string","description":"Weapon code"},"name":{"type":"string","description":"Weapon name (the code when it has none)"},"modifier":{"type":"number","description":"Points modifier"},"kills":{"type":"integer","description":"Kills"},"killShare":{"anyOf":[{"type":"number","description":"Share of all kills of the ranking's weapons, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"headshots":{"type":"integer","description":"Headshots"},"headshotShare":{"anyOf":[{"type":"number","description":"Share of all headshots of the ranking's weapons, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["rank","code","name","modifier","kills","killShare","headshots","headshotShare","hpk"]},"WeaponPlayer":{"type":"object","properties":{"rank":{"type":"integer","description":"Position in this list"},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"kills":{"type":"integer","description":"Kills with this weapon"},"headshots":{"type":"integer","description":"Headshots"},"shots":{"type":"integer","description":"Shots"},"hits":{"type":"integer","description":"Hits"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["rank","id","name","country","bot","kills","headshots","shots","hits","hpk","accuracy"]},"Map":{"type":"object","properties":{"id":{"type":"integer","description":"Map ID"},"name":{"type":"string","description":"Map name"},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"teamKills":{"type":"integer","description":"Team kills"},"teamAWins":{"type":"integer","description":"Rounds won by the first team (e.g. terrorists)"},"teamBWins":{"type":"integer","description":"Rounds won by the second team (e.g. counter-terrorists)"},"played":{"type":"integer","description":"Times played"},"playTime":{"type":"integer","description":"Time played in seconds"},"rounds":{"type":"integer","description":"Rounds"},"ctWins":{"anyOf":[{"type":"integer","description":"Rounds won by the counter-terrorists; null in rankings without sides and without recorded wins"},{"type":"null"}]},"tWins":{"anyOf":[{"type":"integer","description":"Rounds won by the terrorists; null in rankings without sides and without recorded wins"},{"type":"null"}]},"winRatio":{"anyOf":[{"type":"object","properties":{"ct":{"type":"integer","description":"CT share of the round wins in whole percent (a side with a win never shows 0)"},"t":{"type":"integer","description":"T share in whole percent (ct + t = 100)"}},"required":["ct","t"]},{"type":"null"}]}},"required":["id","name","kills","headshots","hpk","teamKills","teamAWins","teamBWins","played","playTime","rounds","ctWins","tWins","winRatio"]},"MapPlayer":{"type":"object","properties":{"position":{"type":"integer","description":"Number of the row in this list"},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"rank":{"anyOf":[{"type":"integer","description":"Place in the whole ranking (the website's Position column); null with days"},{"type":"null"}]},"kills":{"type":"integer","description":"Kills on this map"},"deaths":{"type":"integer","description":"Deaths on this map"},"headshots":{"type":"integer","description":"Headshots"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"ggWins":{"anyOf":[{"type":"integer","description":"GunGame wins on this map; null outside GunGame rankings and with days"},{"type":"null"}]}},"required":["position","id","name","country","bot","rank","kills","deaths","headshots","kpd","hpk","ggWins"]},"Action":{"type":"object","properties":{"rank":{"type":"integer","description":"Position in this list"},"id":{"type":"integer","description":"Action ID"},"code":{"type":"string","description":"Action code"},"description":{"anyOf":[{"type":"string","description":"Description"},{"type":"null"}]},"team":{"anyOf":[{"type":"string","description":"Team the action is for"},{"type":"null"}]},"bonus":{"type":"integer","description":"Points bonus as the website shows it: the player reward, else the team reward"},"rewardPlayer":{"type":"integer","description":"Points for the player"},"rewardTeam":{"type":"integer","description":"Points for the team"},"count":{"type":"integer","description":"Times it happened"},"share":{"anyOf":[{"type":"number","description":"Share of all actions of the ranking, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"playersUrl":{"type":"string","description":"Path of the action with its best players in this API"}},"required":["rank","id","code","description","team","bonus","rewardPlayer","rewardTeam","count","share","playersUrl"]},"AwardWinner":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"value":{"type":"integer","description":"Count (kills, actions, seconds for longest_playtime, ...)"}},"required":["id","name","country","bot","value"]},"RankPlayer":{"type":"object","properties":{"position":{"type":"integer","description":"Number of the row in this list"},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"},"kills":{"type":"integer","description":"Kills"},"progress":{"type":"number","description":"Progress to the next rank, 0 to 1 (1 in the highest rank)","minimum":0,"maximum":1},"points":{"type":"integer","description":"Points, as the website's points column"},"skill":{"type":"integer","description":"Points, as the website's points column (deprecated: use points)","deprecated":true},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"lastEvent":{"type":"integer","description":"Last seen (Unix time, seconds)"},"activity":{"type":"integer","description":"Activity in percent (100 = played today)","minimum":0,"maximum":100}},"required":["position","id","name","country","bot","kills","progress","points","skill","connectionTime","lastEvent","activity"]},"DayActivity":{"type":"object","properties":{"day":{"type":"string","description":"Day (YYYY-MM-DD, site time zone)","format":"date"},"players":{"type":"integer","description":"Active players"},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"}},"required":["day","players","kills","headshots"]},"PlayerWeapon":{"type":"object","properties":{"code":{"type":"string","description":"Weapon code"},"name":{"type":"string","description":"Weapon name"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths by this weapon"},"headshots":{"type":"integer","description":"Headshots"},"shots":{"type":"integer","description":"Shots"},"hits":{"type":"integer","description":"Hits"},"damage":{"type":"integer","description":"Damage"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"damagePerHit":{"anyOf":[{"type":"number","description":"Damage per hit, two decimals; null without hits"},{"type":"null"}]},"shotsPerKill":{"anyOf":[{"type":"number","description":"Shots per kill, two decimals; null without kills"},{"type":"null"}]},"hitboxes":{"$ref":"#/components/schemas/Hitboxes"}},"required":["code","name","kills","deaths","headshots","shots","hits","damage","kpd","hpk","accuracy","damagePerHit","shotsPerKill","hitboxes"]},"Hitboxes":{"type":"object","properties":{"head":{"type":"integer","description":"Hits on head"},"neck":{"type":"integer","description":"Hits on neck (Counter-Strike 2 only, else 0)"},"chest":{"type":"integer","description":"Hits on chest"},"stomach":{"type":"integer","description":"Hits on stomach"},"leftarm":{"type":"integer","description":"Hits on leftarm"},"rightarm":{"type":"integer","description":"Hits on rightarm"},"leftleg":{"type":"integer","description":"Hits on leftleg"},"rightleg":{"type":"integer","description":"Hits on rightleg"}},"required":["head","neck","chest","stomach","leftarm","rightarm","leftleg","rightleg"]},"PlayerMap":{"type":"object","properties":{"id":{"type":"integer","description":"Map ID"},"name":{"type":"string","description":"Map name"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"headshots":{"type":"integer","description":"Headshots"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["id","name","kills","deaths","headshots","kpd","hpk"]},"PlayerDay":{"type":"object","properties":{"day":{"type":"string","description":"Day (YYYY-MM-DD)","format":"date"},"points":{"type":"integer","description":"Points at the end of the day"},"pointsChange":{"type":"integer","description":"Points won or lost that day: the points against the player's previous day with history (for the oldest day, the change the collector recorded that day)"},"skill":{"type":"integer","description":"Points at the end of the day (deprecated: use points)","deprecated":true},"skillChange":{"type":"integer","description":"Points won or lost that day (deprecated: use pointsChange)","deprecated":true},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"rounds":{"type":"integer","description":"Rounds"},"wins":{"type":"integer","description":"Rounds won"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"headshots":{"type":"integer","description":"Headshots"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"killStreak":{"type":"integer","description":"Longest kill streak"},"shots":{"type":"integer","description":"Shots"},"hits":{"type":"integer","description":"Hits"},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["day","points","pointsChange","skill","skillChange","connectionTime","rounds","wins","kills","deaths","kpd","headshots","hpk","killStreak","shots","hits","accuracy"]},"PlayerAward":{"type":"object","properties":{"day":{"type":"string","description":"Day won (YYYY-MM-DD)","format":"date"},"id":{"type":"integer","description":"Award ID"},"code":{"type":"string","description":"Award code"},"name":{"type":"string","description":"Award name"},"verb":{"type":"string","description":"What was counted"},"value":{"type":"integer","description":"Count that day"}},"required":["day","id","code","name","verb","value"]},"PlaceState":{"allOf":[{"$ref":"#/components/schemas/Place"},{"type":"object","properties":{"state":{"type":"string","description":"State or region (GeoIP subdivision)"}},"required":["state"]}]},"PlaceCity":{"allOf":[{"$ref":"#/components/schemas/Place"},{"type":"object","properties":{"city":{"type":"string","description":"City"}},"required":["city"]}]},"MapRanked":{"allOf":[{"type":"object","properties":{"rank":{"type":"integer","description":"Position in this list"}},"required":["rank"]},{"$ref":"#/components/schemas/Map"},{"type":"object","properties":{"timeShare":{"anyOf":[{"type":"number","description":"Share of the play time of all maps, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"killShare":{"anyOf":[{"type":"number","description":"Share of the kills of all maps, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"headshotShare":{"anyOf":[{"type":"number","description":"Share of the headshots of all maps, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]}},"required":["timeShare","killShare","headshotShare"]}]},"ClanRanked":{"allOf":[{"type":"object","properties":{"rank":{"type":"integer","description":"Position in this list"}},"required":["rank"]},{"$ref":"#/components/schemas/Clan"}]},"Team":{"type":"object","properties":{"position":{"type":"integer","description":"Position in this table (most time first)"},"id":{"type":"integer","description":"Team or role ID"},"code":{"type":"string","description":"Code"},"name":{"type":"string","description":"Name"},"timePlayed":{"type":"integer","description":"Time played in seconds"},"timeShare":{"anyOf":[{"type":"number","description":"Share of the table's time, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"kills":{"type":"integer","description":"Kills"},"killShare":{"anyOf":[{"type":"number","description":"Share of the table's kills, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"deaths":{"type":"integer","description":"Deaths"},"deathShare":{"anyOf":[{"type":"number","description":"Share of the table's deaths, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"headshots":{"type":"integer","description":"Headshots"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"wins":{"type":"integer","description":"Rounds won"},"losses":{"type":"integer","description":"Rounds lost"},"rounds":{"type":"integer","description":"Rounds"}},"required":["position","id","code","name","timePlayed","timeShare","kills","killShare","deaths","deathShare","headshots","kpd","wins","losses","rounds"]},"TeamWithJoins":{"allOf":[{"$ref":"#/components/schemas/Team"},{"type":"object","properties":{"joined":{"type":"integer","description":"Times players joined the team"}},"required":["joined"]}]},"Ban":{"type":"object","properties":{"source":{"type":"string","description":"vac (VAC or game ban from Steam), sourcebans, sourcemod, amx or engine (a ban from the server logs)"},"reason":{"anyOf":[{"type":"string","description":"Reason as the source gives it"},{"type":"null"}]},"bannedAt":{"anyOf":[{"type":"integer","description":"When the ban was given (VAC: to the day); null when the source gives no usable date (Unix time, seconds)"},{"type":"null"}]},"dateText":{"anyOf":[{"type":"string","description":"The source's own date text when bannedAt is null"},{"type":"null"}]},"length":{"anyOf":[{"type":"string","description":"Length as the website shows it (English), e.g. Permanent or 7 days"},{"type":"null"}]},"endsAt":{"anyOf":[{"type":"integer","description":"End of the ban when known (Unix time, seconds)"},{"type":"null"}]}},"required":["source","reason","bannedAt","dateText","length","endsAt"]},"BannedPlayer":{"type":"object","properties":{"position":{"type":"integer","description":"Number of the row"},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bannedAt":{"anyOf":[{"type":"integer","description":"Newest ban of the player (Unix time, seconds)"},{"type":"null"}]},"dateText":{"anyOf":[{"type":"string","description":"The source's date text when there is no usable date"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","description":"The reason of the newest ban other than VAC, else the VAC one"},{"type":"null"}]},"bans":{"type":"array","items":{"$ref":"#/components/schemas/Ban"}},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"url":{"type":"string","description":"Path of the player's profile in this API"}},"required":["position","id","name","country","bannedAt","dateText","reason","bans","kills","deaths","kpd","hpk","accuracy","url"]},"LoadPoint":{"type":"object","properties":{"time":{"type":"integer","description":"Time (Unix time, seconds)"},"players":{"type":"integer","description":"Players at that time"},"min":{"type":"integer","description":"Fewest players in the 10 minutes"},"max":{"type":"integer","description":"Most players in the 10 minutes"},"map":{"anyOf":[{"type":"string","description":"Map"},{"type":"null"}]},"uptime":{"anyOf":[{"type":"integer","description":"Uptime of the game server in seconds; null when unknown"},{"type":"null"}]}},"required":["time","players","min","max","map","uptime"]},"ActivityPoint":{"type":"object","properties":{"time":{"type":"integer","description":"Start of the 15 minutes (Unix time, seconds)"},"players":{"anyOf":[{"type":"number","description":"Players online, the average of the samples, one decimal; null without load samples"},{"type":"null"}]},"servers":{"anyOf":[{"type":"integer","description":"Servers with players; null without load samples"},{"type":"null"}]},"kills":{"type":"integer","description":"Kills"},"headshots":{"type":"integer","description":"Headshots"}},"required":["time","players","servers","kills","headshots"]},"Event":{"type":"object","properties":{"time":{"type":"integer","description":"Time (Unix time, seconds)"},"type":{"type":"string","description":"connect, entry, disconnect, team, role, name, action, playeraction (an action on another player), teambonus, kill, suicide or teamkill"},"player":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Who did it: player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"}},"required":["id","name","country","bot"]},{"type":"null"}]},"other":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"The other side (victim, target): player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"}},"required":["id","name","country","bot"]},{"type":"null"}]},"weapon":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Weapon code"},"name":{"type":"string","description":"Weapon name"}},"required":["code","name"]},{"type":"null"}]},"headshot":{"anyOf":[{"type":"boolean","description":"Headshot (kills and deaths only)"},{"type":"null"}]},"action":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Action code"},"name":{"type":"string","description":"Action description"},"bonus":{"type":"integer","description":"Points it brought"}},"required":["code","name","bonus"]},{"type":"null"}]},"team":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Team or role code"},"name":{"type":"string","description":"Team or role name"}},"required":["code","name"]},{"type":"null"}]},"oldName":{"anyOf":[{"type":"string","description":"Name before (name changes only)"},{"type":"null"}]},"newName":{"anyOf":[{"type":"string","description":"Name after (name changes only)"},{"type":"null"}]},"map":{"anyOf":[{"type":"string","description":"Map"},{"type":"null"}]},"server":{"anyOf":[{"type":"string","description":"Server name; null where the collector stores none"},{"type":"null"}]}},"required":["time","type","player","other","weapon","headshot","action","team","oldName","newName","map","server"]},"PlayerEvent":{"type":"object","properties":{"time":{"type":"integer","description":"Time (Unix time, seconds)"},"type":{"type":"string","description":"connect, entry, disconnect, team, role, name, action, playeraction, teambonus, kill, death (killed by other), suicide or teamkill"},"other":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"The other side (victim, killer, target): player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot (bots appear only while the collector ranks them)"}},"required":["id","name","country","bot"]},{"type":"null"}]},"weapon":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Weapon code"},"name":{"type":"string","description":"Weapon name"}},"required":["code","name"]},{"type":"null"}]},"headshot":{"anyOf":[{"type":"boolean","description":"Headshot (kills and deaths only)"},{"type":"null"}]},"action":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Action code"},"name":{"type":"string","description":"Action description"},"bonus":{"type":"integer","description":"Points it brought"}},"required":["code","name","bonus"]},{"type":"null"}]},"team":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Team or role code"},"name":{"type":"string","description":"Team or role name"}},"required":["code","name"]},{"type":"null"}]},"oldName":{"anyOf":[{"type":"string","description":"Name before (name changes only)"},{"type":"null"}]},"newName":{"anyOf":[{"type":"string","description":"Name after (name changes only)"},{"type":"null"}]},"map":{"anyOf":[{"type":"string","description":"Map"},{"type":"null"}]}},"required":["time","type","other","weapon","headshot","action","team","oldName","newName","map"]},"Radar":{"type":"object","properties":{"days":{"type":"integer","description":"Days compared (14)"},"activeDays":{"type":"integer","description":"Days with play in them"},"comparedPlayers":{"type":"integer","description":"Players of the ranking active in those days (the average)"},"axes":{"type":"array","items":{"type":"object","properties":{"axis":{"type":"string","description":"kpd, kpm, assists, survived or wins (assists only where the game records them)"},"value":{"anyOf":[{"type":"number","description":"Value; null without data"},{"type":"null"}]},"average":{"anyOf":[{"type":"number","description":"Average of the active players; null without data"},{"type":"null"}]},"relative":{"anyOf":[{"type":"number","description":"value / average; null without an average"},{"type":"null"}]},"noData":{"type":"boolean","description":"No value (no activity, or the game records nothing for it)"}},"required":["axis","value","average","relative","noData"]}}},"required":["days","activeDays","comparedPlayers","axes"]},"MapMarker":{"type":"object","properties":{"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Name"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","description":"City of the point (GeoIP)"},{"type":"null"}]},"lat":{"type":"number","description":"Latitude of the GeoIP city point"},"lng":{"type":"number","description":"Longitude of the GeoIP city point"},"rank":{"anyOf":[{"type":"integer","description":"Place in the ranking; null for inactive members"},{"type":"null"}]},"points":{"type":"integer","description":"Points, as the website's points column"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"lastEvent":{"type":"integer","description":"Last seen (Unix time, seconds)"},"server":{"anyOf":[{"type":"object","properties":{"id":{"type":"integer","description":"Server ID"},"name":{"type":"string","description":"Server name"}},"required":["id","name"]},{"type":"null"}]},"inactive":{"type":"boolean","description":"A clan member the collector moved out of the ranking (clan map only)"}},"required":["id","name","country","city","lat","lng","rank","points","kills","deaths","kpd","lastEvent","server","inactive"]},"MapServer":{"type":"object","properties":{"id":{"type":"integer","description":"Server ID"},"name":{"type":"string","description":"Server name"},"address":{"type":"string","description":"Public address with port"},"map":{"anyOf":[{"type":"string","description":"Current map"},{"type":"null"}]},"city":{"anyOf":[{"type":"string","description":"City (GeoIP)"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"lat":{"type":"number","description":"Latitude (GeoIP)"},"lng":{"type":"number","description":"Longitude (GeoIP)"},"online":{"type":"boolean","description":"The collector wrote a load sample in the last 30 minutes"},"uptime":{"anyOf":[{"type":"integer","description":"Uptime in seconds; null when offline"},{"type":"null"}]},"vac":{"anyOf":[{"type":"boolean","description":"VAC-secured; null when unknown"},{"type":"null"}]}},"required":["id","name","address","map","city","country","lat","lng","online","uptime","vac"]},"ClanDay":{"type":"object","properties":{"day":{"type":"string","description":"Day (YYYY-MM-DD)","format":"date"},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"rounds":{"type":"integer","description":"Rounds"},"wins":{"type":"integer","description":"Rounds won"},"survived":{"type":"integer","description":"Rounds survived"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"headshots":{"type":"integer","description":"Headshots"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"assists":{"type":"integer","description":"Kill assists"},"shots":{"type":"integer","description":"Shots"},"hits":{"type":"integer","description":"Hits"},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"pointsChange":{"type":"integer","description":"Points won or lost that day by all members"}},"required":["day","connectionTime","rounds","wins","survived","kills","deaths","kpd","headshots","hpk","assists","shots","hits","accuracy","pointsChange"]},"SearchPlayer":{"type":"object","properties":{"position":{"type":"integer","description":"Number of the hit"},"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Player ID"},"name":{"anyOf":[{"type":"string","description":"Current name"},{"type":"null"}]},"alias":{"anyOf":[{"type":"string","description":"The used name that matched, when it is not the current one"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"bot":{"type":"boolean","description":"Bot"},"points":{"type":"integer","description":"Points, as the website's points column"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"lastEvent":{"type":"integer","description":"Last seen (Unix time, seconds)"},"url":{"anyOf":[{"type":"string","description":"Path of the player; null for bots without a profile in this API"},{"type":"null"}]}},"required":["position","game","id","name","alias","country","bot","points","kills","deaths","kpd","lastEvent","url"]},"SearchClan":{"type":"object","properties":{"position":{"type":"integer","description":"Number of the hit"},"game":{"type":"string","description":"Code of the ranking"},"id":{"type":"integer","description":"Clan ID"},"tag":{"type":"string","description":"Clan tag"},"name":{"type":"string","description":"Clan name"},"members":{"type":"integer","description":"Ranked members"},"avgPoints":{"anyOf":[{"type":"integer","description":"Average points of the ranked members"},{"type":"null"}]},"url":{"type":"string","description":"Path of the clan in this API"}},"required":["position","game","id","tag","name","members","avgPoints","url"]},"HallEntry":{"type":"object","properties":{"place":{"type":"integer","description":"Place on the podium (after moving up)"},"id":{"anyOf":[{"type":"integer","description":"Player ID; null for a player deleted since"},{"type":"null"}]},"name":{"type":"string","description":"Name at the end of the period"},"currentName":{"anyOf":[{"type":"string","description":"Name now; null when deleted"},{"type":"null"}]},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"points":{"type":"integer","description":"Points at the end of the period"},"kills":{"type":"integer","description":"Kills"},"deaths":{"type":"integer","description":"Deaths"},"kpd":{"type":"number","description":"Kills per death, two decimals"},"headshots":{"type":"integer","description":"Headshots"},"hpk":{"anyOf":[{"type":"number","description":"Headshots per kill, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"accuracy":{"anyOf":[{"type":"number","description":"Hits per shot, a fraction with four decimals (0.3125 = 31.25 %); null without a base","minimum":0,"maximum":1},{"type":"null"}]},"killStreak":{"type":"integer","description":"Longest kill streak"},"connectionTime":{"type":"integer","description":"Time on the servers in seconds"},"favoriteWeapon":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","description":"Weapon code"},"name":{"type":"string","description":"Weapon name"}},"required":["code","name"]},{"type":"null"}]},"rankName":{"anyOf":[{"type":"string","description":"Rank at the end of the period"},{"type":"null"}]}},"required":["place","id","name","currentName","country","points","kills","deaths","kpd","headshots","hpk","accuracy","killStreak","connectionTime","favoriteWeapon","rankName"]},"HallPeriod":{"type":"object","properties":{"unit":{"type":"string","description":"day, week, month or year"},"every":{"type":"integer","description":"Length in units (3 months: a quarter)"},"start":{"type":"string","description":"First day","format":"date"},"end":{"type":"string","description":"Last day","format":"date"},"resetAt":{"type":"integer","description":"When the ranking was reset (Unix time, seconds)"},"players":{"type":"integer","description":"Ranked players at the reset"},"places":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/HallEntry"},{"type":"null"}]}}},"required":["unit","every","start","end","resetAt","players","places"]},"HallStars":{"type":"object","properties":{"position":{"type":"integer","description":"Number of the row"},"id":{"type":"integer","description":"Player ID"},"name":{"type":"string","description":"Name of the latest entry"},"country":{"anyOf":[{"$ref":"#/components/schemas/Country"},{"type":"null"}]},"gold":{"type":"integer","description":"First places"},"silver":{"type":"integer","description":"Second places"},"bronze":{"type":"integer","description":"Third places"},"lastPeriod":{"type":"string","description":"Start of the latest period with a place","format":"date"}},"required":["position","id","name","country","gold","silver","bronze","lastPeriod"]},"VoiceChannel":{"type":"object","properties":{"id":{"type":"integer","description":"Channel ID"},"name":{"type":"string","description":"Channel name"},"spacer":{"anyOf":[{"type":"string","description":"Spacer channel: left, center, right or repeat; null for a channel"},{"type":"null"}]},"topic":{"anyOf":[{"type":"string","description":"Topic"},{"type":"null"}]},"password":{"type":"boolean","description":"Needs a password"},"clientCount":{"type":"integer","description":"People in the channel"},"clients":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Nickname"},"away":{"type":"boolean","description":"Away"},"muted":{"type":"boolean","description":"Microphone off"},"deaf":{"type":"boolean","description":"Sound off"},"country":{"anyOf":[{"type":"string","description":"ISO code"},{"type":"null"}]}},"required":["name","away","muted","deaf","country"]}},"children":{"type":"array","items":{"$ref":"#/components/schemas/VoiceChannel"}}},"required":["id","name","spacer","topic","password","clientCount","clients","children"]},"AdminError":{"type":"object","properties":{"error":{"type":"string","description":"Error code","examples":["unauthorized","forbidden","self_security_forbidden","password_own_only","not_found","invalid_field","unknown_field","read_only_field","missing_field","confirmation_required","mismatch","duplicate","role_in_use","limit","template_ranking","rate_limited"]},"message":{"type":"string","description":"What went wrong, in English"},"field":{"type":"string","description":"The field it is about, if any"},"id":{"type":"integer","description":"For duplicate: the ID of the other server"},"created":{"type":"boolean","description":"A new ranking was created although copying its template's definitions failed"}},"required":["error","message"]},"AdminRanking":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"realgame":{"type":"string","description":"Game. The ranking's game, e.g. Counter-Strike: Source. The collector reads the log format from it, the website shows it as a tag. Only servers of this game can be assigned to the ranking","enum":["","css","csgo","cs2","cstrike","czero","tf","tfc","hl2mp","valve","dods","dod","ns","l4d","l4d2","insurgency","zps","ff","csp","fof","nmrih"]},"name":{"type":"string","description":"Name","maxLength":255},"code":{"type":"string","description":"Code. Short, only a–z, 0–9 and _, e.g. assault or gungame. Used in the URL and cannot be changed later","maxLength":10,"pattern":"^[a-z0-9_]+$"},"hidden":{"type":"boolean","description":"Hidden. Yes: the website does not show the ranking, neither on the start page nor with its own pages. The data is kept"},"display_id":{"type":"integer","description":"Order. Position in menus and lists, lower numbers come first"}},"required":["id","name","code","hidden","display_id"],"additionalProperties":false,"description":"Rankings (Admin → Rankings)"},"AdminRankingCreate":{"type":"object","properties":{"realgame":{"type":"string","description":"Game. The ranking's game, e.g. Counter-Strike: Source. The collector reads the log format from it, the website shows it as a tag. Only servers of this game can be assigned to the ranking","enum":["","css","csgo","cs2","cstrike","czero","tf","tfc","hl2mp","valve","dods","dod","ns","l4d","l4d2","insurgency","zps","ff","csp","fof","nmrih"]},"template":{"type":"string","description":"Template (optional). Where weapons, actions, teams, roles, awards, ranks and ribbons come from. Left empty, the game's standard template is used (e.g. css for Counter-Strike: Source). One of your own rankings of the same game passes on its adjusted values; only templates of the chosen game are allowed. Code of a ranking"},"name":{"type":"string","description":"Name","maxLength":255},"code":{"type":"string","description":"Code. Short, only a–z, 0–9 and _, e.g. assault or gungame. Used in the URL and cannot be changed later","maxLength":10,"pattern":"^[a-z0-9_]+$"},"hidden":{"type":"boolean","description":"Hidden. Yes: the website does not show the ranking, neither on the start page nor with its own pages. The data is kept"},"display_id":{"type":"integer","description":"Order. Position in menus and lists, lower numbers come first"}},"required":["name","code"],"additionalProperties":false,"description":"New ranking"},"AdminRankingUpdate":{"type":"object","properties":{"realgame":{"type":"string","description":"Game. The ranking's game, e.g. Counter-Strike: Source. The collector reads the log format from it, the website shows it as a tag. Only servers of this game can be assigned to the ranking","enum":["","css","csgo","cs2","cstrike","czero","tf","tfc","hl2mp","valve","dods","dod","ns","l4d","l4d2","insurgency","zps","ff","csp","fof","nmrih"]},"name":{"type":"string","description":"Name","maxLength":255},"hidden":{"type":"boolean","description":"Hidden. Yes: the website does not show the ranking, neither on the start page nor with its own pages. The data is kept"},"display_id":{"type":"integer","description":"Order. Position in menus and lists, lower numbers come first"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminServer":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"name":{"type":"string","description":"Name. Once the server answers, the collector takes its hostname (RCON status, else A2S_INFO) and overwrites this value","maxLength":255},"address":{"type":"string","description":"IP address. An IP address, not a host name. Each IP and port combination exists only once","maxLength":32},"port":{"type":"integer","description":"Port. Game and RCON port of the server","minimum":1,"maximum":65535},"game":{"type":"string","description":"Ranking. The ranking decides the game: first choose the ranking's game under Rankings, then assign the server to it. Only rankings of the same game are allowed. Templates (seeded rankings without servers) are not offered; rankings you created are, also before their first server. Code of a ranking"},"rcon_passwordSet":{"type":"boolean","description":"RCON password is set (the value is never returned)"},"log_secretSet":{"type":"boolean","description":"Log secret is set (the value is never returned)"},"publicaddress":{"type":"string","description":"Public address. Shown instead of IP:port, e.g. a host name","maxLength":255},"max_players":{"type":"integer","description":"Slots (max players). Shown as long as the server has never been online. Once it answers, the collector overwrites the value with the real slots (RCON status, else A2S_INFO) and keeps it current. 0 or empty: unknown","minimum":0,"maximum":255},"display_id":{"type":"integer","description":"Order"}},"required":["id","name","address","port","game","rcon_passwordSet","publicaddress","max_players","display_id"],"additionalProperties":false,"description":"Servers (Admin → Servers)"},"AdminServerCreate":{"type":"object","properties":{"name":{"type":"string","description":"Name. Once the server answers, the collector takes its hostname (RCON status, else A2S_INFO) and overwrites this value","maxLength":255},"address":{"type":"string","description":"IP address. An IP address, not a host name. Each IP and port combination exists only once","maxLength":32},"port":{"type":"integer","description":"Port. Game and RCON port of the server","minimum":1,"maximum":65535},"game":{"type":"string","description":"Ranking. The ranking decides the game: first choose the ranking's game under Rankings, then assign the server to it. Only rankings of the same game are allowed. Templates (seeded rankings without servers) are not offered; rankings you created are, also before their first server. Code of a ranking"},"rcon_password":{"anyOf":[{"type":"string","description":"RCON password. Write-only: a string sets it, null clears it, left out it stays","maxLength":128},{"type":"null"}]},"log_secret":{"anyOf":[{"type":"string","description":"Log secret. Write-only: a string sets it, null clears it, left out it stays; a number from 1 to 2147483647, the game server's sv_logsecret; on Counter-Strike 2 the server's log token, 16 to 64 letters, digits, - or _","maxLength":64},{"type":"null"}]},"publicaddress":{"type":"string","description":"Public address. Shown instead of IP:port, e.g. a host name","maxLength":255},"max_players":{"type":"integer","description":"Slots (max players). Shown as long as the server has never been online. Once it answers, the collector overwrites the value with the real slots (RCON status, else A2S_INFO) and keeps it current. 0 or empty: unknown","minimum":0,"maximum":255},"display_id":{"type":"integer","description":"Order"}},"required":["name","address","port","game"],"additionalProperties":false,"description":"New server"},"AdminServerUpdate":{"type":"object","properties":{"name":{"type":"string","description":"Name. Once the server answers, the collector takes its hostname (RCON status, else A2S_INFO) and overwrites this value","maxLength":255},"address":{"type":"string","description":"IP address. An IP address, not a host name. Each IP and port combination exists only once","maxLength":32},"port":{"type":"integer","description":"Port. Game and RCON port of the server","minimum":1,"maximum":65535},"game":{"type":"string","description":"Ranking. The ranking decides the game: first choose the ranking's game under Rankings, then assign the server to it. Only rankings of the same game are allowed. Templates (seeded rankings without servers) are not offered; rankings you created are, also before their first server. Code of a ranking"},"rcon_password":{"anyOf":[{"type":"string","description":"RCON password. Write-only: a string sets it, null clears it, left out it stays","maxLength":128},{"type":"null"}]},"log_secret":{"anyOf":[{"type":"string","description":"Log secret. Write-only: a string sets it, null clears it, left out it stays; a number from 1 to 2147483647, the game server's sv_logsecret; on Counter-Strike 2 the server's log token, 16 to 64 letters, digits, - or _","maxLength":64},{"type":"null"}]},"publicaddress":{"type":"string","description":"Public address. Shown instead of IP:port, e.g. a host name","maxLength":255},"max_players":{"type":"integer","description":"Slots (max players). Shown as long as the server has never been online. Once it answers, the collector overwrites the value with the real slots (RCON status, else A2S_INFO) and keeps it current. 0 or empty: unknown","minimum":0,"maximum":255},"display_id":{"type":"integer","description":"Order"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminPlayer":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"lastName":{"type":"string","description":"Name"},"game":{"type":"string","description":"Ranking"},"skill":{"type":"integer","description":"Points"},"hideranking":{"type":"string","description":"Hide from ranking","enum":["0","1","2","3"]},"clan":{"type":"integer","description":"Clan. Clan ID, 0 for none"},"inactive":{"type":"boolean","description":"Inactive. The collector moved the player to hlstats_PlayersInactive after a long absence; the next connect brings them back"}},"required":["id","lastName","game","skill","hideranking","clan","inactive"],"additionalProperties":false,"description":"Players (Admin → Players)"},"AdminPlayerUpdate":{"type":"object","properties":{"skill":{"type":"integer","description":"Points"},"hideranking":{"type":"string","description":"Hide from ranking","enum":["0","1","2","3"]},"clan":{"type":"integer","description":"Clan. Clan ID, 0 for none"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminClan":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"tag":{"type":"string","description":"Tag","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"homepage":{"type":"string","description":"Homepage","maxLength":255},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["id","tag","name","homepage","game"],"additionalProperties":false,"description":"Clans (Admin → Clans)"},"AdminClanCreate":{"type":"object","properties":{"tag":{"type":"string","description":"Tag","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"homepage":{"type":"string","description":"Homepage","maxLength":255},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["tag","game"],"additionalProperties":false,"description":"New clan"},"AdminClanUpdate":{"type":"object","properties":{"tag":{"type":"string","description":"Tag","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"homepage":{"type":"string","description":"Homepage","maxLength":255},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminWeapon":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"code":{"type":"string","description":"Code","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"modifier":{"type":"number","description":"Modifier"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["id","code","name","modifier","game"],"additionalProperties":false,"description":"Weapons (Admin → Weapons)"},"AdminWeaponCreate":{"type":"object","properties":{"code":{"type":"string","description":"Code","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"modifier":{"type":"number","description":"Modifier"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["code","name","game"],"additionalProperties":false,"description":"New weapon"},"AdminWeaponUpdate":{"type":"object","properties":{"name":{"type":"string","description":"Name","maxLength":255},"modifier":{"type":"number","description":"Modifier"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminAction":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"code":{"type":"string","description":"Code","maxLength":128},"description":{"type":"string","description":"Description","maxLength":255},"reward_player":{"type":"integer","description":"Player reward"},"reward_team":{"type":"integer","description":"Team reward"},"team":{"type":"string","description":"Team","maxLength":128},"for_PlayerActions":{"type":"boolean","description":"Player action"},"for_PlayerPlayerActions":{"type":"boolean","description":"Player-vs-player action"},"for_TeamActions":{"type":"boolean","description":"Team action"},"for_WorldActions":{"type":"boolean","description":"World action"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["id","code","description","reward_player","reward_team","team","for_PlayerActions","for_PlayerPlayerActions","for_TeamActions","for_WorldActions","game"],"additionalProperties":false,"description":"Actions (Admin → Actions)"},"AdminActionCreate":{"type":"object","properties":{"code":{"type":"string","description":"Code","maxLength":128},"description":{"type":"string","description":"Description","maxLength":255},"reward_player":{"type":"integer","description":"Player reward"},"reward_team":{"type":"integer","description":"Team reward"},"team":{"type":"string","description":"Team","maxLength":128},"for_PlayerActions":{"type":"boolean","description":"Player action"},"for_PlayerPlayerActions":{"type":"boolean","description":"Player-vs-player action"},"for_TeamActions":{"type":"boolean","description":"Team action"},"for_WorldActions":{"type":"boolean","description":"World action"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["code","game"],"additionalProperties":false,"description":"New action"},"AdminActionUpdate":{"type":"object","properties":{"code":{"type":"string","description":"Code","maxLength":128},"description":{"type":"string","description":"Description","maxLength":255},"reward_player":{"type":"integer","description":"Player reward"},"reward_team":{"type":"integer","description":"Team reward"},"team":{"type":"string","description":"Team","maxLength":128},"for_PlayerActions":{"type":"boolean","description":"Player action"},"for_PlayerPlayerActions":{"type":"boolean","description":"Player-vs-player action"},"for_TeamActions":{"type":"boolean","description":"Team action"},"for_WorldActions":{"type":"boolean","description":"World action"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminTeam":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"code":{"type":"string","description":"Code","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"hidden":{"type":"boolean","description":"Hidden"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["id","code","name","hidden","game"],"additionalProperties":false,"description":"Teams (Admin → Teams)"},"AdminTeamCreate":{"type":"object","properties":{"code":{"type":"string","description":"Code","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"hidden":{"type":"boolean","description":"Hidden"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["code","name","game"],"additionalProperties":false,"description":"New team"},"AdminTeamUpdate":{"type":"object","properties":{"name":{"type":"string","description":"Name","maxLength":255},"hidden":{"type":"boolean","description":"Hidden"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminRole":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"code":{"type":"string","description":"Code","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"hidden":{"type":"boolean","description":"Hidden"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["id","code","name","hidden","game"],"additionalProperties":false,"description":"Roles (Admin → Roles)"},"AdminRoleCreate":{"type":"object","properties":{"code":{"type":"string","description":"Code","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"hidden":{"type":"boolean","description":"Hidden"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["code","name","game"],"additionalProperties":false,"description":"New role"},"AdminRoleUpdate":{"type":"object","properties":{"name":{"type":"string","description":"Name","maxLength":255},"hidden":{"type":"boolean","description":"Hidden"},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminAward":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"awardType":{"type":"string","description":"Type","enum":["W","O"]},"code":{"type":"string","description":"Code (weapon/action)","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"verb":{"type":"string","description":"Verb. e.g. \"kills with ak47\"","maxLength":255},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["id","awardType","code","name","verb","game"],"additionalProperties":false,"description":"Awards (Admin → Awards)"},"AdminAwardCreate":{"type":"object","properties":{"awardType":{"type":"string","description":"Type","enum":["W","O"]},"code":{"type":"string","description":"Code (weapon/action)","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"verb":{"type":"string","description":"Verb. e.g. \"kills with ak47\"","maxLength":255},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["awardType","code","name","game"],"additionalProperties":false,"description":"New award"},"AdminAwardUpdate":{"type":"object","properties":{"awardType":{"type":"string","description":"Type","enum":["W","O"]},"code":{"type":"string","description":"Code (weapon/action)","maxLength":128},"name":{"type":"string","description":"Name","maxLength":255},"verb":{"type":"string","description":"Verb. e.g. \"kills with ak47\"","maxLength":255},"game":{"type":"string","description":"Ranking. Code of a ranking"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminRank":{"type":"object","properties":{"id":{"type":"integer","description":"Key of the row"},"name":{"type":"string","description":"Name. Placeholders such as {LANG_RANG_PVT} (Private) or {LANG_RANG_GEN} (General) show the rank with its insignia; any other text is shown as it is, with a badge of its initials","maxLength":128},"minimum":{"type":"integer","description":"From kills"},"game_code":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["id","name","minimum","game_code"],"additionalProperties":false,"description":"Ranks (Admin → Ranks)"},"AdminRankCreate":{"type":"object","properties":{"name":{"type":"string","description":"Name. Placeholders such as {LANG_RANG_PVT} (Private) or {LANG_RANG_GEN} (General) show the rank with its insignia; any other text is shown as it is, with a badge of its initials","maxLength":128},"minimum":{"type":"integer","description":"From kills"},"game_code":{"type":"string","description":"Ranking. Code of a ranking"}},"required":["name","minimum","game_code"],"additionalProperties":false,"description":"New rank"},"AdminRankUpdate":{"type":"object","properties":{"name":{"type":"string","description":"Name. Placeholders such as {LANG_RANG_PVT} (Private) or {LANG_RANG_GEN} (General) show the rank with its insignia; any other text is shown as it is, with a badge of its initials","maxLength":128},"minimum":{"type":"integer","description":"From kills"},"game_code":{"type":"string","description":"Ranking. Code of a ranking"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminUser":{"type":"object","properties":{"id":{"type":"string","description":"Key of the row"},"username":{"type":"string","description":"User name","maxLength":128},"acclevel":{"type":"string","description":"Level","enum":["100","80"]},"role":{"anyOf":[{"type":"string","description":"ID of the admin's role, null for rights of their own (level 100: always null)","pattern":"^[a-z0-9]{8}$"},{"type":"null"}]},"permissions":{"type":"array","items":{"type":"string","description":"","enum":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"]},"description":"What the admin may do; level 100 has every right"}},"required":["id","username","acclevel","role","permissions"],"additionalProperties":false,"description":"Users (Admin → Users)"},"AdminUserCreate":{"type":"object","properties":{"username":{"type":"string","description":"User name","maxLength":128},"password":{"type":"string","description":"Password. Write-only, at least 10 characters; stored as a hash. Left out, it stays","minLength":10},"acclevel":{"type":"string","description":"Level","enum":["100","80"]},"role":{"anyOf":[{"type":"string","description":"ID of an admin role (GET /admin/admin-roles): the admin then has exactly the role's rights; null: rights of their own again (they start from the role's). Not together with permissions. Only roles whose rights you have yourself.","pattern":"^[a-z0-9]{8}$"},{"type":"null"}]},"permissions":{"type":"array","items":{"type":"string","description":"","enum":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"]},"description":"Rights of a level 80 admin (a change needs seeing too, so e.g. rankings.edit adds rankings.view). Left out, they stay (a new admin gets the old level 80 rights). Only rights you have yourself."}},"required":["username","password","acclevel"],"additionalProperties":false,"description":"New user"},"AdminUserUpdate":{"type":"object","properties":{"acclevel":{"type":"string","description":"Level","enum":["100","80"]},"role":{"anyOf":[{"type":"string","description":"ID of an admin role (GET /admin/admin-roles): the admin then has exactly the role's rights; null: rights of their own again (they start from the role's). Not together with permissions. Only roles whose rights you have yourself.","pattern":"^[a-z0-9]{8}$"},{"type":"null"}]},"permissions":{"type":"array","items":{"type":"string","description":"","enum":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"]},"description":"Rights of a level 80 admin (a change needs seeing too, so e.g. rankings.edit adds rankings.view). Left out, they stay (a new admin gets the old level 80 rights). Only rights you have yourself."}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only the fields to change"},"AdminAccessRole":{"type":"object","properties":{"id":{"type":"string","description":"ID of the role","pattern":"^[a-z0-9]{8}$"},"name":{"type":"string","description":"Name, unique (case ignored)"},"permissions":{"type":"array","items":{"type":"string","description":"","enum":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"]},"description":"The rights of every admin with this role"},"admins":{"type":"array","items":{"type":"string","description":""},"description":"User names of the admins with this role"}},"required":["id","name","permissions","admins"],"additionalProperties":false,"description":"An admin role (Admin → Admin roles)"},"AdminAccessRoleCreate":{"type":"object","properties":{"name":{"type":"string","description":"Name, 1-40 characters, unique (case ignored)","minLength":1,"maxLength":40},"permissions":{"type":"array","items":{"type":"string","description":"","enum":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"]},"description":"The rights (a change needs seeing too, so e.g. rankings.edit adds rankings.view)"}},"required":["name","permissions"],"additionalProperties":false,"description":"New admin role"},"AdminAccessRoleUpdate":{"type":"object","properties":{"name":{"type":"string","description":"Name, 1-40 characters, unique (case ignored)","minLength":1,"maxLength":40},"permissions":{"type":"array","items":{"type":"string","description":"","enum":["rankings.view","rankings.edit","servers.view","servers.edit","players.view","players.edit","players.erase","definitions.view","definitions.edit","resets","chat.view","ips.view","jobs.view","settings.view","settings.edit","settings.protected"]},"description":"The rights (a change needs seeing too, so e.g. rankings.edit adds rankings.view)"}},"required":[],"additionalProperties":false,"minProperties":1,"description":"Only what to change"},"AdminRankingSummary":{"type":"object","properties":{"id":{"type":"integer","description":"ID"},"code":{"type":"string","description":"Code"},"name":{"type":"string","description":"Name"},"hidden":{"type":"boolean","description":"Hidden on the website"},"baseGame":{"anyOf":[{"type":"string","description":"The game behind the ranking (css, csgo, cstrike, ...)"},{"type":"null"}]},"servers":{"type":"integer","description":"Number of servers"},"template":{"type":"boolean","description":"A seeded ranking without servers: only a template for new rankings"}},"required":["id","code","name","hidden","baseGame","servers","template"],"additionalProperties":false},"AdminSchedule":{"type":"object","properties":{"unit":{"type":"string","description":"Length of a period","enum":["day","week","month","quarter","year"]},"every":{"type":"integer","description":"Number of units per period","minimum":1,"maximum":120,"default":1},"monthDay":{"type":"integer","description":"month/quarter: day of the month the periods start (1-28)","minimum":1,"maximum":28},"weekday":{"type":"integer","description":"week: weekday the periods start (1 Monday - 7 Sunday)","minimum":1,"maximum":7},"month":{"type":"integer","description":"year: month of the start date","minimum":1,"maximum":12},"day":{"type":"integer","description":"year: day of the start date (1-28)","minimum":1,"maximum":28}},"required":["unit"],"additionalProperties":false,"description":"Reset schedule: every N units; without a start day periods start on the 1st, on Monday and on 1 January. Quarters are stored as 3 months."},"AdminSettings":{"type":"object","properties":{"id":{"type":"string","description":"Settings page"},"area":{"type":"string","description":"website, services, rankings, privacy or admin"},"title":{"type":"string","description":"Title of the page"},"settings":{"type":"object","additionalProperties":true,"description":"Key → stored value or default. Secrets: { set }; links: { label, url }; order: tab ids. The types are those of AdminSettingsChange."},"readOnly":{"type":"array","items":{"type":"string","description":"Key"},"description":"Settings you cannot change (they need the right settings.protected)"}},"required":["id","area","title","settings","readOnly"],"additionalProperties":false},"AdminJob":{"type":"object","properties":{"id":{"type":"integer","description":"Job ID"},"type":{"type":"string","description":"reset, scheduled-reset, inactive or awards"},"game":{"type":"string","description":"Ranking code (empty for jobs of all rankings)"},"mode":{"type":"string","description":"Reset mode"},"status":{"type":"string","description":"pending, running, done or failed"},"requestedBy":{"type":"string","description":"Admin who queued it (only for level 100 or your own jobs), else empty"},"requestedAt":{"type":"integer","description":"Queued (Unix time, seconds)"},"startedAt":{"type":"integer","description":"Started, 0 before (Unix time, seconds)"},"finishedAt":{"type":"integer","description":"Finished, 0 before (Unix time, seconds)"},"result":{"type":"string","description":"Result text of the collector"},"origin":{"type":"object","properties":{"feature":{"type":"string","description":"The feature that queued the job: scheduled_resets, daily_awards, inactive_players (the collector itself), cli (a gamewe command), admin (the web admin), api (this API); empty for jobs queued before collector schema version 22"},"startup":{"type":"boolean","description":"Queued by the collector's first look at its schedule after its start (a period or day that ended while it was stopped)"},"from":{"type":"integer","description":"Start of the period of a scheduled reset that ended, 0 if none (Unix time, seconds)"},"to":{"type":"integer","description":"End of that period (excluded), 0 if none (Unix time, seconds)"},"schedule":{"type":"string","description":"Reset schedule of that period (as gamewe_reset_schedule), else empty"},"inherited":{"type":"boolean","description":"The ranking follows the schedule for all rankings"},"zone":{"type":"string","description":"Time zone of the period, else empty"},"day":{"type":"string","description":"Day of the daily awards (YYYY-MM-DD), else empty"},"command":{"type":"string","description":"The gamewe command that queued it, else empty"},"token":{"type":"string","description":"Name of the API token it came through (only for level 100 or your own jobs), else empty"},"version":{"type":"string","description":"Collector version that queued it, else empty"}},"required":["feature","startup","from","to","schedule","inherited","zone","day","command","token","version"],"additionalProperties":false,"description":"Which feature queued the job and why"}},"required":["id","type","game","mode","status","requestedBy","requestedAt","startedAt","finishedAt","result","origin"],"additionalProperties":false},"AdminSettingGroup":{"type":"object","properties":{"id":{"type":"string","description":"Group id, as in /admin/settings/{group}"},"area":{"type":"string","description":"website, services, rankings, privacy or admin"},"title":{"type":"string","description":"Title of the settings page"},"settings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"hlstats_Options key"},"type":{"type":"string","description":"text, number, bool, choice, link, template, secret, home or order"},"label":{"type":"string","description":"Label of the field"},"readOnly":{"type":"boolean","description":"You cannot change it (needs the right settings.protected)"}},"required":["key","type","label","readOnly"],"additionalProperties":false}}},"required":["id","area","title","settings"],"additionalProperties":false},"AdminSettingsChange":{"type":"object","description":"Settings to change (only those of the page in the path). Secrets: a string sets, null clears. Links: { label, url }. Order: the tab ids.","properties":{"sitename":{"type":"string","description":"Site title. Name of the site, e.g. the clan name.","maxLength":255},"gamewe_default_lang":{"type":"string","description":"Default language. For visitors who picked no language and whose browser asks for none of the site's languages. They can switch at the bottom of the page.","enum":["en","de","bar","gsw","swg","nds","ru","es","fr","pt","nl","da","pl","pt-br","sr","zh-tw","zh-cn","ja","ko","ar","tr","it","uk","cs","sv"]},"gamewe_title_format":{"type":"string","description":"Browser title. Title in the browser tab. {page} = page, {site} = site title. Example: \"Search | GERMANY RELOADED\". The home page shows just the site title.","maxLength":255},"gamewe_title_ranking":{"type":"string","description":"Browser title in rankings. As above, plus {ranking} = name of the ranking. Example: \"GunGame Players | GERMANY RELOADED\", a ranking's start page \"GunGame | GERMANY RELOADED\".","maxLength":255},"gamewe_site_url":{"type":"string","description":"Link of the site name. e.g. https://example.org (navigation bar)","maxLength":255},"gamewe_page_size":{"type":"string","description":"Rows per page. How many rows every table shows first. Visitors can pick another step below the table.","enum":["10","25","50","100","250"]},"MinActivity":{"type":"integer","description":"Days until 0 % activity","minimum":1,"maximum":3650},"gamewe_chat_public":{"type":"boolean","description":"Show chat publicly. No: only admins see the chat, under Administration → Chat."},"gamewe_geoip_credit":{"type":"string","description":"GeoIP credit. \"dbip\" (DB-IP Lite, required by CC BY 4.0), \"maxmind\" (GeoLite2) or empty.","maxLength":255},"gamewe_skin":{"type":"string","description":"Design (template). Folder from templates/ or /var/lib/gamewe/web/templates; your own designs: see templates/README.md.","maxLength":255},"gamewe_game_skins":{"type":"boolean","description":"Game designs. Yes: a game's pages use the template game-<game> when there is one (your own design in /var/lib/gamewe/web/templates, e.g. game-tf; none is built in)."},"gamewe_header_logo":{"type":"string","description":"Logo top left. Path or URL of a picture that replaces the gameWE logo in the header bar, e.g. /images/logo.png or https://example.org/logo.png. Best a PNG with a transparent background; larger pictures are scaled to the bar's height. A path starting with / is relative to the domain. Empty: the gameWE logo.","maxLength":255},"gamewe_favicon":{"type":"string","description":"Favicon. Path or URL of the icon in the browser tab (PNG, ICO or SVG, e.g. 32 × 32 or larger). A path starting with / is relative to the domain. Empty: the gameWE icon.","maxLength":255},"gamewe_apple_icon":{"type":"string","description":"Icon for phones. Path or URL of a PNG of 180 × 180 pixels, not transparent. Shown when sharing on an iPhone and on the home screen. Empty: the gameWE icon.","maxLength":255},"gamewe_logo_url":{"type":"string","description":"Picture below the header. Path or URL of a picture (e.g. a banner) shown centred below the header bar. Empty: none.","maxLength":255},"gamewe_sig_brand":{"type":"string","description":"Forum signature text. Shown bottom right in the signature image. Empty: site title.","maxLength":255},"gamewe_header_order":{"type":"array","items":{"type":"string","description":"Tab id"},"description":"Order of the links"},"gamewe_header_home":{"type":"object","properties":{"label":{"type":"string","description":"Text"},"url":{"type":"string","description":"Address"}},"required":["label","url"],"additionalProperties":false,"description":"Home"},"gamewe_link_1":{"type":"object","properties":{"label":{"type":"string","description":"Text"},"url":{"type":"string","description":"Address"}},"required":["label","url"],"additionalProperties":false,"description":"Own link 1"},"gamewe_link_2":{"type":"object","properties":{"label":{"type":"string","description":"Text"},"url":{"type":"string","description":"Address"}},"required":["label","url"],"additionalProperties":false,"description":"Own link 2"},"gamewe_link_3":{"type":"object","properties":{"label":{"type":"string","description":"Text"},"url":{"type":"string","description":"Address"}},"required":["label","url"],"additionalProperties":false,"description":"Own link 3"},"gamewe_link_4":{"type":"object","properties":{"label":{"type":"string","description":"Text"},"url":{"type":"string","description":"Address"}},"required":["label","url"],"additionalProperties":false,"description":"Own link 4"},"gamewe_link_5":{"type":"object","properties":{"label":{"type":"string","description":"Text"},"url":{"type":"string","description":"Address"}},"required":["label","url"],"additionalProperties":false,"description":"Own link 5"},"gamewe_link_6":{"type":"object","properties":{"label":{"type":"string","description":"Text"},"url":{"type":"string","description":"Address"}},"required":["label","url"],"additionalProperties":false,"description":"Own link 6"},"gamewe_map_live":{"type":"boolean","description":"\"Online now\" map (game overview)"},"gamewe_map_players":{"type":"boolean","description":"Map above the ranking and on clan pages"},"gamewe_map_style":{"type":"string","description":"Map style. The credit is shown bottom right in the map.","enum":["auto","osm","osm-dark"]},"gamewe_fastdl":{"type":"boolean","description":"Fetch radar pictures by FastDL. Yes: when a map (Source games) has no radar picture, the website downloads the map from FastDL as soon as a server changes to it (checked every 10 seconds) or someone opens its page, and draws the picture from it. The picture goes into the game's folder, e.g. /var/lib/gamewe/web/overviews/css, and serves all rankings of that game. The folder /var/lib/gamewe/web/overviews must be writable for this. (needs the right settings.protected)"},"gamewe_fastdl_url":{"type":"string","description":"FastDL address. The folder above maps/, e.g. https://dl.example.org/cstrike/ (sv_downloadurl). Applies to all rankings, unless a ranking has its own address (Rankings → ranking → FastDL). Public addresses only (FASTDL_ALLOW_PRIVATE=1 allows private ones). It loads maps/<map>.bsp.bz2, otherwise maps/<map>.bsp; no redirects, at most 512 MB download and 1 GB unpacked. (needs the right settings.protected)","maxLength":255},"gamewe_fastdl_agent":{"type":"string","description":"FastDL: User-Agent. What the download names as its browser, e.g. for a block in .htaccess. Empty: the one of Node.js. Applies to all rankings; a ranking may set every FastDL field itself under Rankings → ranking → FastDL. (needs the right settings.protected)","maxLength":255},"gamewe_fastdl_referer":{"type":"string","description":"FastDL: Referer. The page the download claims to come from, as game clients send it (e.g. hl2://203.0.113.5:27015). Empty: none. (needs the right settings.protected)","maxLength":255},"gamewe_fastdl_token":{"anyOf":[{"type":"string","description":"FastDL: bearer token. Sent as \"Authorization: Bearer <token>\". With a user set as well, the token wins. Masked, the eye button shows the stored value; leave empty to keep it. Over http:// it crosses the network unencrypted. (needs the right settings.protected). Write-only; null clears it","maxLength":255},{"type":"null"}]},"gamewe_fastdl_user":{"type":"string","description":"FastDL: user (basic auth). Sent with the password below as \"Authorization: Basic ...\", no colon. Empty: no basic auth. (needs the right settings.protected)","maxLength":255},"gamewe_fastdl_password":{"anyOf":[{"type":"string","description":"FastDL: password (basic auth). Masked, the eye button shows the stored value; leave empty to keep it. (needs the right settings.protected). Write-only; null clears it","maxLength":255},{"type":"null"}]},"gamewe_fastdl_header":{"anyOf":[{"type":"string","description":"FastDL: more headers. Up to 8 headers, each as \"Name: value\", e.g. \"X-Api-Key: ...\" or \"Cookie: ...\"; the plus button adds a row. Each name once, at most 255 characters together. Host, Authorization, User-Agent, Referer and connection headers are refused. Masked, the eye button shows the stored headers; leave all rows empty to keep them. (needs the right settings.protected). Write-only; null clears it","maxLength":255},{"type":"null"}]},"gamewe_game_events":{"type":"string","description":"Latest events (ranking start page). Also applies to a ranking's \"Events\" page (all events with a chart and a list) and to the events on a server's page. Off: no \"Events\" tab, the page does not exist.","enum":["live","static","off"]},"gamewe_player_events":{"type":"string","description":"Latest events (player page). As on a ranking's start page, but only the events of that player (on the clan page: of the members): connects, entries, leaves, team, role and name changes, kills and deaths, actions by and against them, team bonuses, suicides and team kills.","enum":["live","static","off"]},"gamewe_seo_description":{"type":"string","description":"Description. About 150 characters. Empty: the default text in the visitor's language.","maxLength":255},"gamewe_seo_keywords":{"type":"string","description":"Keywords. Separated by commas.","maxLength":255},"gamewe_seo_image":{"type":"string","description":"Preview picture. URL of a picture, ideally 1200 × 630. Empty: the logo.","maxLength":255},"gamewe_seo_index":{"type":"boolean","description":"Let search engines index the site. No: noindex, and robots.txt blocks everything."},"gamewe_seo_twitter":{"type":"string","description":"X/Twitter account. e.g. @myclan (for the link preview).","maxLength":255},"gamewe_voice_type":{"type":"string","description":"Voice server. Save after switching; the fields of the other kind stay stored but are not used.","enum":["none","teamspeak","discord","ventrilo"]},"gamewe_ts_host":{"type":"string","description":"TeamSpeak server (address). e.g. ts.example.org (needs the right settings.protected)","maxLength":255},"gamewe_ts_port":{"type":"integer","description":"TeamSpeak port","minimum":1,"maximum":65535},"gamewe_ts_query_port":{"type":"integer","description":"ServerQuery port. Raw query (not SSH). Must be reachable from the web server. (needs the right settings.protected)","minimum":1,"maximum":65535},"gamewe_ts_query_user":{"type":"string","description":"ServerQuery user. Empty: query as guest (works only if the guest group may use serverinfo). (needs the right settings.protected)","maxLength":255},"gamewe_ts_query_password":{"anyOf":[{"type":"string","description":"ServerQuery password. Masked, the eye button shows the stored value (level 100). Leave empty to keep it. (needs the right settings.protected). Write-only; null clears it","maxLength":255},{"type":"null"}]},"gamewe_ts_password":{"type":"string","description":"TeamSpeak server password. Visitors see a lock when one is set; the password itself only with the setting below. Empty: \"-\".","maxLength":255},"gamewe_ts_password_reveal":{"type":"boolean","description":"Allow showing the TeamSpeak password. Yes: clicking the lock in the box and on the TeamSpeak page shows the password, and the API returns it. No (default): only the lock; the password never reaches the browser or the API. The banners never show it."},"gamewe_ts_name":{"type":"string","description":"TeamSpeak display name. Empty: the name from the ServerQuery.","maxLength":255},"gamewe_ts_display":{"type":"string","description":"Address shown. Instead of address:port, e.g. a DNS name with an SRV record (ts.example.org). At most 100 characters. The query still uses the real address and the ports above. Empty: address:port.","maxLength":255},"gamewe_ts_link":{"type":"string","description":"Connect link. Replaces the generated link, e.g. ts3server://ts.example.org?port=9987. Allowed: ts3server://, teamspeak:// and https:// with a host name. Empty: ts3server:// with the address and port above.","maxLength":255},"gamewe_ts_country":{"type":"string","description":"Flag of the TeamSpeak server. Before the name in the box and on the detail page. No flag (default): neither a flag nor a placeholder. Automatic: the country of a game server on the same IP, else a neutral flag.","enum":["","auto","AF","EG","AX","AL","DZ","AS","VI","UM","AD","AO","AI","AQ","AG","GQ","AR","AM","AW","AZ","ET","AU","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BV","BR","VG","IO","BN","BG","BF","BI","CV","CL","CN","CP","CK","CR","CI","CW","DK","DE","DG","DM","DO","DJ","EC","SV","ER","EE","SZ","EU","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GD","GR","GL","GP","GU","GT","GG","GN","GW","GY","HT","HM","HN","IN","ID","IQ","IR","IE","IS","IM","IL","IT","JM","JP","YE","JE","JO","KY","KH","CM","CA","IC","BQ","KZ","QA","KE","KG","KI","CC","CO","KM","CG","CD","XK","HR","CU","KW","LA","LS","LV","LB","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MA","MH","MQ","MR","MU","YT","MX","FM","MC","MN","ME","MS","MZ","MM","NA","NR","NP","NC","NZ","NI","NL","NE","NG","NU","KP","MP","MK","NF","NO","OM","AT","PK","PS","PW","PA","PG","PY","PE","PH","PN","PL","PT","PR","MD","RE","RW","RO","RU","SB","ZM","WS","SM","ST","SA","SE","CH","SN","RS","SC","SL","ZW","SG","SX","SK","SI","SO","HK","MO","ES","SJ","LK","BL","SH","KN","LC","MF","PM","VC","ZA","SD","GS","KR","SS","SR","SY","TJ","TW","TZ","TH","TL","TG","TK","TO","TT","TD","CZ","TN","TR","TM","TC","TV","UG","UA","HU","UY","UZ","VU","VA","VE","AE","US","GB","UN","VN","WF","CX","EH","CF","CY"]},"gamewe_ts_show_clients":{"type":"boolean","description":"Show the names of the people online. On the TeamSpeak server's detail page (click its name in the box). No: just the number per channel. The names are personal data; mention them in your privacy policy."},"gamewe_vent_host":{"type":"string","description":"Ventrilo server (address). e.g. vent.example.org (needs the right settings.protected)","maxLength":255},"gamewe_vent_port":{"type":"integer","description":"Ventrilo port. The server's port. The website asks it for the status over UDP every minute; it must be reachable from the web server. (needs the right settings.protected)","minimum":1,"maximum":65535},"gamewe_vent_name":{"type":"string","description":"Ventrilo display name. Empty: the name from the server status.","maxLength":255},"gamewe_discord_invite":{"type":"string","description":"Discord invite. e.g. https://discord.gg/abc123","maxLength":255},"gamewe_discord_guild":{"type":"string","description":"Discord server ID (for the online count). Right-click the server → Copy Server ID (developer mode). Empty: link only.","maxLength":255},"gamewe_sourcebans_url":{"type":"string","description":"SourceBans address. e.g. https://bans.example.org/ – the collector reads the whole public ban list every features.sourcebans.interval (default 30 minutes) and stores the running bans for the bans page. Public addresses only (unless features.sourcebans.allow_private), no redirects.","maxLength":255},"gamewe_steam_profiles":{"type":"boolean","description":"Fetch Steam profiles. Off: no requests to Steam; profiles then show letters instead of avatars and no VAC status."},"gamewe_steam_api_key":{"anyOf":[{"type":"string","description":"Steam Web API key. Optional, 32 hex characters from https://steamcommunity.com/dev/apikey. With it avatars come 100 at a time from the Steam API instead of one by one from steamcommunity.com (which blocks many requests in a row), and the bans page shows VAC and game bans. Masked, the eye button shows the stored value; leave empty to keep it. Admins with level 100 only. (needs the right settings.protected). Write-only; null clears it","maxLength":255},{"type":"null"}]},"gamewe_metrics_token":{"anyOf":[{"type":"string","description":"Token for /-/metrics (Prometheus). At least 16 characters, e.g. openssl rand -hex 24. Empty: /-/metrics is off. Prometheus sends it as \"Authorization: Bearer <token>\". Masked, the eye button shows the stored value; leave empty to keep it.. Write-only; null clears it","maxLength":255},{"type":"null"}]},"gamewe_update_check":{"type":"boolean","description":"Check for updates. Asks GitHub (without an account) every hour for the latest release of the web and the collector and shows an update on the admin overview. Installs nothing. No: no request to GitHub."},"gamewe_api_enabled":{"type":"boolean","description":"Turn the API on. No: the public API, the admin API, their documentation on /api and the API tokens under My account are off. Existing tokens stay stored. Takes effect within 30 seconds. (needs the right settings.protected)"},"gamewe_mcp_enabled":{"type":"boolean","description":"Turn the MCP server on. No: the MCP server /api/v1/admin/mcp answers 404 and AI clients no longer reach the admin area; the rest of the API stays on. Tokens with MCP stay stored. With the API off, MCP is off too. Takes effect within 30 seconds. (needs the right settings.protected)"},"gamewe_notify_smtp_host":{"type":"string","description":"SMTP server. For example smtp.example.org. (needs the right settings.protected)","maxLength":255},"gamewe_notify_smtp_port":{"type":"integer","description":"SMTP port. 587 with STARTTLS, 465 with TLS, 25 without encryption (None). (needs the right settings.protected)","minimum":1,"maximum":65535},"gamewe_notify_smtp_security":{"type":"string","description":"Encryption. Without encryption the collector logs in only to localhost. For another machine, such as the Docker host, leave the SMTP user empty: the mail server must then accept the collector without a login. (needs the right settings.protected)","enum":["starttls","tls","none"]},"gamewe_notify_smtp_user":{"type":"string","description":"SMTP user. Empty: no login. (needs the right settings.protected)","maxLength":255},"gamewe_notify_smtp_password":{"anyOf":[{"type":"string","description":"SMTP password. Masked, the eye button shows the stored value; leave empty to keep it. (needs the right settings.protected). Write-only; null clears it","maxLength":255},{"type":"null"}]},"gamewe_notify_email_from":{"type":"string","description":"Sender. Sender address of the e-mails, e.g. stats@example.org. (needs the right settings.protected)","maxLength":255},"gamewe_server_load":{"type":"boolean","description":"Record server load. One row per server every 10 minutes, for the graph on the server page."},"gamewe_idle_timeout":{"type":"integer","description":"A visit ends after (s without a log line). At most 3 minutes for bots; 0 = never.","minimum":0,"maximum":86400},"gamewe_store_chat":{"type":"boolean","description":"Store chat. Personal data; mention it in your privacy policy. Whether visitors see the chat is set under Website."},"gamewe_store_player_ip":{"type":"boolean","description":"Store player IPs. Personal data; mention it in your privacy policy. Only admins see them."},"gamewe_store_locations":{"type":"boolean","description":"Store kill and death positions (heatmap). The plugin cvar gamewe_log_locations must be 1 for this."},"gamewe_start_skill":{"type":"integer","description":"Points of a new player","minimum":0,"maximum":100000},"gamewe_kill_points":{"type":"integer","description":"Points per kill (base). Scaled by victim/killer points and the weapon modifier.","minimum":1,"maximum":1000},"gamewe_headshot_bonus":{"type":"integer","description":"Headshot bonus","minimum":0,"maximum":1000},"gamewe_suicide_penalty":{"type":"integer","description":"Penalty per suicide","minimum":0,"maximum":1000},"gamewe_teamkill_penalty":{"type":"integer","description":"Penalty per team kill","minimum":0,"maximum":1000},"gamewe_win_triggers":{"type":"string","description":"Round win triggers. Comma separated. The bonus per trigger is set under Actions (team reward).","maxLength":255},"gamewe_commands":{"type":"boolean","description":"Answer in-game commands (!rank, !top10 …)"},"gamewe_menu_time":{"type":"integer","description":"!top10 menu time (s)","minimum":1,"maximum":300},"gamewe_rcon_timeout":{"type":"integer","description":"RCON timeout (s)","minimum":1,"maximum":60},"gamewe_command_display":{"type":"string","description":"Reply to !rank etc.","enum":["panel","chat","both"]},"gamewe_command_prefix":{"type":"string","description":"Prefix of the plugin server commands","enum":["gamewe","gameme"]},"gamewe_raw_messages":{"type":"boolean","description":"Replies as raw messages. To a message plugin instead of chat text."},"gamewe_console_events":{"type":"boolean","description":"Show the points of every kill in the console. Killer and victim, for actions the player, get the points in the console; players turn it off with !gamewe_display 0. One RCON command per player and event."},"gamewe_global_chat":{"type":"boolean","description":"Announce actions with points in the chat. Player and player-vs-player actions with points and team wins; players turn it off with !gamewe_chat 0. One RCON command per event and language."},"gamewe_player_reset":{"type":"boolean","description":"Players may reset their stats (!gamewe_reset). Confirmed with !gamewe_reset 1 within 30 seconds; never for banned players or players hidden by an admin. Turn it on only when the servers send their logs with sv_logsecret: otherwise a faked log packet could reset any player's stats."},"gamewe_player_reset_cooldown":{"type":"integer","description":"Wait before the next reset (h). 0 = no wait.","minimum":0,"maximum":87600},"gamewe_admin_auto_logout":{"type":"boolean","description":"Sign out automatically. Signs out of the admin area after the time set below without activity (mouse, keyboard, scrolling). Applies to every admin, also to a window left open. Default: on. (needs the right settings.protected)"},"gamewe_admin_logout_minutes":{"type":"integer","description":"Sign out after (minutes). Minutes without activity until the sign-out, 1 to 1440; only while \"Sign out automatically\" is on. Default: 10. (needs the right settings.protected)","minimum":1,"maximum":1440}},"additionalProperties":false,"minProperties":1}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"gwe_ token","description":"Admin API token from Admin → My account → API tokens"}}}}