> ## Documentation Index
> Fetch the complete documentation index at: https://valaw.madebyjet.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Recent Matches

> Get recently completed match IDs for a queue

## GET\_getRecent

```python theme={null}
await client.GET_getRecent(queue, region)
```

Get recently completed match IDs for a queue. Returns matches from the last 10 minutes for live regions, or 12 hours for the esports routing value.

| Parameter | Type | Description |
| - | - | - |
| `queue` | `str` | Queue type. Valid values: `competitive`, `unrated`, `spikerush`, `tournamentmode`, `deathmatch`, `onefa`, `ggteam`, `hurm` |
| `region` | `str` | Region to query. Valid values: `ap`, `br`, `esports`, `eu`, `kr`, `latam`, `na` |

**Returns:** [`RecentMatchesDto`](https://valaw.madebyjet.dev/api-reference/objects/match-objects#recentmatchesdto) or `dict`

**Raises:** [`InvalidRegion`](https://valaw.madebyjet.dev/api-reference/exceptions#invalidregion), [`InvalidQueue`](https://valaw.madebyjet.dev/api-reference/exceptions#invalidqueue), [`RiotAPIResponseError`](https://valaw.madebyjet.dev/api-reference/exceptions#riotapiresponseerror)

> [!NOTE]
>
> NA, LATAM, and BR share a match history deployment. Results from those regions will be combined and may be inconsistent due to load balancing.

***

## Example

```python theme={null}
import valaw
import asyncio

async def main():
    client = valaw.Client("YOUR_TOKEN", "americas")
    try:
        recent = await client.GET_getRecent("competitive", "na")
        print(f"Recent competitive matches: {len(recent.matchIds)}")
        for match_id in recent.matchIds[:3]:
            print(f"  {match_id}")
    finally:
        await client.close()

asyncio.run(main())
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.