MatchApiV5

class riotwatcher._apis.league_of_legends.MatchApiV5(base_api: riotwatcher._apis.BaseApi.BaseApi)

This class wraps the Match-v5 endpoint calls provided by the Riot API.

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

Initialize a new MatchApiV5 which uses the provided base_api

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

Get match by match ID

Parameters:
  • region (string) – The region to execute this request on
  • match_id (string) – The match ID.
Returns:

MatchDto

matchlist_by_puuid(region: str, puuid: str, start: int = None, count: int = None, queue: int = None, type: str = None, start_time: int = None, end_time: int = None)

Get matchlist for ranked games played on given account ID and platform ID and filtered using given filter parameters, if any

Parameters:
  • region (string) – The region to execute this request on
  • puuid (string) – The puuid.
  • start (int) – Defaults to 0. Start index.
  • count (int) – Defaults to 20. Valid values: 0 to 100. Number of match ids to return.
  • queue (int) – Filter the list of match ids by a specific queue id. This filter is mutually inclusive of the type filter meaning any match ids returned must match both the queue and type filters.
  • type (string) – Filter the list of match ids by the type of match. This filter is mutually inclusive of the queue filter meaning any match ids returned must match both the queue and type filters.
  • start_time (long) – Epoch timestamp in seconds. The matchlist started storing timestamps on June 16th, 2021. Any matches played before June 16th, 2021 won’t be included in the results if the startTime filter is set.
  • end_time (long) – Epoch timestamp in seconds.
Returns:

List[string]

timeline_by_match(region: str, match_id: str)

Get match timeline by match ID.

Not all matches have timeline data.

Parameters:
  • region (string) – The region to execute this request on
  • match_id (string) – The match ID.
Returns:

MatchTimelineDto