Skip to main content

GET_getConsoleRecent

await client.GET_getConsoleRecent(queue, region)
Get recently completed console match IDs for a queue. Returns matches from the last 10 minutes for live regions, or 12 hours for the esports routing value.
ParameterTypeDescription
queuestrConsole queue type. Valid values: console_unrated, console_swiftplay, console_hurm, console_competitive, console_deathmatch
regionstrRegion to query. Valid values: ap, br, esports, eu, kr, latam, na
Returns: RecentMatchesDto or dict Raises: InvalidRegion, InvalidQueue, RiotAPIResponseError
NA, LATAM, and BR share a match history deployment. Results may be inconsistent due to load balancing.

Example

import valaw
import asyncio

async def main():
    client = valaw.Client("YOUR_TOKEN", "americas")
    try:
        recent = await client.GET_getConsoleRecent("console_competitive", "na")
        print(f"Recent matches: {len(recent.matchIds)}")
    finally:
        await client.close()

asyncio.run(main())
Console queues are prefixed with console_. For PC queues, use GET_getRecent.