curl --request GET \
--url https://{region}.api.riotgames.com/val/match/console/v1/matchlists/by-puuid/{puuid}{
"response": {}
}Get matchlist for console games played by a player
curl --request GET \
--url https://{region}.api.riotgames.com/val/match/console/v1/matchlists/by-puuid/{puuid}{
"response": {}
}await client.GET_getConsoleMatchlist(puuid, region, platformType)
ap, br, esports, eu, kr, latam, naplaystation - PlayStation consolexbox - Xbox consoleMatchlistDto object containing a list of match IDs, or raw JSON dict if raw_data=TrueInvalidRegion: If the provided region is invalidInvalidPlatformType: If the provided platform type is invalid (must be “playstation” or “xbox”)RiotAPIResponseError: If the API response indicates an errorimport asyncio
from valaw import Client
async def main():
client = Client(token="YOUR_API_KEY", cluster="americas")
# Get PlayStation matchlist for a player
matchlist = await client.GET_getConsoleMatchlist(
puuid="abc123-def456-ghi789-jkl012",
region="na",
platformType="playstation"
)
# Get Xbox matchlist for the same player
xbox_matchlist = await client.GET_getConsoleMatchlist(
puuid="abc123-def456-ghi789-jkl012",
region="na",
platformType="xbox"
)
# Iterate through match IDs
for match_id in matchlist.history:
print(f"Match ID: {match_id}")
await client.close()
asyncio.run(main())