Skip to main content

Leaderboard endpoints

Leaderboard

Returns a leaderboard page for provided game. Can be configured using additional fields.

  • Path: https://api.elympics.cc/v2/leaderboardservice/leaderboard
  • Method: GET
  • Query params:
    • GameId - ID of the game for which leaderboard should be returned
    • GameVersion - (optional) the version name of the game for which leaderboard should be returned
    • TournamentId - (optional) ID of the tournament
    • PageNumber - (optional) number of the page (counting from 1); default: 1
    • PageSize - (optional) number of entries on each page; default: 10
    • TimeScope - (optional) time scope of the leaderboard: AllTime, Month, Day, or Custom (which requires providing additional params: DateFrom and DateTo containing timestamps in ISO 8601 format); default: AllTime
  • Headers:
    • Authorization: Bearer PLAYER_JWT_TOKEN
    • Elympics-Publisher-API-Key: YOUR_API_KEY

User-centered leaderboard

Returns the page from game's leaderboard where player currently is. Can be configured using additional fields.

  • Path: https://api.elympics.cc/v2/leaderboardservice/leaderboard/user-centred
  • Method: GET
  • Query params:
    • GameId - ID of the game for which leaderboard should be returned
    • GameVersion - (optional) the version name of the game for which leaderboard should be returned
    • TournamentId - (optional) ID of the tournament
    • PageSize - (optional) number of entries on each page; default: 10
    • TimeScope - (optional) time scope of the leaderboard: AllTime, Month, Day, or Custom (which requires providing additional params: DateFrom and DateTo containing timestamps in ISO 8601 format); default: AllTime
  • Headers:
    • Authorization: Bearer PLAYER_JWT_TOKEN
    • Elympics-Publisher-API-Key: YOUR_API_KEY

User's high score

Returns user's high score. Game version, tournament and time scope can be restricted using query parameters.

  • Path: https://api.elympics.cc/v2/leaderboardservice/leaderboard/user-centred
  • Method: GET
  • Query params:
    • GameId - ID of the game for which leaderboard should be returned
    • GameVersion - (optional) the version name of the game for which leaderboard should be returned
    • TournamentId - (optional) ID of the tournament
    • TimeScope - (optional) time scope of the leaderboard: AllTime, Month, Day, or Custom (which requires providing additional params: DateFrom and DateTo containing timestamps in ISO 8601 format); default: AllTime
  • Headers:
    • Authorization: Bearer PLAYER_JWT_TOKEN
    • Elympics-Publisher-API-Key: YOUR_API_KEY