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
3mo 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 →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
maxpreps.com API
Access high school sports data from MaxPreps. Search for schools, retrieve team rosters and schedules, look up athlete profiles, and browse national or state rankings across all sports.
vg.no API
Access VG.no's latest news, articles, sports scores, and TV guides through a single interface where you can browse the front page, search articles by topic, view category-specific content, and find related stories. Get real-time sports scores and television schedules alongside comprehensive news coverage from Norway's leading news outlet.
vegasinsider.com API
Retrieve MLB betting odds from major sportsbooks including bet365, FanDuel, and DraftKings, covering Moneyline, Total, and Runline markets for any supported date. Easily compare odds across books to identify the best available lines.
puntoticket.com API
Browse and search events happening in Chile with PuntoTicket, viewing featured shows, filtering by category, and checking detailed pricing and availability for concerts, theater, sports, and more. Find the perfect event by exploring all listings or discovering what's trending right now.
130point.com API
Search for sold trading cards across eBay, Goldin, Heritage Auctions, Pristine Auction, MySlabs, and Fanatics Collect to find historical prices, sale dates, and marketplace information all in one place. Get comprehensive sales data to research card values and track market trends across multiple platforms instantly.
wynncraft.com API
Access detailed Wynncraft game information to look up item metadata and search across the complete item database, retrieve player statistics and character inventories, and browse guild information and global search results. Use this data to compare gear, track player progress, analyze guild rosters, or build tools for the Wynncraft community.
whoscored.com API
Search for players and teams, then dive deep into their performance metrics, match statistics, and detailed passing data to analyze football games and player abilities. Get comprehensive insights on team performance, individual player stats, and play-by-play event information to power your football analysis and decision-making.