- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists the scores in a leaderboard, starting from the top.
HTTP request
GET https://games.googleapis.com/games/v1/leaderboards/{leaderboardId}/scores/{collection}
Path parameters
Parameters | |
---|---|
leaderboardId |
The ID of the leaderboard. |
collection |
The collection of scores you're requesting. |
Query parameters
Parameters | |
---|---|
language |
The preferred language to use for strings returned by this method. |
timeSpan |
Required. The time span for the scores and ranks you're requesting. |
maxResults |
The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified |
pageToken |
The token returned by the previous request. |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ListLeaderboardScoresResponse
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
For more information, see the OAuth 2.0 Overview.