SpectatorApiV4

class riotwatcher._apis.SpectatorApiV4(base_api)

This class wraps the Spectator-v4 endpoint calls provided by the Riot API.

See https://developer.riotgames.com/api-methods/#spectator-v4 for more detailed information

by_summoner(region, encrypted_summoner_id)

Get current game information for the given summoner ID

Parameters:
  • region (string) – The region to execute this request on
  • encrypted_summoner_id (string) – The ID of the summoner.
Returns:

CurrentGameInfo

featured_games(region)

Get list of featured games.

Parameters:region (string) – The region to execute this request on
Returns:FeaturedGames