APIs¶
ChampionAPI¶
-
class
ChampionAPI
(api_key)[source]¶ -
get_champion_rotation
(region: str)[source]¶ Get a
ChampionInfo
containing the list of champions in free rotation.Parameters: region (str) – League region Return type: ChampionInfo
-
ChampionMasteryAPI¶
-
class
ChampionMasteryAPI
(api_key)[source]¶ -
get_all_masteries
(summonerId: str, region: str)[source]¶ Get a list of
ChampionMastery
for all champions.Parameters: - summonerId (str) – Summoner ID
- region (str) – League region
Return type: List[ChampionMastery]
-
get_champion_mastery
(summonerId: str, championId: int, region: str)[source]¶ Get the
ChampionMastery
for a specific champion, given its ID.Parameters: - summonerId (str) – Summoner ID
- championId (int) – Champion ID
- region (str) – League region
Return type:
-
DataDragonAPI¶
-
class
DataDragonAPI
[source]¶ -
get_champion_from_id
(id: int, version: str = None, language: str = 'en_US')[source]¶ Get the
Champion
given its ID.Parameters: - id (int) – Champion ID
- version (str) – League version
- language (str) – League language
Return type:
-
get_champions_list
(version: str = None, language: str = 'en_US')[source]¶ Get a dictionary containing each champion’s ID, key and name.
Parameters: - version (str) – League version
- language (str) – League language
The syntax for this dictionary is as follows:
{champion_id (int): {'key': champion_key (str), 'name':champion_name (str)}, ...}
-
LeagueAPI¶
-
class
LeagueAPI
(api_key)[source]¶ -
get_challenger_queue
(queue: str, region: str)[source]¶ Get information about the Challenger queue in the given region and queue type.
Parameters: - queue (str) – Queue type (RANKED_SOLO_5x5 or RANKED_FLEX_SR)
- region (str) – League region
Return type:
-
get_grandmaster_queue
(queue: str, region: str)[source]¶ Get information about the Grandmaster queue in the given region and queue type.
Parameters: - queue (str) – Queue type (RANKED_SOLO_5x5 or RANKED_FLEX_SR)
- region (str) – League region
Return type:
-
get_league
(id: str, region: str)[source]¶ Get the
LeagueList
given its ID.Parameters: - id (str) – League ID
- region (str) – League region
Return type:
-
get_league_entries
(id: str, region: str)[source]¶ Get information about the ranked positions from the given summoner ID.
Parameters: - id (str) – Summoner ID
- region (str) – League region
Return type: List[LeagueEntry]
-
MatchAPI¶
-
class
MatchAPI
(api_key)[source]¶ -
get_match
(id: int, region: str)[source]¶ Get the
Match
given its ID.Parameters: - id (int) – Match ID
- region (str) – League region
Return type:
-
get_matchlist
(accountId: str, region: str, champion: list = None, queue: list = None, season: list = None, end_time: int = None, begin_time: int = None, end_index: int = None, begin_index: int = None)[source]¶ Get the
Matchlist
for a certain player.Additional filters can be set.
Parameters: - accountId (str) – Account ID
- region (str) – League region
- champion (List[int]) – List of champion IDs
- queue (List[int]) – List of queue IDs
- season (List[int]) – List of season IDs
- end_time (int) – End time in epoch milliseconds
- begin_time (int) – Begin time in epoch milliseconds
- end_index (int) – End index
- begin_index (int) – Begin index
Return type:
-
get_timeline
(id: int, region: str)[source]¶ Get the
MatchTimeline
of aMatch
given its ID.Parameters: - id (int) – Match ID
- region (str) – League region
Return type:
-
SpectatorAPI¶
-
class
SpectatorAPI
(api_key)[source]¶ -
get_current_game
(summonerId: str, region: str)[source]¶ Get the
CurrentGameInfo
of the live game of a summoner.Parameters: - id (int) – Match ID
- region (str) – League region
Return type:
-
get_featured_games
(region: str)[source]¶ Get the
FeaturedGames
of League.Parameters: region (str) – League region Return type: FeaturedGames
-
SummonerAPI¶
-
class
SummonerAPI
(api_key)[source]¶ -
from_account_id
(id: str, region: str)[source]¶ Get the
Summoner
given its account ID.Parameters: - id (str) – Account ID
- region (str) – League region
Return type:
-
from_id
(id: str, region: str)[source]¶ Get the
Summoner
given its ID.Parameters: - id (str) – Summoner ID
- region (str) – League region
Return type:
-