GET /v1/games/{game}/states returns one row per player per sample, sampled every 32 ticks from freeze end to
round end, plus the round end tick. It costs 5 units.
Rows are ordered by
tick, then steamid. A game without player state (has_state: false) returns 404.
Columns
Positions are in Hammer world units of the map. Angles are in degrees.
Example
inventory: M9 Bayonet|Smoke Grenade|USP-S. Split on |.
flash is not a countdown. In the data it holds a constant value (for example 1.85) for the whole time it is
non-zero, then drops to 0; it does not decrease sample by sample. Treat flash > 0 as “currently flashed” and the
value as the total length of that flash. Its exact reset behaviour (for example on death) has not been verified.Things to know
- Dead players keep appearing with
alive: falseandhp: 0. Ignore their other columns. - Coaches can appear: they occupy a team slot but are never alive. Drop any player who is never
alivein the round, or keep only players in the game’sroster(GET /v1/games/{game}). - Missing values are filled:
hp,armor,clip,ammo,cashandequipare 0, and the booleans arefalse, when the game did not record them. Older games may not carryclip. weaponandinventoryuse display names (AK-47), whileweaponin kills and damage uses engine names (ak47).spottedandspotted_byare the game’s own approximate visibility flags, not a computed line of sight.
Every tick
The same signals, plus key presses (FORWARD, FIRE, JUMP, …), 3D velocity, duck_amount, zoom_lvl,
shots_fired, flash_max_alpha, in_buy_zone and per-player running totals, are in the ticks parquet file at every
tick. See Files.