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
damage
One row is one hit. Key: game_id, round_no, seq.
Request
curl -H "Authorization: Bearer $CS2API_KEY" \ "https://msc-pc.tail825822.ts.net/v1/data/damage"
Python (all pages, as a DataFrame)
import io, os, requests, pandas as pd
url = "https://msc-pc.tail825822.ts.net/v1/data/damage"
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":"damage"}Preview (first 20 rows, from the free sample match)
| game_id | round_no | seq | tick | attacker_steamid | victim_steamid | weapon | hitgroup | dmg_raw | dmg_health | victim_x | victim_y | victim_z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 24000071 | 1 | 1 | 2573 | 76561198372023214 | 76561198134401925 | inferno | generic | 1 | 1 | 825.172 | 828.640 | 111.369 |
| 24000071 | 1 | 2 | 2944 | 76561198372023214 | 76561198146207066 | inferno | generic | 3 | 3 | 605.998 | 627.482 | 116.598 |
| 24000071 | 1 | 3 | 2957 | 76561198372023214 | 76561198146207066 | inferno | generic | 3 | 3 | 604.224 | 630.466 | 116.453 |
| 24000071 | 1 | 4 | 2967 | 76561198146207066 | 76561198134401925 | glock | head | 104 | 99 | 999.810 | 853.634 | 113.296 |
| 24000071 | 1 | 5 | 2970 | 76561198372023214 | 76561198146207066 | inferno | generic | 3 | 3 | 603.051 | 660.492 | 115.565 |
| 24000071 | 1 | 6 | 2983 | 76561198372023214 | 76561198146207066 | inferno | generic | 3 | 3 | 607.413 | 672.590 | 115.380 |
| 24000071 | 1 | 7 | 3105 | 76561198200982290 | 76561198146207066 | hkp2000 | head | 138 | 88 | 807.903 | 905.265 | 105.192 |
| 24000071 | 1 | 8 | 3130 | 76561198167785069 | 76561198200982290 | glock | chest | 12 | 12 | 829.429 | 929.944 | 103.619 |
| 24000071 | 1 | 9 | 3143 | 76561198059614402 | 76561198200982290 | glock | head | 105 | 88 | 852.838 | 921.234 | 103.630 |
| 24000071 | 1 | 10 | 3226 | 76561198164970560 | 76561198167785069 | hkp2000 | chest | 15 | 15 | 762.209 | 789.481 | 117.177 |
| 24000071 | 1 | 11 | 3265 | 76561198164970560 | 76561198167785069 | hkp2000 | stomach | 19 | 19 | 802.973 | 803.736 | 114.606 |
| 24000071 | 1 | 12 | 3279 | 76561198167785069 | 76561198164970560 | glock | stomach | 14 | 14 | 1384.598 | 749.148 | 129.458 |
| 24000071 | 1 | 13 | 3288 | 76561198164970560 | 76561198167785069 | hkp2000 | chest | 15 | 15 | 799.719 | 794.311 | 116.055 |
| 24000071 | 1 | 14 | 3299 | 76561198164970560 | 76561198167785069 | hkp2000 | chest | 15 | 15 | 800.526 | 802.851 | 114.777 |
| 24000071 | 1 | 15 | 3310 | 76561198164970560 | 76561198167785069 | hkp2000 | stomach | 19 | 19 | 800.468 | 801.419 | 114.990 |
| 24000071 | 1 | 16 | 3331 | 76561198164970560 | 76561198167785069 | hkp2000 | right_arm | 15 | 15 | 800.335 | 801.974 | 114.910 |
| 24000071 | 1 | 17 | 3337 | 76561198059614402 | 76561198164970560 | glock | right_arm | 11 | 11 | 1383.414 | 729.507 | 129.753 |
| 24000071 | 1 | 18 | 3347 | 76561198059614402 | 76561198164970560 | glock | chest | 11 | 11 | 1382.400 | 721.601 | 129.844 |
| 24000071 | 1 | 19 | 3357 | 76561198059614402 | 76561198164970560 | glock | right_arm | 11 | 11 | 1380.800 | 710.748 | 129.922 |
| 24000071 | 1 | 20 | 3555 | 76561198164970560 | 76561198859428279 | hkp2000 | chest | 16 | 16 | 1075.870 | 171.205 | 134.031 |