> ## 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.

# Granuleux

> Pro Counter-Strike 2 match data at the resolution an in-round model needs.

Granuleux is a CS2 data API that serves structured data from professional CS2 matches. It is built for
people who train **live, in-round models** (win probability, round outcome, economy, player impact), so it exposes
what happens inside a round, not just the final score.

## What is in it

| Level | What you get | Endpoint |
| - | - | - |
| Match | Teams, tournament, series score, format, HLTV stars, map veto | `GET /v1/matches`, `GET /v1/matches/{match_id}` |
| Game (one map) | Score by starting side, roster with Steam64 ids, which datasets exist, validation issues | `GET /v1/games/{game}` |
| Round | Freeze-end and end ticks, winner side and reason, bomb site and plant tick, team equipment value and cash | `GET /v1/games/{game}/rounds` |
| Events | Kills with positions and modifiers, every damage hit, grenade detonations and expiries, bomb pickups / drops / plants / defuses / explosions | `.../kills`, `.../damage`, `.../grenades`, `.../bomb` |
| Player state | Every player through live round time, sub-second | `GET /v1/games/{game}/states` |
| Tick files | Every player at every tick, as parquet | `GET /v1/games/{game}/files` |
| Aggregates | Per-game and per-round player lines, player and team stats | `.../players`, `/v1/players/{steamid}/stats`, `/v1/teams/{team_id}/stats` |

## What makes it granular

* **Sub-second player state over the API**: position (x, y, z), velocity, view angles (pitch, yaw), hp, armor, helmet, kit,
  active weapon, full inventory, cash, equipment value, flash, scoped / defusing / walking / ducking / airborne,
  bomb-zone presence, spotted state, map callout, clip and reserve ammo. See [State](https://cs2-data-api.mintlify.site/data/state.md).
* **Tick-level parquet downloads**: every player at every tick (about 79 columns, including key presses, velocity in 3D,
  shots fired, per-player stat counters and round state). See [Files](https://cs2-data-api.mintlify.site/data/files.md).
* **Utility**: each smoke, flash, HE and fire with thrower and detonation position; smokes and fires also have an end
  event, so you know when they stop blocking.
* **Kill detail**: assister, flash assist, through smoke, no-scope, attacker blind, attacker in air, wallbang,
  distance, attacker and victim positions. See [Events](https://cs2-data-api.mintlify.site/data/events.md).
* **Per-hit damage**: every hit with hitgroup, the damage the game reported, and the hp it actually removed.
* **Economy**: per-round team cash and equipment value at freeze end; per-player cash, equipment, armor, helmet and kit
  at round start (`GET /v1/games/{game}/rounds/{round_no}/players`); cash and equipment value at every state sample.

## Coverage

Coverage grows as matches are added, so these docs give no counts. `GET /v1/health` (no key needed) returns the
current number of matches and games and when the data was built. Not every game has every dataset: check the
`has_state`, `has_events`, `has_ticks` and `has_kill_detail` flags on a game. See [Coverage and caveats](https://cs2-data-api.mintlify.site/data/coverage.md).

> [card] [Quickstart](https://cs2-data-api.mintlify.site/quickstart.md)
>
> Get a key and make your first call.

> [card] [Build round-model features](https://cs2-data-api.mintlify.site/guides/round-model-features.md)
>
> From rounds and player state to a per-sample training table.


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