Skip to content

Guide

CS2 Discord bot API

Build a Counter-Strike 2 Discord bot with the GGScore API: finished match scores, upcoming fixtures, and player box scores. Free API key, X-API-Key auth, no HTML scraping.

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

Auth and free tier

  1. Create a free key (pricing).
  2. Store the key in your bot's secrets (never in the Discord client).
  3. Call https://ggscore.net/api/v2/matches?limit=5 with the X-API-Key header from your bot process.

Quickstart snippet

curl -sS 'https://ggscore.net/api/v2/matches?page=1&limit=5' \
  -H "X-API-Key: YOUR_API_KEY"

Related guides