Discover/csstats.gg API
live

csstats.gg APIcsstats.gg

Access CS2 player statistics, match history, scoreboards, and leaderboards from csstats.gg. Search by Steam ID, name, or profile URL.

Endpoints
7
Updated
4mo ago
Try it
Steam ID (17-digit numeric), player name, or Steam profile URL
api.parse.bot/scraper/758b30c6-74c7-46ea-a4fb-2efd60740f7c/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/758b30c6-74c7-46ea-a4fb-2efd60740f7c/search_player?query=s1mple' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 7 totalclick to expand

Search for a player by Steam ID, name, or profile URL. Returns the resolved Steam ID and profile URL. Name-based queries resolve to the player's profile via the site's search form.

Input
ParamTypeDescription
queryrequiredstringSteam ID (17-digit numeric), player name, or Steam profile URL
Response
{
  "type": "object",
  "fields": {
    "players": "array of player objects with name, steam_id, profile_url (present when multiple results found)",
    "steam_id": "string - resolved 64-bit Steam ID",
    "profile_url": "string - full URL to the player's csstats.gg profile"
  },
  "sample": {
    "data": {
      "steam_id": "76561197978186923",
      "profile_url": "https://csstats.gg/player/76561197978186923"
    },
    "status": "success"
  }
}

About the csstats.gg API

The csstats.gg API exposes 7 endpoints covering Counter-Strike 2 player performance, match history, and leaderboard data. Use get_player_stats to retrieve K/D ratio, HLTV Rating, ADR, HS%, and Win Rate for any player identified by a 64-bit Steam ID, or call get_match_scoreboard to pull a full two-team player breakdown including kills, deaths, assists, and per-player ratings for a specific match.

Player Search and Statistics

Start with search_player to resolve a Steam ID, player name, or Steam profile URL into a confirmed steam_id and profile_url. When a name query matches multiple accounts, the response returns a players array with name, steam_id, and profile_url for each result. Once you have a steam_id, pass it to get_player_stats to retrieve the overview object — a key-value map of stat labels such as K/D, HLTV Rating, Win Rate, HS%, and ADR — alongside the player's display name.

Match History and Scoreboards

get_player_matches takes a steam_id and returns a chronological array of recent matches, each with a match_id, date, map, score, and individual performance fields: k (kills), d (deaths), a (assists), and rating. Those match_id values feed directly into get_match_scoreboard, which returns teams — two arrays of player objects, each with name, steam_id, k, d, a, and rating. This makes it straightforward to reconstruct a full match view from a single match ID.

Leaderboards and Social Data

get_leaderboard accepts an optional mode parameter (premier, wingman, or faceit) and returns ranked players with rank, name, steam_id, and elo. get_player_played_with retrieves co-play statistics for a given steam_id, with pagination via an offset integer. Finally, get_ban_stats requires no inputs and returns total_bans_30d — the total count of VAC and game bans issued across all players in the last 30 days, formatted with commas.

Common use cases
  • Track a CS2 player's K/D, ADR, and HLTV Rating over time using get_player_stats.
  • Build a match review tool that pulls full scoreboards via get_match_scoreboard for post-game analysis.
  • Monitor premier or wingman leaderboard rankings by polling get_leaderboard with different mode values.
  • Identify frequent teammates or opponents for a player using get_player_played_with with pagination.
  • Resolve player identities from community-submitted names or profile URLs with search_player.
  • Display rolling 30-day VAC and game ban totals on a CS2 community dashboard using get_ban_stats.
  • Correlate match performance (kills, deaths, rating) with win/loss outcomes from get_player_matches.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does csstats.gg offer an official developer API?+
csstats.gg does not publish an official public developer API or documented REST endpoints for external use.
What does get_leaderboard return, and how do I switch between game modes?+
get_leaderboard returns an array of player objects each containing rank, name, steam_id, and elo. The optional mode parameter accepts three values: premier, wingman, or faceit. Omitting the parameter returns the default leaderboard. There is no additional filtering by region or time window in the current endpoint.
Does get_player_matches support filtering by map or date range?+
Not currently. The endpoint returns the player's recent matches in chronological order with date, map, score, and per-player stats, but does not accept map or date filter parameters. You can fork this API on Parse and revise it to add filtering logic over the returned match array.
Is there an endpoint for per-weapon or per-map breakdown statistics?+
Not currently. The API covers overall stats via get_player_stats (K/D, HLTV Rating, ADR, HS%, Win Rate) and match-level data via get_player_matches and get_match_scoreboard, but does not expose weapon-specific or map-specific aggregates. You can fork this API on Parse and revise it to add an endpoint targeting that data.
What does get_player_played_with return, and how does pagination work?+
get_player_played_with returns a players array of co-play records for the given steam_id. The optional offset integer controls pagination through the result set — increment it to page through additional entries. The response shape of individual player objects within the array follows the same steam_id and name fields used elsewhere in the API.
Page content last updated . Spec covers 7 endpoints from csstats.gg.
Related APIs in SportsSee all →
csstats.org API
Track Counter-Strike 2 player performance with detailed statistics, match history, and leaderboard rankings from csstats.gg. Search players, view their profiles, analyze individual matches, check ban records, and see who they've played with.
csgostats.gg API
Track and analyze Counter-Strike 2 player performance with detailed statistics including weapon usage, match history, and head-to-head comparisons. Access global leaderboards, view recent matches, and discover which players you've competed against to benchmark your skills.
api-public-docs.cs-prod.leetify.com API
Access CS2 player statistics, match history, and individual game performance data from Leetify's competitive database. Look up player profiles by Steam64 ID or Leetify user ID and retrieve comprehensive match details including per-round metrics and performance breakdowns.
hltv.org API
Access Counter-Strike esports data from HLTV.org including match results, player and team statistics, team rankings, upcoming match schedules, tournament information, and fantasy league data.
tracker.gg API
Track Valorant player profiles, match histories, competitive rankings, and agent performance statistics from tracker.gg. Search leaderboards, analyze player segments, view daily game data, and access comprehensive reference information covering all Valorant-related data available on the platform.
steamcharts.com API
Track player counts and trending games on Steam, search for specific titles, and view historical statistics for individual games. Monitor which games are gaining popularity and get detailed player data to stay informed about the gaming landscape.
opendota.com API
Access detailed Dota 2 match statistics, player performance metrics, hero win rates, and professional tournament data to analyze gameplay trends and competitive performance. Search for specific players, explore custom data queries through SQL, and retrieve comprehensive match histories to improve your understanding of the game.
csgo.steamanalyst.com API
Track CS2 skin prices in real-time, search for specific skins, and analyze market trends with historical pricing data and top gainers. Compare marketplace listings across different weapons and collections to make informed trading decisions.