Leaderboards Admin API
Introduction
This is the API specification for the Unity Leaderboards Admin service that enables
game developers to create and edit leaderboard configurations for their games.
General Information
A leaderboard configuration can be created and edited through this API. In addition, player scores
can be retrieved (either as a set of leaderboard entries or for a particular player) and deleted, and
leaderboards may be reset, optionally retaining a read-only version of the scores stored in the leaderboard
at the time of the reset.
Rate Limits
The API has rate limiting in place. Request are limited to 10 requests per second, and 1000 requests per 30 minute period.
The API responds with a HTTP status code if the rate limit is
exceeded.
429It will also respond with a header to be used in conjunction with a client's retry logic.
The value is the number of seconds until a request for the given player will be accepted.
Retry-AfterDownload OpenAPI specification:
Create Leaderboard
Add leaderboard to project environment
Authorizations
ServiceAccount (live_ops.leaderboards.configurations.create)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.configurations.create
Path parameters for "{title}"
The project's Project ID
format:
uuidRequest body for "{title}"
Media Type:
application/jsonConfigure bucketing on the leaderboard by specifying the maximum bucket size. A bucketed leaderboard
segments players into buckets of the specified size, assigning players to buckets on a first come, first serve
basis. Buckets aren't visible to players. Note that you can't change this configuration after you've created the leaderboard.
The date and time that the first reset should occur, formatted according to the RFC-3339 specification.
If is provided without a schedule, then a one-off reset will occur at the date and time specified by . The date and time specified by must
be later that the time of the request. Accuracy of the date and time is maintained to the minute.
startstartstartstartformat:
date-timeexample:
2025-07-08T15:04:05ZThe schedule on which to reset the leaderboard. Can be either a valid five-element cron tab or a cron string using shorthand
(see Cron Package Specifications for details), e.g. "@every 72h" for a leaderboard reset every three days.
The schedule will be applied after the first reset specified by . The schedule can not be more frequent than once per minute.
@everystartexample:
@every 1hExactly one tier in the array must omit this value to act as the default tier.
tiersThe worst value to include in the tier. For score-based tiers, this relates to your sort order. For a descending leaderboard,
the tier includes entries with this score and higher. For an ascending leaderboard, the tier includes entries with this score and lower.
For rank and percentage-based tiers, the tier includes entries with this rank or percentage and better. Percentage-based cutoffs are like
rank-based cutoffs that scale with your number of players. For example, if you specify a percentage-based cutoff of , a leaderboard of 100 players would include ranks 0-9
in the tier, whereas with 1000 players the tier would include ranks 0-99. Specify percentage-based cutoffs as the percentage desired without
the percent symbol, e.g. for 10%.
1010format:
doubleexample:
100Code samples for "{title}":
Request example
curl -X POST \ -u "<KEY_ID>:<SECRET_KEY>" \ -H "Content-Type: application/json" \ --data-raw '{ "id": "my-leaderboard", "name": "My Leaderboard", "sortOrder": "desc", "updateType": "keepBest", "bucketSize": 0, "resetConfig": { "start": "2025-07-08T15:04:05Z", "schedule": "@every 1h", "archive": true }, "tieringConfig": { "strategy": "score", "tiers": [ { "id": "gold", "cutoff": 100 }, { "id": "silver", "cutoff": 50 }, { "id": "bronze" } ] }}' \ "https://services.api.unity.com/leaderboards/v1/projects/PROJECT_ID/environments/ENVIRONMENT_ID/leaderboards"
Response example
Get Leaderboard Configs
List leaderboard configurations for the given project environment
Authorizations
ServiceAccount (live_ops.leaderboards.configurations.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.configurations.list
Path parameters for "{title}"
The project's Project ID
format:
uuidGet Leaderboard Config
Retrieves the configuration for a specific leaderboard
Authorizations
ServiceAccount (live_ops.leaderboards.configurations.get)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.configurations.get
Path parameters for "{title}"
The project's Project ID
format:
uuidUpdate Leaderboard Config
Updates the configuration for a specific leaderboard
Authorizations
ServiceAccount (live_ops.leaderboards.configurations.update)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.configurations.update
Path parameters for "{title}"
The project's Project ID
format:
uuidRequest body for "{title}"
Media Type:
application/jsonThe date and time that the first reset should occur, formatted according to the RFC-3339 specification.
If is provided without a schedule, then a one-off reset will occur at the date and time specified by . The date and time specified by must
be later that the time of the request. Accuracy of the date and time is maintained to the minute.
startstartstartstartformat:
date-timeexample:
2025-07-08T15:04:05ZThe schedule on which to reset the leaderboard. Can be either a valid five-element cron tab or a cron string using shorthand
(see Cron Package Specifications for details), e.g. "@every 72h" for a leaderboard reset every three days.
The schedule will be applied after the first reset specified by . The schedule can not be more frequent than once per minute.
@everystartexample:
@every 1hExactly one tier in the array must omit this value to act as the default tier.
tiersThe worst value to include in the tier. For score-based tiers, this relates to your sort order. For a descending leaderboard,
the tier includes entries with this score and higher. For an ascending leaderboard, the tier includes entries with this score and lower.
For rank and percentage-based tiers, the tier includes entries with this rank or percentage and better. Percentage-based cutoffs are like
rank-based cutoffs that scale with your number of players. For example, if you specify a percentage-based cutoff of , a leaderboard of 100 players would include ranks 0-9
in the tier, whereas with 1000 players the tier would include ranks 0-99. Specify percentage-based cutoffs as the percentage desired without
the percent symbol, e.g. for 10%.
1010format:
doubleexample:
100Code samples for "{title}":
Request example
curl -X PATCH \ -u "<KEY_ID>:<SECRET_KEY>" \ -H "Content-Type: application/json" \ --data-raw '{ "name": "My Leaderboard", "sortOrder": "desc", "updateType": "keepBest", "resetConfig": { "start": "2025-07-08T15:04:05Z", "schedule": "@every 1h", "archive": true }, "tieringConfig": { "strategy": "score", "tiers": [ { "id": "gold", "cutoff": 100 }, { "id": "silver", "cutoff": 50 }, { "id": "bronze" } ] }}' \ "https://services.api.unity.com/leaderboards/v1/projects/PROJECT_ID/environments/ENVIRONMENT_ID/leaderboards/my-leaderboard"
Response example
Delete Leaderboard
Deletes the configuration and scores for a specific leaderboard
Authorizations
ServiceAccount (live_ops.leaderboards.configurations.delete)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.configurations.delete
Path parameters for "{title}"
The project's Project ID
format:
uuidGet Bucket IDs
Retrieves the bucket IDs for a specific bucketed leaderboard
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Path parameters for "{title}"
The project's Project ID
format:
uuidGet Scores
Get list of scores and ranks for the specified leaderboard, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Path parameters for "{title}"
The project's Project ID
format:
uuidReset Scores
Reset the scores for the specified leaderboard, optionally archiving the existing scores before resetting. When archiving, the operation will return the version ID of the archive version that has been created. Each leaderboard can have up to 10,000 archives. Beyond this limit, the system will automatically delete the oldest archives on a first-in, first-out (FIFO) basis.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.delete)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.delete
Path parameters for "{title}"
The project's Project ID
format:
uuidGet Scores By Tier
Get list of scores and ranks for the specified leaderboard, within the specified tier, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Get Bucket Scores
Get list of scores and ranks for the specified bucket from the specified leaderboard, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Get Bucket Scores By Tier
Get list of scores and ranks for the specified bucket from the specified leaderboard, within the specified tier, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Get Scores By PlayerIds
Get list of scores and ranks for the specified leaderboard, with specified playerIds.
Path parameters for "{title}"
The project's Project ID
format:
uuidCode samples for "{title}":
Request example
curl -X POST \ -H "Content-Type: application/json" \ --data-raw '{ "playerIds": [ "5drhidte8XgD4658j2eHtSljIAzA", "GZWIdLM4I1vFvv1VGhqqDKNPK06b" ]}' \ "https://services.api.unity.com/leaderboards/v1/projects/PROJECT_ID/environments/ENVIRONMENT_ID/leaderboards/my-leaderboard/scores/players"
Response example
Get Scores By PlayerIds for Archived Leaderboard
Get list of scores and ranks for an archived leaderboard, with specified playerIds.
Code samples for "{title}":
Request example
curl -X POST \ -H "Content-Type: application/json" \ --data-raw '{ "playerIds": [ "5drhidte8XgD4658j2eHtSljIAzA", "GZWIdLM4I1vFvv1VGhqqDKNPK06b" ]}' \ "https://services.api.unity.com/leaderboards/v1/projects/PROJECT_ID/environments/ENVIRONMENT_ID/leaderboards/my-leaderboard/versions/20220517135053019266622/scores/players"
Response example
Get Player Range
Get the list of neighbouring players for the specified player Id.
Get Player Range for Archived Leaderboard
Get the list of neighbouring players for the specified player Id for an archived leaderboard.
Get Player Score
Get score and rank for the specified player in the specified leaderboard.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.get)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.get
Delete Player Score
Deletes the score for a specific player from a specific leaderboard
Authorizations
ServiceAccount (live_ops.leaderboards.scores.delete)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.delete
Delete Player Score From All Live Leaderboards
Deletes the score for a specific player from all live leaderboards
Authorizations
ServiceAccount (live_ops.leaderboards.scores.delete)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.delete
Path parameters for "{title}"
The project's Project ID
format:
uuidGet Version Scores
Get list of scores and ranks for the specified archived leaderboard version, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Get Version Scores By Tier
Get list of scores and ranks for the specified archived leaderboard version, within the specified tier, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Get Version Bucket IDs
Get the bucket IDs for a specific bucketed leaderboard archive version, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Get Version Bucket Scores
Get list of scores and ranks for the specified bucket from the specified leaderboard version, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Code samples for "{title}":
Request example
curl -X GET \ -u "<KEY_ID>:<SECRET_KEY>" \ "https://services.api.unity.com/leaderboards/v1/projects/PROJECT_ID/environments/ENVIRONMENT_ID/leaderboards/my-leaderboard/versions/20220517135053019266622/buckets/aa74a353-8919-47e4-8645-6e5517055472/scores"
Response example
Get Version Bucket Scores By Tier
Get list of scores and ranks for the specified bucket from the specified leaderboard version, within the specified tier, with specified pagination.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.list)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.list
Code samples for "{title}":
Request example
curl -X GET \ -u "<KEY_ID>:<SECRET_KEY>" \ "https://services.api.unity.com/leaderboards/v1/projects/PROJECT_ID/environments/ENVIRONMENT_ID/leaderboards/my-leaderboard/versions/20220517135053019266622/buckets/aa74a353-8919-47e4-8645-6e5517055472/tiers/gold/scores"
Response example
Get Version Player Score
Get score and rank for the specified player in the specified archived leaderboard version.
Authorizations
ServiceAccount (live_ops.leaderboards.scores.get)
HTTP: ServiceAccount
To get started with authentication, visit the Service Account Authentication section.
HTTP Authorization Scheme: basic
Required scopes: live_ops.leaderboards.scores.get
Code samples for "{title}":
Request example
curl -X GET \ -u "<KEY_ID>:<SECRET_KEY>" \ "https://services.api.unity.com/leaderboards/v1/projects/PROJECT_ID/environments/ENVIRONMENT_ID/leaderboards/my-leaderboard/versions/20220517135053019266622/scores/players/s1QFdyYFXCC2YBocplKoLstxvQ2r"
Response example
Delete Leaderboard Version
Delete the specified leaderboard version.