> ## Documentation Index
> Fetch the complete documentation index at: https://cs2-data-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IDs

> Matches, games, rounds, events, players, teams and tournaments.

| Entity | ID | Example |
| - | - | - |
| Match (a series: Bo1, Bo3, Bo5) | HLTV match id, integer | `2398724` |
| Game (one map of a match) | `match_id * 10 + map_no`, or the string `"match_id:map_no"` | `23987241` or `2398724:1` |
| Round | `(game, round_no)`; `round_no` is 1-based in game order and overtime continues (25, 26, ...) | |
| Event (kill, hit, grenade, bomb event) | `(game, round_no, seq)`; `seq` is the order within the round | |
| Player | Steam64 id, **as a string**; `hltv_player_id` beside it where known | `"76561197960690195"` |
| Team | HLTV team id, integer | |
| Tournament | HLTV event id, integer | |
| Map | Engine name without the `de_` prefix | `mirage`, `dust2` |

## Games

Both forms address the same game in any `/v1/games/{game}` path:

```bash theme={null}
curl -H "Authorization: Bearer $CS2API_KEY" https://api.granuleux.com/v1/games/23987241
curl -H "Authorization: Bearer $CS2API_KEY" https://api.granuleux.com/v1/games/2398724:1
```

Responses always carry the integer `game_id`, plus `match_id` and `map_no`. The `map` filter accepts `de_mirage` or
`mirage`.

## Steam64 ids are strings

Player ids (`steamid`, `attacker_steamid`, `victim_steamid`, `assister_steamid`, `thrower_steamid`,
`player_steamid`) are sent as JSON strings. **Do not parse them to numbers**: they exceed 2^53, so JavaScript
`Number` and float64 columns (pandas' default for numbers with nulls) round them and silently merge players.

```python theme={null}
import pandas as pd
kills = pd.DataFrame(data)                      # steamid columns stay str (object dtype)
# reading CSV output: force strings
kills = pd.read_csv(url, dtype={"attacker_steamid": str, "victim_steamid": str, "assister_steamid": str})
```

In the parquet downloads, Steam64 ids are 64-bit integers (strings in the `events` file), which is safe in pandas,
polars and DuckDB as long as you do not cast them to float.

## Team ids and the "unresolved" state

Team, event and HLTV player ids come from HLTV match pages and are filled for every match in the dataset. A match added
before its page has been read is briefly "unresolved":

* `team1_id`, `team2_id`, `ct_start_team_id`, `t_start_team_id`, `winner_team_id`, round `ct_team_id` / `t_team_id` /
  `winner_team_id`, and roster or player `team_id` are `null`;
* the game's `issues` list contains `teams_unresolved` (this issue alone does not make `valid` false).

Names are always filled (`team1_name`, `ct_start_name`, round `ct_name` / `t_name`), and round winners are always available
as `winner_side` (`CT` or `T`). `GET /v1/matches` also filters by name: `team` and `tournament` are case-insensitive
substring matches (at least 2 characters).

```bash theme={null}
curl -H "Authorization: Bearer $CS2API_KEY"   "https://api.granuleux.com/v1/matches?team=vitality&tournament=major"
```

## PandaScore ids

Teams and players carry `pandascore_id` where we could match them to PandaScore's Counter-Strike catalogue: teams by name
(or acronym) confirmed by roster overlap, players by in-game name, disambiguated by their team's roster. Where a match
was ambiguous the field is `null` rather than a guess. Look up our records from a PandaScore id with
`GET /v1/teams?pandascore_id=…` or `GET /v1/players?pandascore_id=…`.

## Prediction market ids

Matches and maps carry the ids of their Polymarket and Kalshi markets, so you can join our data to market prices:

| Field | On | Example |
| - | - | - |
| `polymarket_event` | match | `cs2-furia-bb3-2026-10-18` (event slug: the match winner market has the same slug, map winners add `-game1`, `-game2`, ...) |
| `kalshi_event` | match | `KXCS2GAME-26OCT181100BBFURIA` (match winner event ticker) |
| `polymarket_market` | game (map) | `cs2-furia-bb3-2026-10-18-game2` |
| `kalshi_event` | game (map) | `KXCS2MAP-26OCT181100BBFURIA-2` |

They are on `GET /v1/matches`, `GET /v1/matches/{match_id}` and `GET /v1/games/{game}`, and the `markets` dataset lists
every linked market (`GET /v1/data/markets?match=…`). To go from a market to our match, search by id:
`GET /v1/data/markets?q=cs2-furia-bb3-2026-10-18` or `GET /v1/data/matches?q=KXCS2GAME-26OCT181100BBFURIA`.
Markets are linked by both team names and start time; a match with no confident link has `null`. Coverage: Polymarket
from May 2026, Kalshi from late September 2026.

## Player names

`nickname` is the HLTV nickname when the in-game name matches the official lineup, otherwise the most recent in-game
name. Every in-game name a player used is in `GET /v1/players/{steamid}` as `aliases`, and `GET /v1/players?q=` searches
both.


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