Skip to main content

GET_getConsoleMatch

await client.GET_getConsoleMatch(matchId, region)
Get full console match details by match ID.
ParameterTypeDescription
matchIdstrThe match ID
regionstrRegion the match was played in. Valid values: ap, br, esports, eu, kr, latam, na
Returns: MatchDto or dict Raises: InvalidRegion, RiotAPIResponseError

Example

import valaw
import asyncio

async def main():
    client = valaw.Client("YOUR_TOKEN", "americas")
    try:
        match = await client.GET_getConsoleMatch("match-id-here", "na")
        print(f"Map: {match.matchInfo.mapId}")
        print(f"Duration: {match.matchInfo.gameLengthMillis / 1000 / 60:.1f} minutes")
    finally:
        await client.close()

asyncio.run(main())
For PC matches, use GET_getMatch instead.