Skip to main content

GET_getConsoleMatchlist

await client.GET_getConsoleMatchlist(puuid, region, platformType)
Get a console player’s match history.
ParameterTypeDescription
puuidstrThe player’s PUUID
regionstrThe player’s region. Valid values: ap, br, esports, eu, kr, latam, na
platformTypestrThe console platform. Valid values: playstation, xbox
Returns: MatchlistDto or dict Raises: InvalidRegion, InvalidPlatformType, RiotAPIResponseError

Example

import valaw
import asyncio

async def main():
    client = valaw.Client("YOUR_TOKEN", "americas")
    try:
        matchlist = await client.GET_getConsoleMatchlist(
            puuid="player-puuid-here",
            region="na",
            platformType="playstation"
        )
        print(f"Total matches: {len(matchlist.history)}")
    finally:
        await client.close()

asyncio.run(main())