GET_getLeaderboard

  • Riot Documentation

  • API URL:

    https://{region}.api.riotgames.com/val/ranked/v1/leaderboards/by-act/{actId}?size={size}&startIndex={startIndex}
    

Description

Get leaderboard for the competitive queue

async def GET_getLeaderboard(self, actId: str, region: str, size: int = 200, startIndex: int = 0) -> dict:

Arguments

  • actId: String

  • region: String

Keyword Arguments

  • size: Integer = 200

  • startIndex: int = 0

Examples

Basic example (Just required arguments)

import valaw

client = valaw.Client("riot_api_token", "cluster")

async def func():
    leaderboard_data = await client.GET_getLeaderboard("actId", "region")

Advanced example (With Keyword Arguments)

import valaw

client = valaw.Client("riot_api_token", "cluster")

async def func():
    leaderboard_data = await client.GET_getLeaderboard("actId", "region", size=200, startIndex=0)