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/getLeaderBoard2

Example request

Returns a paginated slice of a leaderboard, including player profile information and ranking statistics.

Request

parametertypevaluecomments
leaderboard_idint3Leaderboard to query (see GetAvailableLeaderboards)
platformstr/enumPC_STEAMPlatform filter
titlestr/enumage1, age2, age3, age4Game title
sortByint10 = sort by wins, 1 = sort by rating
startint1Starting rank position (1-based)
countint200Number of entries to return

Response

AoE2:DE

The response pairs statGroups (player profiles) with leaderboardStats (ranking data). Each stat group entry corresponds to a leaderboard stat entry via statgroup_id.

{
    "result": {
        "code": 0,
        "message": "SUCCESS"
    },
    "statGroups": [
        {
            "id": 4120710,
            "name": "",
            "type": 1,
            "members": [
                {
                    "profile_id": 5123311,
                    "name": "/steam/76561199142950174",
                    "alias": "[MoA]Beicola",
                    "personal_statgroup_id": 4120710,
                    "xp": 407,
                    "level": 1,
                    "leaderboardregion_id": 4,
                    "country": "br"
                }
            ]
        },
        {
            "id": 6153140,
            "name": "",
            "type": 1,
            "members": [
                {
                    "profile_id": 10960083,
                    "name": "/steam/76561199385029768",
                    "alias": "Moonlight",
                    "personal_statgroup_id": 6153140,
                    "xp": 235,
                    "level": 1,
                    "leaderboardregion_id": 0,
                    "country": "it"
                }
            ]
        }
        // ... additional stat groups
    ],
    "leaderboardStats": [
        {
            "statgroup_id": 527797,
            "leaderboard_id": 3,
            "wins": 1427,
            "losses": 851,
            "streak": 2,
            "disputes": 0,
            "drops": 10,
            "rank": 1,
            "ranktotal": 39023,
            "ranklevel": 1,
            "rating": 2646,
            "regionrank": -1,
            "regionranktotal": -1,
            "lastmatchdate": 1666299350
        },
        {
            "statgroup_id": 1492,
            "leaderboard_id": 3,
            "wins": 1696,
            "losses": 873,
            "streak": 3,
            "disputes": 0,
            "drops": 10,
            "rank": 2,
            "ranktotal": 39023,
            "ranklevel": 1,
            "rating": 2617,
            "regionrank": -1,
            "regionranktotal": -1,
            "lastmatchdate": 1666113105
        }
        // ... additional leaderboard stats
    ],
    "rankTotal": 39023
}

statGroups[].members[] fields

fieldtypedescription
profile_idintUnique player profile identifier
namestringPlatform-specific identity (e.g. /steam/<steam_id>)
aliasstringPlayer display name
personal_statgroup_idintThe player’s personal stat group ID
xpintExperience points
levelintPlayer level
leaderboardregion_idintRegion ID (see GetAvailableLeaderboards)
countrystringISO 3166-1 alpha-2 country code

leaderboardStats[] fields

fieldtypedescription
statgroup_idintReferences a statGroups entry by id
leaderboard_idintLeaderboard this stat belongs to
winsintTotal wins
lossesintTotal losses
streakintCurrent win/loss streak (positive = wins, negative = losses)
disputesintNumber of disputed matches
dropsintNumber of disconnects
rankintCurrent rank position (-1 = unranked)
ranktotalintTotal number of ranked players on this leaderboard
ranklevelintRank tier/level
ratingintElo rating
regionrankintRank within the player’s region (-1 = unranked)
regionranktotalintTotal ranked players in the region (-1 = unavailable)
lastmatchdateintUnix timestamp of the last match played

Note: The rankTotal top-level field reflects the total number of ranked players on the queried leaderboard.