Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get match history for a player by PUUID
await client.GET_getMatchlist(puuid, region)
puuid
str
region
ap
br
esports
eu
kr
latam
na
MatchlistDto
dict
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())