Skip to main content
GET
Leaderboards Metadata API
Licensed
Leaderboards are only available with the licensed model. Contact us to know more.
In Gamezop, a Leaderboard is a category that a score belongs to, such as a game’s “easy” or “hard” mode. It is not a ranked list of players. This API lists the Leaderboards that exist for a game, so you can tell what each score you receive means. It never returns scores or rankings.

What is a Leaderboard?

Take an endless runner game with 2 modes: “easy” and “hard”. A score of 500 in easy mode can’t be fairly compared with a score of 500 in hard mode, so the game has 2 Leaderboards, one for each mode. Scores you receive through server-side webhooks and client-side callbacks include the ID of the Leaderboard they were recorded against. Use this API to look up what that Leaderboard is: in this example, whether the score came from easy or hard mode. If you want to show your users a ranked list of scores, you build it yourself from the scores you receive, keeping each Leaderboard separate.
Most games have a single Leaderboard. You mainly need this API for games that have more than one.

What this API returns

For the game you ask about, the API returns a list of its Leaderboards. Each Leaderboard in the list contains: If the game has no Leaderboards, the list is empty.

Where to get the scores themselves

This API does not return user scores or rankings. To get the scores themselves, use one of the pages below.

List a game’s Leaderboards

Pass the game’s code from the All Games API as the game-code query parameter. The request format and an example response are in the API reference on this page.

Authorizations

Authorization
string
header
required

You can find the Bearer token for this API under Settings & Admin > API Tokens within the Gamezop Business Dashboard.

Query Parameters

game-code
string
required

The unique code of the Gamezop game for which you want to fetch Leaderboards' metadata. You can find the code for any game from the All Games API

Response

200 OK. If the game has no leaderboards, the data array will be empty.

data
object[]

Array of leaderboard metadata objects. May be empty if the game has no leaderboards.

success
boolean