Skip to main content

LeaderboardDto

Returned by GET_getLeaderboard and GET_getConsoleLeaderboard.
FieldTypeDescription
actIdstrThe act identifier
playerslist[PlayerDto]Leaderboard entries
totalPlayersintTotal number of players on the leaderboard
immortalStartingPageintPage where Immortal rank begins
immortalStartingIndexintIndex where Immortal rank begins
topTierRRThresholdintRR threshold for top tier players
tierDetailsdictTier-specific thresholds
startIndexintStarting index for this page
shardstrRegion/shard for this leaderboard
querystr | NoneOptional filter query

PlayerDto

A player entry on the leaderboard. Note: this is different from the PlayerDto in match objects.
FieldTypeDescription
leaderboardRankintPosition on the leaderboard (1 = top)
rankedRatingintCurrent Ranked Rating (RR)
numberOfWinsintCompetitive wins for the act
competitiveTierintCompetitive rank tier
puuidstrPlayer’s PUUID (empty for private profiles)
gameNamestrIn-game name ("Private" for private profiles)
tagLinestrTag line (empty for private profiles)
Players with private profiles will have gameName = "Private" and empty puuid and tagLine fields.

Competitive Tier Reference

TierRank
0Unranked
3Iron 1
4Iron 2
5Iron 3
6Bronze 1
7Bronze 2
8Bronze 3
9Silver 1
10Silver 2
11Silver 3
12Gold 1
13Gold 2
14Gold 3
15Platinum 1
16Platinum 2
17Platinum 3
18Diamond 1
19Diamond 2
20Diamond 3
21Ascendant 1
22Ascendant 2
23Ascendant 3
24Immortal 1
25Immortal 2
26Immortal 3
27Radiant

Example

import valaw
import asyncio

async def main():
    client = valaw.Client("YOUR_TOKEN", "americas")
    try:
        leaderboard = await client.GET_getLeaderboard(
            actId="act-id-here",
            region="na",
            size=10
        )

        print(f"Total players: {leaderboard.totalPlayers}")
        for player in leaderboard.players:
            if player.gameName != "Private":
                print(f"  #{player.leaderboardRank} {player.gameName}#{player.tagLine}{player.rankedRating} RR")
    finally:
        await client.close()

asyncio.run(main())