League of Legends Watcher

class riotwatcher.LolWatcher(api_key: str = None, timeout: int = None, kernel_url: str = None, rate_limiter: riotwatcher.RateLimiter.RateLimiter = <riotwatcher.Handlers.RateLimit.BasicRateLimiter.BasicRateLimiter object>, deserializer: riotwatcher.Deserializer.Deserializer = <riotwatcher.Handlers.DictionaryDeserializer.DictionaryDeserializer object>, default_status_v4: bool = False, **kwargs)

LolWatcher class is intended to be the main interaction point with the APIs for League of Legends.

Initialize a new instance of the RiotWatcher class.

Parameters:
  • api_key (string) – the API key to use for this instance
  • timeout (int) – Time to wait for a response before timing out a connection to the Riot API
  • kernel_url (string) – URL for the kernel instance to connect to, instead of the API. See https://github.com/meraki-analytics/kernel for details.
  • rate_limiter (RateLimiter) – Instance to be used for rate limiting. This defaults to Handlers.RateLimit.BasicRateLimiter. This parameter is not used when connecting to a kernel instance.
  • deserializer (Deserializer) – Instance to be used to deserialize responses from the Riot Api. Default is Handlers.DictionaryDeserializer.
challenges

Interface to the Challenges Endpoint

Return type:league_of_legends.ChallengesApiV1
champion

Interface to the Champion Endpoint

Return type:league_of_legends.ChampionApiV3
champion_mastery

Interface to the ChampionMastery Endpoint

Return type:league_of_legends.ChampionMasteryApiV4
clash

Interface to the Clash Endpoint

Return type:league_of_legends.ClashApiV1
data_dragon

Interface to the DataDragon Endpoint

Return type:league_of_legends.DataDragonApi
league

Interface to the League Endpoint

Return type:league_of_legends.LeagueApiV4
lol_status

Interface to the LoLStatus Endpoint

Return type:league_of_legends.LolStatusApiV3
lol_status_v3

Interface to the LoLStatus Endpoint

Return type:league_of_legends.LolStatusApiV3
lol_status_v4

Interface to the LoLStatus Endpoint

Return type:league_of_legends.LolStatusApiV4
match

Interface to the Match Endpoint

Return type:league_of_legends.MatchApiV5
match_v4

This property has been deprecated. Use ‘match’ property instead. Note that v4 is now permanently removed by Riot

match_v5

this property has been deprecated. Use ‘match’ property instead.

spectator

Interface to the Spectator Endpoint

Return type:league_of_legends.SpectatorApiV4
summoner

Interface to the Summoner Endpoint

Return type:league_of_legends.SummonerApiV4
third_party_code

DEPRECATED: API has been removed by Riot