Skip to main content

Leaderboard endpoints

Leaderboard

Explanation: Returns leaderboard for provided game. Can be filtered by additional fields.

  • Path: https://api.elympics.cc/v2/leaderboardservice/leaderboard?TournamentId=(tournament-id)&GameId=(game-id)&PageNumber=(page-number)&PageSize=(page-size)&TimeScope=0&FetchType=0
  • Method: GET
  • Query params:
    • GameId - required. Id of the game for which leaderboard should be returned
    • TimeScope - required. value 0 means that all available values will be considered
    • FetchType - required. value 0 means that maximum score value for each place will be returned
    • TournamentId - id of the tournament
    • PageNumber - Number of the page. Default: 1
    • PageSize - Size of the page. Default: 10
  • Headers:
    • Elympics-Publisher-API-Key: YOUR_API_KEY
    • Authorization: Bearer PLAYER_JWT_TOKEN

User centred leaderboard

Explanation: Returns page from game's leaderboard where player currently is. Can be filtered by additional fields.

  • Path: https://api.elympics.cc/v2/leaderboardservice/leaderboard/user-centred?TournamentId=(tournament-id)&GameId=(game-id)&TimeScope=0&FetchType=0
  • Method: GET
  • Query params:
    • GameId - required. Id of the game for which leaderboard should be returned
    • TimeScope - required. value 0 means that all available values will be considered
    • FetchType - required. value 0 means that maximum score value for each place will be returned
    • TournamentId - id of the tournament
  • Headers:
    • Elympics-Publisher-API-Key: YOUR_API_KEY
    • Authorization: Bearer PLAYER_JWT_TOKEN