hltv-utility-api

AutoParser CodeAnalysis

Auto download and parse recent hltv demos to get pro utility records

Build

OS

Ubuntu 20.04LTS

Golang

sudo apt install golang-go

Use go version to check version: 1.13.8 linux/amd64

We need go version higher than go 1.11

Demoinfocs-golang

Install demoinfocs-golang

go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs

If your network is in CN, you may change Golang's proxy

go env -w GOPROXY=https://goproxy.cn,direct

API Format

Match Info Index

GET: /<mapname>

get recent matches information index.

Match Info Detail

GET: /<mapname>/<matchId>

Get match utility records' detail from matchId

etc.

/de_inferno/2348420

default tickrate=128

datapack format

Indexremarktype
0aim_pitchfloat32
1aim_yawfloat32
2air_timefloat32
3end_xfloat32
4end_yfloat32
5end_zfloat32
6is_duckbool
7is_jumpbool
8is_walkbool
9roundint
10round_throw_timefloat
11nicknamestring
12steamidstring
13teamnamestring
14throw_xfloat32
15throw_yfloat32
16throw_zfloat32
17utility_typestring
18velocity_xfloat32
19velocity_yfloat32
20velocity_zfloat32
21entity_xfloat32
22entity_yfloat32
23entity_zfloat32

utility type enum