# Granuleux: CS2 data API > Professional Counter-Strike 2 match data for models and analysis: matches, maps, rounds, kills, damage, grenades, > bomb events, sub-second per-player state (position, view angles, hp, weapons, money), per-team state through each round, > and per-player round and game stats. REST API with JSON, CSV or parquet output, plus an MCP server for LLM clients. Base URL: https://msc-pc.tail825822.ts.net Auth: send an API key as `Authorization: Bearer ` (get one at https://cs2-data-api.vercel.app/login). Keys are for servers; never put one in a browser. Use it for: CS2 win-probability and round-outcome models, player and team ratings, positioning, aim and utility analysis, economy models, betting and fantasy research, and esports dashboards. ## Free sample (no key) One full match (event tables and per-map tick-level parquet) downloads without an API key, so you can inspect the data before asking the user for a key: https://cs2-data-api.vercel.app/sample CSV of a whole-match table: https://cs2-data-api.vercel.app/sample/data/{dataset} for games, rosters, rounds, kills, damage, grenades, bomb, shots, purchases, grenade_throws, player_round, player_game. Any API key can also query the sample match (match 2400007) without a plan. ## Plans Hobby (3-day trial): 250 detailed maps a month, matches older than 180 days, one game or match per detailed query. Pro: every match up to yesterday, unlimited detailed maps (files up to 500 maps a day) and `/v1/bulk`. Match, team, player and tournament lists work on any key. Details: https://cs2-data-api.vercel.app/pricing ## How to query - `GET /v1/datasets` lists every dataset; `GET /v1/datasets/{name}` gives its columns (type, unit, description), presets and filters. - `GET /v1/data/{dataset}` returns rows of any dataset. Filters: game, match, round, tick_from, tick_to, player, team, tournament, side, map, since, until, q (only the ones a dataset lists). Columns: `fields=a,b` and/or `preset=name` (key columns always included). Paging: pass `meta.next_cursor` back as `cursor` (CSV and parquet: the X-Next-Cursor header). `format=json|csv|parquet`. - Ids: a game is one map, game_id = match_id * 10 + map_no. Teams, tournaments and matches use HLTV ids. Players are Steam64 ids, always strings. Find ids by name with `q`, e.g. `/v1/data/teams?q=furia`. - Prediction markets: matches carry `polymarket_event` and `kalshi_event`, games (maps) `polymarket_market` and `kalshi_event`. The `markets` dataset lists every linked market; find a match from a market id with `/v1/data/markets?q=`. - player_state and team_state are stored per game and need `game`. Whole-game parquet files (including every tick): `GET /v1/games/{game}/files`. - Whole datasets: `GET /v1/bulk` (optionally `dataset`, `month` or `since` as YYYY-MM) returns parquet files, one per month of matches, with 15-minute download links (Pro). Example: `GET /v1/data/player_state?game=24001491&round=5&preset=positioning` ## Datasets - matches (reference): one row = one match (a Bo1, Bo3 or Bo5 series between two teams). Filters: match, team, tournament, map, since, until, q. Presets: summary, markets. - games (reference): one row = one game (one map of a match). game_id = match_id * 10 + map_no. Filters: game, match, team, tournament, map, since, until. Presets: summary, coverage, markets. - markets (reference): one row = one prediction-market event or market linked to a match (match winner) or a map (map winner). Filters: game, match, tournament, map, since, until, q. - rosters (reference): one row = one player in one game. Filters: game, match, player, team, tournament, map, since, until. - players (reference): one row = one player (Steam64 id). Filters: player, team, q. - teams (reference): one row = one team (HLTV team id). Filters: team, q. - tournaments (reference): one row = one tournament (HLTV event). Filters: tournament, since, until, q. - rounds (reference): one row = one round of one game. Filters: game, match, round, team, tournament, map, since, until. Presets: outcome, economy, score. - kills (events): one row = one kill. Filters: game, match, round, tick_from, tick_to, player, side, tournament, map, since, until. Presets: basic, duels, context. - damage (events): one row = one hit. Filters: game, match, round, tick_from, tick_to, player, tournament, map, since, until. Presets: basic. - grenades (events): one row = one grenade detonation (phase start) or smoke/fire ending (phase end). Filters: game, match, round, tick_from, tick_to, player, tournament, map, since, until. - bomb (events): one row = one bomb event. Filters: game, match, round, tick_from, tick_to, player, tournament, map, since, until. - shots (events): one row = one bullet fired (games with has_ticks). Filters: game, match, round, tick_from, tick_to, player, side, tournament, map, since, until. Presets: aim, positions. - purchases (events): one row = one item bought (games with has_ticks). Filters: game, match, round, tick_from, tick_to, player, side, tournament, map, since, until. Presets: basic. - grenade_throws (events): one row = one grenade thrown, with the thrower's position (games with has_ticks). Detonations are in grenades. Filters: game, match, round, tick_from, tick_to, player, side, tournament, map, since, until. - player_state (state): one row = one player at one state sample of a live round (per game; needs the game filter). Filters: game, round, tick_from, tick_to, player, side. Presets: positioning, combat, economy, movement, bomb. - team_state (state): one row = both teams at one moment: every event (kill, plant, round end) plus a 1 Hz heartbeat (per game; needs the game filter). Filters: game, round, tick_from, tick_to. Presets: round_context, economy, labels, win_prob. - player_round (stats): one row = one player in one round. Filters: game, match, round, player, team, side, tournament, map, since, until. Presets: combat, economy, utility. - player_game (stats): one row = one player in one game. Filters: game, match, player, team, tournament, map, since, until. Presets: summary, opening. ## MCP server Endpoint: https://msc-pc.tail825822.ts.net/mcp (streamable HTTP, header `Authorization: Bearer `). Tools: list_datasets, describe_dataset, query_dataset. Claude Code: `claude mcp add --transport http cs2data https://msc-pc.tail825822.ts.net/mcp --header "Authorization: Bearer "` ## Docs - [Developer docs](https://cs2-data-api.mintlify.site): quickstart, concepts, guides, API reference - [Docs as one file for LLMs](https://cs2-data-api.mintlify.site/llms-full.txt) - [OpenAPI spec](https://msc-pc.tail825822.ts.net/v1/openapi.json) - [Pricing](https://cs2-data-api.vercel.app/pricing) - [How this API compares to PandaScore, GRID and Sportradar](https://cs2-data-api.vercel.app/blog/cs2-data-api-comparison)