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/external/proxysteamuserrequest

Example request

Proxies a request to the Steam Web API through the game server. The request parameter specifies the Steam API path to call (e.g. /ISteamUser/GetPlayerSummaries/v0002/). The response includes both the game’s avatar data and the raw Steam API result.

Request

parametertypevaluecomments
titlestr/enumage1, age2, age3, age4Game title
profile_namesarray[str]e.g. [“/steam/<steam_id>”]Steam profile identifiers to look up
requeststre.g. “/ISteamUser/GetPlayerSummaries/v0002/”Steam Web API path to proxy

Response

AoE2:DE

Returns an avatars array with the game’s player data and a steamResults object containing the raw Steam API response.

{
    "result": {
        "code": 0,
        "message": "SUCCESS"
    },
    "avatars": [
        {
            "profile_id": 209525,
            "name": "/steam/76561197995781128",
            "alias": "aoe2companion.com",
            "personal_statgroup_id": 2818,
            "xp": 416,
            "level": 1,
            "leaderboardregion_id": 0,
            "country": "de"
        }
    ],
    "steamResults": {
        "response": {
            "players": [
                {
                    "steamid": "76561197995781128",
                    "communityvisibilitystate": 3,
                    "profilestate": 1,
                    "personaname": "aoe2companion.com",
                    "commentpermission": 1,
                    "profileurl": "https://steamcommunity.com/profiles/76561197995781128/",
                    "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/15/15b212855bc63aa40651d31a5239a9285751cf56.jpg",
                    "avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/15/15b212855bc63aa40651d31a5239a9285751cf56_medium.jpg",
                    "avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/15/15b212855bc63aa40651d31a5239a9285751cf56_full.jpg",
                    "avatarhash": "15b212855bc63aa40651d31a5239a9285751cf56",
                    "personastate": 0,
                    "realname": "Baal",
                    "primaryclanid": "103582791434874752",
                    "timecreated": 1200164646,
                    "personastateflags": 0,
                    "loccountrycode": "DE"
                }
            ]
        }
    }
}

Avatar fields

fieldtypedescription
profile_idintUnique player profile identifier
namestringPlatform identifier (e.g. /steam/<id>)
aliasstringPlayer display name
personal_statgroup_idintPlayer’s personal stat group identifier
xpintExperience points
levelintPlayer level
leaderboardregion_idintLeaderboard region identifier
countrystringTwo-letter country code

Steam player fields (steamResults.response.players[])

fieldtypedescription
steamidstring64-bit Steam ID
communityvisibilitystateintProfile visibility (3 = public)
profilestateintProfile configuration state
personanamestringSteam display name
commentpermissionintWhether comments are allowed (0/1)
profileurlstringFull URL to the Steam profile
avatarstringURL to small avatar image (32x32)
avatarmediumstringURL to medium avatar image (64x64)
avatarfullstringURL to full avatar image (184x184)
avatarhashstringAvatar image hash
personastateintOnline status (0 = offline)
realnamestringReal name set on profile
primaryclanidstringPrimary Steam group ID
timecreatedintUnix timestamp of account creation
personastateflagsintBitfield for persona state flags
loccountrycodestringTwo-letter country code from Steam profile

Note: The request parameter accepts any valid Steam Web API path. The game server adds its own Steam API key and forwards the request, so no client-side key is needed.