Public API for statistics or other useful things

Request for a multiplayer game learderboard

POST https://www.codingame.com/services/LeaderboardsRemoteService/getChallengeLeaderboard
body : [gameId, id, "global"]
  • gameId: The unique id of a multiplayer game. Possible values are ["59","55","49","42","30","26","back-to-the-code","the-great-escape","platinum-rift-2","platinum-rift","winamax","parrot","20","82"]
  • id: This a id generated when your session is opened on the site. You can have it by copy/pasting an id when you are looking at a leaderboard. But sometime you can also give whatever you want and it works.
  • “global”: This the value to filter the leaderboard. Give global for the main leaderboard and ranks. I don’t know the others values i don’t need them.

Get the last games of a player

POST https://www.codingame.com/services/gamesPlayersRankingRemoteService/findAllByTestSessionHandle
body : [id]
  • id: The id of a player. You can know it by using the leaderboard API.

Request for an optimization game (code golf) game leaderboard

This is the same as a multiplayer game, but possible id are just differents (and the returned JSON structure is different too)

POST https://www.codingame.com/services/LeaderboardsRemoteService/getChallengeLeaderboard
body : [gameId, id, "global"]
  • gameId: The unique id of a game. Possible values are ["thor-codesize","paranoid-codesize"] (i need to check the id of the new temperature puzzle)
  • id: This a id generated when your session is opened on the site. You can have it by copy/pasting an id when you are looking at a leaderboard. But sometime you can also give whatever you want and it works.
  • “global”: This the value to filter the leaderboard. Give global for the main leaderboard and ranks. I don’t know the others values i don’t need them.
6 Likes