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
shots
One row is one bullet fired (games with has_ticks). Key: game_id, round_no, seq.
Request
curl -H "Authorization: Bearer $CS2API_KEY" \ "https://api.granuleux.com/v1/data/shots"
Python (all pages, as a DataFrame)
import io, os, requests, pandas as pd
url = "https://api.granuleux.com/v1/data/shots"
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":"shots"}Preview (first 20 rows, from the free sample match)
| game_id | round_no | seq | tick | t_round | steamid | side | weapon | x | y | z | pitch | yaw | inaccuracy | spread | recoil_index | bullets_left |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 24000071 | 1 | 1 | 2079 | 12.547 | 76561198164970560 | CT | usp_silencer | 1153.386 | 844.175 | 114.388 | 0.825 | -89.203 | 0.005 | 0.002 | 0 | 12 |
| 24000071 | 1 | 2 | 2096 | 12.813 | 76561198164970560 | CT | usp_silencer | 1153.386 | 844.175 | 114.388 | 0.688 | -89.176 | 0.014 | 0.002 | 0.649 | 11 |
| 24000071 | 1 | 3 | 2123 | 13.234 | 76561198164970560 | CT | usp_silencer | 1153.386 | 844.175 | 114.388 | 0.753 | -89.093 | 0.009 | 0.002 | 0.560 | 10 |
| 24000071 | 1 | 4 | 2147 | 13.609 | 76561198164970560 | CT | usp_silencer | 1153.386 | 844.175 | 114.388 | 0.767 | -89.093 | 0.010 | 0.002 | 0.658 | 9 |
| 24000071 | 1 | 5 | 2162 | 13.844 | 76561198164970560 | CT | usp_silencer | 1153.386 | 844.175 | 114.388 | 0.722 | -89.093 | 0.017 | 0.002 | 1.336 | 8 |
| 24000071 | 1 | 6 | 2176 | 14.063 | 76561198164970560 | CT | usp_silencer | 1153.386 | 844.175 | 114.388 | 0.673 | -89.066 | 0.020 | 0.002 | 2.023 | 7 |
| 24000071 | 1 | 7 | 2576 | 20.313 | 76561198146207066 | T | glock | 1124.284 | -14.144 | 138.792 | 0.594 | 83.495 | 0.016 | 0.002 | 0 | 20 |
| 24000071 | 1 | 8 | 2587 | 20.484 | 76561198146207066 | T | glock | 1086.609 | -0.679 | 134.031 | 1.214 | 77.624 | 0.025 | 0.002 | 1 | 19 |
| 24000071 | 1 | 9 | 2597 | 20.641 | 76561198146207066 | T | glock | 1057.663 | 19.717 | 130.031 | 1.178 | 69.434 | 0.031 | 0.002 | 2 | 18 |
| 24000071 | 1 | 10 | 2606 | 20.781 | 76561198146207066 | T | glock | 1038.214 | 46.051 | 130.901 | 0.375 | 63.924 | 0.038 | 0.002 | 3 | 17 |
| 24000071 | 1 | 11 | 2616 | 20.938 | 76561198146207066 | T | glock | 1021.786 | 79.632 | 130.901 | 0.309 | 56.495 | 0.040 | 0.002 | 4 | 16 |
| 24000071 | 1 | 12 | 2617 | 20.953 | 76561198059614402 | T | glock | 441.481 | 79.519 | 152.655 | 1.452 | 25.434 | 0.006 | 0.002 | 0 | 20 |
| 24000071 | 1 | 13 | 2625 | 21.078 | 76561198146207066 | T | glock | 1002.829 | 106.789 | 130.031 | 0.444 | 54.311 | 0.046 | 0.002 | 5 | 15 |
| 24000071 | 1 | 14 | 2631 | 21.172 | 76561198167785069 | T | glock | 485.863 | 209.031 | 152.655 | 2.673 | -0.717 | 0.015 | 0.002 | 0 | 20 |
| 24000071 | 1 | 15 | 2635 | 21.234 | 76561198146207066 | T | glock | 982.553 | 137.243 | 130.901 | 0.839 | 50.255 | 0.044 | 0.002 | 6 | 14 |
| 24000071 | 1 | 16 | 2640 | 21.313 | 76561198167785069 | T | glock | 495.732 | 210.876 | 152.655 | 2.721 | -0.700 | 0.019 | 0.002 | 1 | 19 |
| 24000071 | 1 | 17 | 2649 | 21.453 | 76561198059614402 | T | glock | 452.424 | 128.971 | 152.655 | 2.178 | 9.752 | 0.010 | 0.002 | 0.191 | 19 |
| 24000071 | 1 | 18 | 2650 | 21.469 | 76561198167785069 | T | glock | 501.145 | 221.068 | 152.655 | 3.129 | 0.027 | 0.029 | 0.002 | 2 | 18 |
| 24000071 | 1 | 19 | 2706 | 22.344 | 76561198372023214 | T | glock | 1100.361 | -229.097 | 120.106 | 0.352 | 117.721 | 0.010 | 0.002 | 0 | 20 |
| 24000071 | 1 | 20 | 2945 | 26.078 | 76561198146207066 | T | glock | 607.133 | 625.646 | 116.694 | 1.848 | 31.751 | 0.006 | 0.002 | 0 | 13 |