esportsodds.gg

v0.4.5
io.github.esportsodds/esportsodds Checked 2 days ago Published 1 month ago

CS2 match data for AI assistants: matches, maps, vetoes, rounds, player stats, teams, rankings.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

matches_list List matches

One page of matches, newest fixture first. That order starts a list of scheduled matches with the fixture furthest away. For the next matches to be played, pass `status="scheduled", sort="scheduled_at"`. Returns 20 rows unless you set `limit`; when `next_cursor` is not null, pass it as `cursor` for the next page.

ParameterTypeDescription
changed_sincestringOnly matches whose `changed_at` is at or after this instant; the change feed (prefer `iter_changes`, which also handles the overlap).
cursorstring`next_cursor` from the previous page; omit for the first.
date_fromstringScheduled on or after this day (UTC, inclusive).
date_tostringScheduled on or before this day (UTC, inclusive of the whole day).
hasstringOnly matches that carry all of these sub-resources, for example `["rounds", "depth"]`. Several values: comma-separated.
limitintegerPage size (default 100, maximum 500).
sortstring`-scheduled_at` (default, newest first), `scheduled_at` (oldest first, which for scheduled matches is soonest first), `changed_at` or `-changed_at`. A cursor is tied to the sort it came from.
statusstring`scheduled`, `live`, `completed` or `cancelled`. With `scheduled`, also pass `sort="scheduled_at"` to get the next fixtures, not the furthest away.
teamstringOnly this team's matches (id).
tournamentstringOnly this tournament's matches (id).

matches_get Get a match

One match. The `data_available` flags say which sub-resources exist for it. Pass `include` to get the ones you need back in this same request.

ParameterTypeDescription
match *stringThe match's id, which is always a UUID.
includestringEmbed related resources: `teams` (adds `team_a`/`team_b`), `tournament` and `odds` (the latest line per outcome), or the match's own `maps`, `stats`, `vetoes`, `rounds`, `depth`, `lineups`, `streams`…

matches_maps Match map scores

Per-map scores for one match. Also in the match itself: get the match with `include="maps"` to save this request.

ParameterTypeDescription
match *stringThe match id (a UUID). Matches have no slug: find one with `matches_list`.

matches_stats Match player stats

Per-player performance stats for one match. Also in the match itself: get the match with `include="stats"` to save this request.

ParameterTypeDescription
match *stringThe match id (a UUID). Matches have no slug: find one with `matches_list`.

matches_vetoes Match vetoes

The map veto (pick and ban) sequence for one match. Also in the match itself: get the match with `include="vetoes"` to save this request.

ParameterTypeDescription
match *stringThe match id (a UUID). Matches have no slug: find one with `matches_list`.

matches_rounds Match rounds

Round-by-round team stats for one match. Also in the match itself: get the match with `include="rounds"` to save this request.

ParameterTypeDescription
match *stringThe match id (a UUID). Matches have no slug: find one with `matches_list`.

matches_lineups Match lineups

Pre-match roster snapshots. A snapshot is a listed roster (substitutes included), not a confirmed starting five; the players who played are in `stats`. Also in the match itself: get the match with `include="lineups"` to save this request.

ParameterTypeDescription
match *stringThe match id (a UUID). Matches have no slug: find one with `matches_list`.

odds_list Market line

Odds lines, newest first. With `match` this is that match's line history, paginated by `cursor`. Without it (or with `match` and `latest=True`) it is a snapshot: the latest line per market and outcome, in a single page capped at `limit`, whose `next_cursor` is always null. Returns 20 rows unless you set `limit`; when `next_cursor` is not null, pass it as `cursor` for the next page.

ParameterTypeDescription
cursorstring`next_cursor` from the previous page (match history only).
latestbooleanWith `match`, return the current board instead of the tick history.
limitintegerPage size (default 200, maximum 1000).
marketstringWith `match`, only this market type (for example `match_winner`).
matchstringOne match's id.
sourcestring`eo_market` or `eo_model`. `eo_model` rows are absent until the model line is released. Omit for both.

teams_list List teams

One page of teams, by name. Returns 20 rows unless you set `limit`; when `next_cursor` is not null, pass it as `cursor` for the next page.

ParameterTypeDescription
cursorstring`next_cursor` from the previous page.
limitintegerPage size (default 100, maximum 500).
qstringSearch by name, 2 to 100 characters, case-insensitive: matches a team's name, short name, slug or alternate name.
regionstringOne circuit region, by full name: `Europe`, `North America`, `South America`, `Asia`, `CIS`, `Oceania` or `Africa`.
slugstringExact slug match (returns the one team, or an empty page).
sortstring`name` (default) or `slug`; prefix `-` to reverse.

teams_get Get a team

One team.

ParameterTypeDescription
team *stringThe team's id or slug.
includestring`rank` fills `own_rank`, the team's position on the 3-month leaderboard. Several values: comma-separated.
rankbooleanThe same as `include="rank"`. Off by default because it costs the API an extra query.

teams_h2h Head to head

The completed-match record between two teams.

ParameterTypeDescription
opponent *stringThe other team (id or slug). Required.
team *stringThe first team (id or slug).

teams_form Team form

A team's recent completed results, newest first (default 10, maximum 50).

ParameterTypeDescription
team *stringThe team's id (a UUID) or its slug.
limitintegerHow many rows to return.

teams_maps Team map record

A team's win and loss record per map, best win rate first. With no arguments this covers the team's whole history, including maps that have left the pool. The arguments narrow it to what is current.

ParameterTypeDescription
team *stringThe team's id or slug.
activebooleanOnly the maps in today's Active Duty pool.
erastring`cs2` keeps Counter-Strike 2 matches only; `all` (the default) keeps every one.
includestring`detail` adds each map's last-played date, pool membership and the team's round record by side and in pistol rounds. Several values: comma-separated.
windowstringA trailing span such as `"6m"` (whole months, up to `"60m"`) or `"all"` (the default).

teams_results Team results

A team's completed, decided matches, newest first, with every played map's score and both teams' ratings going into the match (default 20, maximum 100).

ParameterTypeDescription
team *stringThe team's id or slug.
limitintegerHow many results to return.
opponentstringOnly the matches against this team (id or slug).

teams_players Team players

The players in a team's newest completed match with stats, usually five. Each comes with their own figures over the last 12 months (the same as `players.performance`), whether they have a player page, and when their current run with the team began. `as_of` is that match's date; a team with no such match returns `as_of: null` and no players. A figure from fewer than 10 recorded maps is null. Players are identified by nickname, country and role only.

ParameterTypeDescription
team *stringThe team's id or slug.

tournaments_list List tournaments

One page of tournaments. Returns 20 rows unless you set `limit`; when `next_cursor` is not null, pass it as `cursor` for the next page.

ParameterTypeDescription
cursorstring`next_cursor` from the previous page.
event_typestring`lan` or `online`.
limitintegerPage size (default 100, maximum 500).
qstringSearch by name, 2 to 100 characters, case-insensitive: matches a tournament's name or slug.
regionstringOne circuit region, by full name (for example `Europe`).
slugstringExact slug match.
statusstring`upcoming`, `ongoing`, `finished` or `cancelled`.
tierstringOne prestige tier, `S` (highest) down to `C`.
yearintegerTournaments starting in this calendar year (2000 to 2100).

tournaments_get Get a tournament

One tournament (id or slug).

ParameterTypeDescription
tournament *stringThe tournament's id (a UUID) or its slug.

tournaments_teams Tournament teams

The teams that took part in a tournament.

ParameterTypeDescription
tournament *stringThe tournament's id (a UUID) or its slug.

players_list List players

One page of players, by nickname. Returns 20 rows unless you set `limit`; when `next_cursor` is not null, pass it as `cursor` for the next page.

ParameterTypeDescription
cursorstring`next_cursor` from the previous page.
idsstringLook up specific players: up to 500 ids, as a list or comma-separated string. Several values: comma-separated.
limitintegerPage size (default 100, maximum 500).
qstringSearch by nickname, 2 to 100 characters, case-insensitive: matches a player's nickname or slug.
rolestringOne in-game role: `AWP`, `IGL`, `Lurker`, `Rifler` or `Support` (exact, case-sensitive; only some players have one on file).
slugstringExact slug match.
sortstring`nickname` (default) or `slug`; prefix `-` to reverse.
teamstringOnly this team's roster (id).

players_get Get a player

One player.

ParameterTypeDescription
player *stringThe player's id or slug.
includestring`rank` fills `own_rank`, the player's position on the 3-month leaderboard. Several values: comma-separated.
rankbooleanThe same as `include="rank"`. Off by default because it costs the API an extra query.

players_career Player career stats

A player's all-time career totals and averages (averages are null with no rated maps).

ParameterTypeDescription
player *stringThe player's id (a UUID) or its slug.

players_matches Player matches

A player's recent completed matches, newest first, with the team they played for, the opponent, the series score from their side, the tournament and their own kills, deaths and ADR. Walkovers and matches before Counter-Strike 2 are left out. Not paginated.

ParameterTypeDescription
player *stringThe player's id or slug.
limitintegerHow many matches to return (default 10, maximum 25).

rankings_list Rankings

A leaderboard. Not paginated: `limit` truncates the board and `next_cursor` is always null.

ParameterTypeDescription
delta_daysintegerDays back that a team's `rank_delta` is measured against, 1 to 90 (default 7).
includestring`trend` adds, to each team row, the board value at each of the last twelve weekly marks, oldest first. Several values: comma-separated.
limitintegerRows to return (default 100, maximum 500).
regionstringOne circuit region, by full name.
rolestringOne player role (with `type="player"`).
sortstring`rank` (default), `value` or `name`; prefix `-` to reverse. Re-sorting reorders the rows but never changes their `rank`.
typestring`team` (default) or `player`. They rank on different metrics, named in each row's `metric`.

maps_list Map figures

Each competitive map's league-wide figures: maps played, average rounds, rounds played and won on each side, and the bans and picks recorded in vetoes. Most played first. Read a map's bans and picks against its own `veto_matches`.

ParameterTypeDescription
erastring`cs2` or `all` (the default).
windowstringA trailing span of whole months from `"1m"` to `"12m"` (default `"6m"`); there is no `"all"`.