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
tournaments
One row is one tournament (HLTV event). Key: tournament_id.
Request
curl -H "Authorization: Bearer $CS2API_KEY" \ "https://api.granuleux.com/v1/data/tournaments"
Python (all pages, as a DataFrame)
import io, os, requests, pandas as pd
url = "https://api.granuleux.com/v1/data/tournaments"
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":"tournaments"}Preview (first 5 rows)
| tournament_id | name | matches | start_time | end_time | max_stars |
|---|---|---|---|---|---|
| 9465 | CCT 2026 Europe Series 13 | 20 | 2026-11-04T12:00:00Z | 2026-11-11T18:15:00Z | 0 |
| 9480 | European Pro League Series 10 | 8 | 2026-11-06T09:00:00Z | 2026-11-11T11:45:00Z | 0 |
| 8251 | BLAST Rivals 2026 Season 2 | 4 | 2026-11-11T02:00:00Z | 2026-11-11T09:30:00Z | 3 |
| 9471 | CCT 2026 Europe Series 14 Closed Qualifier | 20 | 2026-11-04T09:00:00Z | 2026-11-09T18:10:00Z | 0 |
| 9377 | ESL Challenger League Season 52 Europe Cup 11 | 28 | 2026-11-07T14:00:00Z | 2026-11-09T18:00:00Z | 0 |