curl --request GET \
--url https://{region}.api.riotgames.com/val/console/ranked/v1/leaderboards/by-act/{actId}{
"response": {}
}Get leaderboard for the console competitive queue
curl --request GET \
--url https://{region}.api.riotgames.com/val/console/ranked/v1/leaderboards/by-act/{actId}{
"response": {}
}await client.GET_getConsoleLeaderboard(actId, region, platformType, size=200, startIndex=0)
ap, br, esports, eu, kr, latam, naplaystation - PlayStation consolexbox - Xbox consoleLeaderboardDto object containing the leaderboard data, or raw JSON dict if raw_data=TrueInvalidRegion: If the provided region is invalidInvalidPlatformType: If the provided platform type is invalid (must be “playstation” or “xbox”)ValueError: If the size is not between 1 and 200RiotAPIResponseError: If the API response indicates an errorimport asyncio
from valaw import Client
async def main():
client = Client(token="YOUR_API_KEY", cluster="americas")
# Get PlayStation leaderboard for a specific act
ps_leaderboard = await client.GET_getConsoleLeaderboard(
actId="52e9749a-41ae-4c84-8c88-b2b1f9e40d8c",
region="na",
platformType="playstation",
size=200,
startIndex=0
)
# Get Xbox leaderboard for the same act
xbox_leaderboard = await client.GET_getConsoleLeaderboard(
actId="52e9749a-41ae-4c84-8c88-b2b1f9e40d8c",
region="na",
platformType="xbox",
size=100
)
# Get next page of results
next_page = await client.GET_getConsoleLeaderboard(
actId="52e9749a-41ae-4c84-8c88-b2b1f9e40d8c",
region="na",
platformType="playstation",
size=200,
startIndex=200
)
await client.close()
asyncio.run(main())
GET_getLeaderboard.