Public information about players. These endpoints donβt need a token.
GET /api/player-stats/:nickname
200{
"id": "66c9f1b2e4b0a1c2d3e4f5a6",
"nickname": "nickname",
"country": "UN",
"stats": {
"battles": 12,
"wins": 7,
"shipsDestroyed": 98,
"points": 1680
}
}
battles: games that reached the battle phase.points: +100 for a win, +10 for every enemy ship sunk.| Status | error |
|β|β|
| 404 | Player not found |
Players sorted by points, then by wins.
GET /api/leaderboard?limit=20
limit is 1β100, 20 by default.
200{
"players": [
{
"rank": 1,
"nickname": "nickname",
"country": "UN",
"stats": { "battles": 12, "wins": 7, "shipsDestroyed": 98, "points": 1680 }
}
]
}