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.

damage

One row is one hit. Key: game_id, round_no, seq.

Presets
Columns (13; none ticked = all, key columns always included)
Reset
Request
curl -H "Authorization: Bearer $CS2API_KEY" \
  "https://api.granuleux.com/v1/data/damage"
Python (all pages, as a DataFrame)
import io, os, requests, pandas as pd

url = "https://api.granuleux.com/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_idround_noseqtickattacker_steamidvictim_steamidweaponhitgroupdmg_rawdmg_healthvictim_xvictim_yvictim_z
240000711125737656119837202321476561198134401925infernogeneric11825.172828.640111.369
240000711229447656119837202321476561198146207066infernogeneric33605.998627.482116.598
240000711329577656119837202321476561198146207066infernogeneric33604.224630.466116.453
240000711429677656119814620706676561198134401925glockhead10499999.810853.634113.296
240000711529707656119837202321476561198146207066infernogeneric33603.051660.492115.565
240000711629837656119837202321476561198146207066infernogeneric33607.413672.590115.380
240000711731057656119820098229076561198146207066hkp2000head13888807.903905.265105.192
240000711831307656119816778506976561198200982290glockchest1212829.429929.944103.619
240000711931437656119805961440276561198200982290glockhead10588852.838921.234103.630
2400007111032267656119816497056076561198167785069hkp2000chest1515762.209789.481117.177
2400007111132657656119816497056076561198167785069hkp2000stomach1919802.973803.736114.606
2400007111232797656119816778506976561198164970560glockstomach14141384.598749.148129.458
2400007111332887656119816497056076561198167785069hkp2000chest1515799.719794.311116.055
2400007111432997656119816497056076561198167785069hkp2000chest1515800.526802.851114.777
2400007111533107656119816497056076561198167785069hkp2000stomach1919800.468801.419114.990
2400007111633317656119816497056076561198167785069hkp2000right_arm1515800.335801.974114.910
2400007111733377656119805961440276561198164970560glockright_arm11111383.414729.507129.753
2400007111833477656119805961440276561198164970560glockchest11111382.400721.601129.844
2400007111933577656119805961440276561198164970560glockright_arm11111380.800710.748129.922
2400007112035557656119816497056076561198859428279hkp2000chest16161075.870171.205134.031