Matches
Use matches to browse matches across all players or inspect one match in
detail.
matches.list()
Gets a filtered list of matches.
Options
| Option | Type | Description |
|---|---|---|
after |
number |
Gets matches after this match ID |
before |
number |
Gets matches before this match ID |
count |
number |
Limits the result to 1 through 100 matches; the API default is 20 |
includeDecay |
boolean |
Set to true to include synthetic rank-decay matches; the API omits them by default |
season |
number |
Filters by season; the API default is the current season |
tag |
string |
Filters by a special match tag |
type |
number |
Filters by the API's numeric match type |
The method returns Promise<Match[]>. It returns an empty array when the API
has no matching entries.
matches.get()
Gets the detailed form of one match.
| Parameter | Type | Description |
|---|---|---|
matchId |
number |
Numeric match ID |
MatchDetail includes all Match fields plus completions, timelines, and
replayExist.
Match fields
The SDK returns timestamps, durations, match types, and other domain values as the API provides them. See the official API documentation for their meaning.
For a task-based example, read browse and filter matches.