GET (/scids//leaderboards/)
Gets a predefined global leaderboard. The domain for these URIs isleaderboards.xboxlive.com.
- Remarks
- URI parameters
- Query string parameters
- Authorization
- Effect of privacy settings on resource
- Required Request Headers
- Optional Request Headers
- HTTP status codes
- Response headers
- Response body
Remarks
Leaderboard APIs are all read-only and therefore only support the GET verb. They reflect ranked and sorted “pages” of indexed player stats that are derived from individual user stats that were written via the Player Data system. Full leaderboard indexes can be quite large, and callers will never ask to see one in its entirety, therefore this URI supports several query string arguments that allow a caller to be specific about what kind of view it wants to see against that leaderboard. GET operations won’t modify any resources so this will produce the same results if executed once or multiple times.URI parameters
Query string parameters
| Parameter| Type| Description| | --- | --- | --- | --- | --- | --- | | maxItems| 32-bit unsigned integer| Maximum number of leaderboard records to return in a page of results. If not specified, a default number will be returned (10). The max value for maxItems is still undefined, but we want to avoid large data sets, so this value should probably target the largest set that a tuner UI could handle per call.| | skipToRank| 32-bit unsigned integer| Return a page of results starting with the specified leaderboard rank. The rest of the results will be in sort order by rank. This query string can return a continuation token which can be fed back into a subsequent query to get “the next page” of results.| | skipToUser| string| Return a page of leaderboard results around the specified gamer xuid, regardless of that user’s rank or score. The page will be ordered by percentile rank with the specified user in the last position of the page for predefined views, or in the middle for stat leaderboard views. There is no continuationToken provided for this type of query.| | continuationToken| string| If a previous call returned a continuationToken, then the caller can pass back that token “as is” in a query string to get the next page of results.|Authorization
There is authorization logic implemented for content-isolation and access-control scenarios.- Both leaderboards and user stats can be read from clients on any platform, provided that the caller submits a valid XSTS token with the request. Writes are obviously limited to clients supported by the Player Data system.
- Title developers can mark statistics as open or restricted with Partner Center. Leaderboards are open statistics. Open statistics can be accessed by Smartglass, as well as iOS, Android, Windows, Windows Phone, and web applications, as long as the user is authorized to the sandbox. User authorization to a sandbox is managed through Partner Center.
