curl --request GET \
--url https://{region}.api.riotgames.com/val/match/console/v1/matches/{matchId}{
"response": {}
}Get match console data by match ID
curl --request GET \
--url https://{region}.api.riotgames.com/val/match/console/v1/matches/{matchId}{
"response": {}
}await client.GET_getConsoleMatch(matchId, region)
ap, br, esports, eu, kr, latam, naMatchDto object containing detailed match data, or raw JSON dict if raw_data=TrueInvalidRegion: If the provided region is invalidRiotAPIResponseError: If the API response indicates an errorimport asyncio
from valaw import Client
async def main():
client = Client(token="YOUR_API_KEY", cluster="americas")
# Get console match details
match = await client.GET_getConsoleMatch(
matchId="abc123-def456-ghi789",
region="na"
)
# Access match data
print(f"Match ID: {match.matchInfo.matchId}")
print(f"Map: {match.matchInfo.mapId}")
print(f"Game Mode: {match.matchInfo.queueId}")
await client.close()
asyncio.run(main())
GET_getMatch.