What a Discord bot needs from CS2 data
Most CS2 Discord bots post finished series scores, announce upcoming fixtures, or answer "who won" with a slash command. That means a stable JSON feed — not fragile HTML parsers that break when a scoreboard layout changes.
GGScore is a CS2 match data API for developers: REST, X-API-Key, Counter-Strike 2 only.
Suggested bot flows
- Post results — poll finished matches or one match by id and embed team names + series score.
- Schedule channel — upcoming matches filtered by
team_idorevent_id. - Player card command — player box scores (K/D/A, ADR, rating when ingested).
Auth and free tier
- Create a free key (pricing).
- Store the key in your bot's secrets (never in the Discord client).
- Call
https://ggscore.net/api/v2/matches?limit=5with theX-API-Keyheader from your bot process.