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/leaderboard/GetAvatarStatForProfile

Example request

Returns avatar stat values for one or more player profiles. Avatar stats track various in-game statistics and achievement progress used for avatar/icon unlocks.

Request

parametertypevaluecomments
titlestr/enumage1, age2, age3, age4
profile_namesarray[str]e.g. [“/steam/<steam_id>”]

Response

AoE2:DE

Each entry in avatarStatsForProfile represents one tracked statistic for the requested player. A typical response contains 100+ entries covering all stat IDs the player has recorded values for.

{
    "result": {
        "code": 0,
        "message": "SUCCESS"
    },
    "avatarStatsForProfile": [
        {
            "profile_id": 196240,
            "avatarstat_id": 1,
            "value": 1845,
            "lastupdated": 1664821730
        },
        {
            "profile_id": 196240,
            "avatarstat_id": 2,
            "value": 2257,
            "lastupdated": 1664824306
        },
        {
            "profile_id": 196240,
            "avatarstat_id": 3,
            "value": 102,
            "lastupdated": 1664543322
        }
        // ... typically 100+ entries per profile
    ]
}

avatarStatsForProfile[] fields

fieldtypedescription
profile_idintPlayer profile identifier
avatarstat_idintGame-internal stat tracking ID (determines which stat is recorded)
valueintCurrent accumulated value for this stat
lastupdatedintUnix timestamp of the last time this stat was updated

Note: The avatarstat_id values correspond to game-internal stat tracking IDs. Low IDs (1-37) typically map to per-civilization win counts, while higher ranges cover cumulative stats like total kills, resources gathered, and event/challenge completions.