- HTTP request
 - Path parameters
 - Query parameters
 - Request body
 - Response body
 - Authorization scopes
 - State
 - PlayerAchievement
 - State
 - Try it!
 
Lists the progress for all your application's achievements for the currently authenticated player.
HTTP request
GET https://games.googleapis.com/games/v1/players/{playerId}/achievements
Path parameters
| Parameters | |
|---|---|
playerId | 
                
                   
 A player ID. A value of   | 
              
Query parameters
| Parameters | |
|---|---|
language | 
                
                   
 The preferred language to use for strings returned by this method.  | 
              
maxResults | 
                
                   
 The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified   | 
              
pageToken | 
                
                   
 The token returned by the previous request.  | 
              
state | 
                
                   
 Tells the server to return only achievements with the specified state. If this parameter isn't specified, all achievements are returned.  | 
              
Request body
The request body must be empty.
Response body
A list of achievement objects.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "kind": string,
  "nextPageToken": string,
  "items": [
    {
      object ( | 
                  
| Fields | |
|---|---|
kind | 
                    
                       
 Uniquely identifies the type of this resource. Value is always the fixed string   | 
                  
nextPageToken | 
                    
                       
 Token corresponding to the next page of results.  | 
                  
items[] | 
                    
                       
 The achievements.  | 
                  
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/gameshttps://www.googleapis.com/auth/games_lite
For more information, see the OAuth 2.0 Overview.
State
| Enums | |
|---|---|
ALL | 
                List all achievements. This is the default. | 
HIDDEN | 
                List only hidden achievements. | 
REVEALED | 
                List only revealed achievements. | 
UNLOCKED | 
                List only unlocked achievements. | 
PlayerAchievement
An achievement object.
| JSON representation | 
|---|
{
  "kind": string,
  "id": string,
  "currentSteps": integer,
  "formattedCurrentStepsString": string,
  "achievementState": enum ( | 
              
| Fields | |
|---|---|
kind | 
                
                   
 Uniquely identifies the type of this resource. Value is always the fixed string   | 
              
id | 
                
                   
 The ID of the achievement.  | 
              
currentSteps | 
                
                   
 The current steps for an incremental achievement.  | 
              
formattedCurrentStepsString | 
                
                   
 The current steps for an incremental achievement as a string.  | 
              
achievementState | 
                
                   
 The state of the achievement.  | 
              
lastUpdatedTimestamp | 
                
                   
 The timestamp of the last modification to this achievement's state.  | 
              
experiencePoints | 
                
                   
 Experience points earned for the achievement. This field is absent for achievements that have not yet been unlocked and 0 for achievements that have been unlocked by testers but that are unpublished.  | 
              
State
Defines possible states of an achievement.
| Enums | |
|---|---|
HIDDEN | 
                Achievement is hidden. | 
REVEALED | 
                Achievement is revealed. | 
UNLOCKED | 
                Achievement is unlocked. |