Leaderboard 👑
Motivate your players to engage more on your platform by showing a gamified leaderboard on your website or mobile app
This endpoint allows you to retrieve the players' leaderboard for a given date range. It can also be used to get a specific player's rank among all players.
This endpoint is only available for our GURU customers only. 👑
GET - Leaderboard
This API call is used to retrieve players' leaderboard within a date range or all time, ordered from the highest to the lowest rank.
The request also accepts the playerUniqueId
as an optional parameter where if provided, the rank of the player (with the specified ID) in the leaderboard will be returned.
mobile
or email
should replace playerUniqueId
in case (only if) your account supports channel merging.
Request
Header
Attribute | Type | Required | Description |
| string | Yes | Client API key |
Query Parameters
Attribute | Type | Required | Description |
| string | No | Leaderboard start datetime in the following format YYYY-MM-DD HH:MM
(Example: |
| string | No | Leaderboard end datetime in the following format YYYY-MM-DD HH:MM (Example: |
| integer | No | The size of the returned players in the leaderboard. Default size is 20 players. Max is 50 |
| string | No | Unique identifier for a player at Gameball. This parameter is used in case you need to get a specific player's rank |
| string | No | Challenge ID used in case you need to leaderboard of specific challenge |
| string | No | Challenge Tag, used in case you need to get leaderboard of a challenge linked with a specific tag |
| string | No | Player Tag, used in case you need to get leaderboard of players linked to a specific tag |
Response
Parameter | Type | Description |
| array | A list of players with their overall progress and rank based on the provided input parameters. The leaderboard object is defined below. |
| object | An object describing the rank of the player with the provided (This object is returned if the |
leaderboard
object
leaderboard
objectThe leaderboard object defines the player rank and progress in the leaderboard based on the specified query parameters.
Parameter | Type | Description |
| string | Player's display name. |
| string | Unique identifier for a player at Gameball. |
| integer | Player's progress (based on the specified query parameters). |
| integer | Player's Rank (based on the specified query parameters). |
| string | Level Name. Example: |
| string | Level's icon URL. |
playerRank
Object
playerRank
ObjectParameter | Type | Description |
| integer | Player's rank in the leaderboard. |
| integer | Total number of players in your system. |
Sample Response
Usage Example
Last updated