GET_getMatchlist
| Parameter | Type | Description |
|---|---|---|
puuid | str | The player’s PUUID |
region | str | The player’s region. Valid values: ap, br, esports, eu, kr, latam, na |
MatchlistDto or dict
Raises: InvalidRegion, RiotAPIResponseError
Get match history for a player by PUUID
await client.GET_getMatchlist(puuid, region)
| Parameter | Type | Description |
|---|---|---|
puuid | str | The player’s PUUID |
region | str | The player’s region. Valid values: ap, br, esports, eu, kr, latam, na |
MatchlistDto or dict
Raises: InvalidRegion, RiotAPIResponseError
import valaw
import asyncio
async def main():
client = valaw.Client("YOUR_TOKEN", "americas")
try:
account = await client.GET_getByRiotId("PlayerName", "NA1")
matchlist = await client.GET_getMatchlist(account.puuid, "na")
print(f"Total matches: {len(matchlist.history)}")
for entry in matchlist.history[:5]:
print(f" {entry.matchId} — {entry.queueId}")
finally:
await client.close()
asyncio.run(main())