Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

[GET] /community/achievement/getAchievements

Example request

Retrieves the list of achievements earned by one or more players, identified by profile ID.

Request

parametertypevaluecomments
titlestr/enumage1, age2, age3, age4
profileidsarr[int][196240]

Response

AoE2:DE

The response contains a userAchievementsMap array. Each element is an object keyed by the requested profile ID, whose value is an array of achievement entries the player has earned.

{
    "result": {
        "code": 0,
        "message": "SUCCESS"
    },
    "userAchievementsMap": [
        {
            "196240": [
                {
                    "achievement_id": 83,
                    "achieveddate": 1589903767
                },
                {
                    "achievement_id": 109,
                    "achieveddate": 1604004966
                },
                {
                    "achievement_id": 44,
                    "achieveddate": 1604333155
                }
                // ... more achievements
            ]
        }
    ]
}
fieldtypedescription
achievement_idintAchievement definition ID
achieveddateintUnix timestamp when achieved