A minimal Express-based HTTP API written in typescript for querying game servers using Gamedig.
GET /query/:type?host=<ip_or_domain>&raw=true
type– Gamedig server type (e.g.minecraft,cs2)host– Server IP or domainraw=true– Include Gamedig's raw data (otherwise removed)
/query/minecraft?host=mc.hypixel.net&raw=true
Returns JSON error messages such as:
host_type_missinghost_unreachablequery_failed
npm install
npm start