curl --request GET \
--url https://{region}.api.riotgames.com/val/ranked/v1/leaderboards/by-act/{actId}{
"response": {}
}Get leaderboard for the competitive queue
curl --request GET \
--url https://{region}.api.riotgames.com/val/ranked/v1/leaderboards/by-act/{actId}{
"response": {}
}await client.GET_getLeaderboard(actId, region, size=200, startIndex=0)
ap, br, esports, eu, kr, latam, naLeaderboardDto object containing the leaderboard data, or raw JSON dict if raw_data=TrueInvalidRegion: If the provided region is invalidValueError: 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 top 200 players for a specific act
leaderboard = await client.GET_getLeaderboard(
actId="52e9749a-41ae-4c84-8c88-b2b1f9e40d8c",
region="na",
size=200,
startIndex=0
)
# Get next 200 players
next_page = await client.GET_getLeaderboard(
actId="52e9749a-41ae-4c84-8c88-b2b1f9e40d8c",
region="na",
size=200,
startIndex=200
)
await client.close()
asyncio.run(main())
GET_getConsoleLeaderboard.