get_player_matches
Retrieve a player's rated Dota 2 match history with filters for hero, game mode, patch, date range, side, and team composition. Returns enriched rows with hero names, win/loss, and readable game mode labels.
Instructions
Get a player's rated match history with rich filters (hero, game mode, patch, date range, side, with/against heroes, ...). Each row is enriched with hero name, win/loss, game mode label. For summaries use get_player_win_loss or get_player_heroes instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| win | No | 1 = wins only, 0 = losses only. | |
| date | No | Only matches from the last N days. | |
| sort | No | Sort results by this field, descending (e.g. 'start_time'). | |
| limit | No | Max results to return. | |
| patch | No | Patch id filter (e.g. from get_constants patch). | |
| having | No | Min games played (used by hero-stat tools). | |
| offset | No | Skip this many results (pagination). | |
| region | No | Region id filter. | |
| hero_id | No | Only matches on this hero id. | |
| project | No | Comma-separated fields to return (e.g. 'hero_id,start_time,kills,deaths,assists') to trim output. | |
| language | No | Language for hero/item/ability names. Accepts Steam codes ("english", "schinese", "russian", ...) or tags ("zh-CN", "zh", "ru", ...). Defaults to the OPENDOTA_LANGUAGE env var or "english". Use list_supported_languages to see all options. | |
| game_mode | No | Game mode id filter (e.g. 22 = Ranked All Pick). | |
| lane_role | No | Lane role: 1=Safe, 2=Mid, 3=Off, 4=Jungle. | |
| account_id | Yes | Steam32 account id (the number after /players/ in an OpenDota profile URL, or from search_players). | |
| is_radiant | No | 1 = Radiant side only, 0 = Dire only. | |
| lobby_type | No | Lobby type id filter (e.g. 7 = Ranked). | |
| significant | No | 0 (this server's default) includes ALL game modes including Turbo; 1 = only standard/ranked-style modes (OpenDota's own default, which hides Turbo). | |
| with_hero_id | No | Only matches with these heroes on the player's team. | |
| against_hero_id | No | Only matches against these heroes. | |
| excluded_account_id | No | Exclude matches where these account ids played. | |
| included_account_id | No | Only matches where these account ids played. |