Get Leaderboard Around Entity
Get the leaderboard around a specific entity.
Allowed entity token types: title, title_player_account, game_server
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| LeaderboardNotFound | 1567 |
| NoLeaderboardForStatistic | 1421 |
| SpecifiedVersionLeaderboardNotFound | 1583 |
| StatisticNotFound | 1195 |
Authorizations
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Body
Request to load a section of a leaderboard centered on a specific entity.
Request to load a section of a leaderboard centered on a specific entity.
Name of the leaderboard.
Number of surrounding entries to return (in addition to specified entity). In general, the number of ranks above and below will be split into half. For example, if the specified value is 10, 5 ranks above and 5 ranks below will be retrieved. However, the numbers will get skewed in either direction when the specified entity is towards the top or bottom of the leaderboard. Also, the number of entries returned can be lower than the value specified for entries at the bottom of the leaderboard.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
The optional entity to perform this action on. Defaults to the currently logged in entity.
Optional version of the leaderboard, defaults to current.
