Datasets
Every dataset is one endpoint, /v1/data/<dataset>, with the same filters, column choice (fields and preset), paging and json, csv or parquet output. Pick one to build a query and preview it. Column definitions: docs.
state
- player_state · per game
- team_state · per game
games
One row is one game (one map of a match). game_id = match_id * 10 + map_no. Key: game_id.
Request
curl -H "Authorization: Bearer $CS2API_KEY" \ "https://api.granuleux.com/v1/data/games"
Python (all pages, as a DataFrame)
import io, os, requests, pandas as pd
url = "https://api.granuleux.com/v1/data/games"
params = {"limit": 1000,"format": "parquet"}
params = {k: v for k, v in params.items() if v is not None}
headers = {"Authorization": f"Bearer {os.environ['CS2API_KEY']}"}
frames = []
while True:
r = requests.get(url, params=params, headers=headers)
r.raise_for_status()
frames.append(pd.read_parquet(io.BytesIO(r.content)))
cursor = r.headers.get("X-Next-Cursor")
if not cursor:
break
params["cursor"] = cursor
df = pd.concat(frames, ignore_index=True)MCP (query_dataset arguments)
{"dataset":"games"}Preview (first 5 rows)
| game_id | match_id | map_no | map | start_time | tournament_id | ct_start_team_id | ct_start_name | t_start_team_id | t_start_name | score_ct_start | score_t_start | winner_team_id | rounds | complete | valid | issues | missing_rounds | has_state | has_events | has_ticks | has_kill_detail | polymarket_market | kalshi_event |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 24003902 | 2400390 | 2 | inferno | 2026-11-11T11:45:00Z | 9480 | 14124 | Lunacy | 12889 | G2 Ares | 9 | 13 | 12889 | 22 | true | true | [] | [] | true | true | false | false | cs2-g2a-lt-2026-11-11-game2 | KXCS2MAP-26NOV110630LTG2A-2 |
| 24003901 | 2400390 | 1 | mirage | 2026-11-11T11:45:00Z | 9480 | 12889 | G2 Ares | 14124 | Lunacy | 13 | 6 | 12889 | 19 | true | true | [] | [] | true | true | false | false | cs2-g2a-lt-2026-11-11-game1 | KXCS2MAP-26NOV110630LTG2A-1 |
| 24003882 | 2400388 | 2 | dust2 | 2026-11-10T11:30:00Z | 9480 | 11176 | MOUZ NXT | 12857 | FORZE Reload | 8 | 13 | 12857 | 21 | true | true | [] | [] | true | true | false | false | cs2-forzer-mouzn-2026-11-10-game2 | KXCS2MAP-26NOV100630MOUZNFORZER-2 |
| 24003881 | 2400388 | 1 | ancient | 2026-11-10T11:30:00Z | 9480 | 12857 | FORZE Reload | 11176 | MOUZ NXT | 13 | 6 | 12857 | 19 | true | true | [] | [] | true | true | false | false | cs2-forzer-mouzn-2026-11-10-game1 | KXCS2MAP-26NOV100630MOUZNFORZER-1 |
| 24003863 | 2400386 | 3 | mirage | 2026-11-09T12:25:00Z | 9480 | 14130 | Balkan Outlaws | 13749 | ex-ENCE | 13 | 7 | 14130 | 20 | true | true | [] | [] | true | true | false | false |