LeagueApi

class riotwatcher._apis.team_fight_tactics.LeagueApi(base_api: riotwatcher._apis.BaseApi.BaseApi)

This class wraps the Tft-League-v1 Api calls provided by the Riot API.

See https://developer.riotgames.com/apis#tft-league-v1 for more detailed information

Initialize a new LeagueApi which uses the provided base_api

Parameters:base_api (BaseApi) – the root API object to use for making all requests.
by_id(region: str, league_id: str)

Get league with given ID, including inactive entries

Returns:LeagueListDTO
by_summoner(region: str, encrypted_summoner_id: str)

Get league entries for a given summoner ID

Returns:Set[LeagueEntryDTO]
challenger(region: str)

Get the challenger league

Returns:LeagueListDTO
entries(region: str, tier: str, division: str, page: int = 1)

Get all the league entries

Returns:Set[LeagueEntryDTO]
grandmaster(region: str)

Get the grandmaster league.

Returns:LeagueListDTO
master(region: str)

Get the master league

Returns:LeagueListDTO
rated_ladders(region: str, queue: str)

Get the top rated ladders

Returns:TopRatedLadderEntryDto