CS2 player stats API
CS2.SPACE's GET /api/profile/{id} returns a Counter-Strike 2 player's Steam profile, bans, level, lifetime CS2 stats, commendations, medals, Faceit Elo and skill level, and Leetify ratings in one JSON response. Pass a SteamID64 or custom profile name and your API key in the x-api-key header.
One request, one normalized JSON document: everything a bot, overlay or lookup site needs to show a player.
What you get
Steam & HD Level Badges
Profile, VAC and game bans, Steam level, owned games and playtime, friends, friend code, previous Steam names with dates, and Steam's lifetime CS2 stats — plus GET /api/steam-level/{level}.svg or .png for crisp level badges up to level 6199 (PRO+).
Game Coordinator
Commendations (friendly, teacher, leader), CS2 profile rank and XP, and the player's displayed medals and coins with image URLs.
Faceit
Faceit Elo, skill level 1 to 10, region, nickname and profile link, plus lifetime and per-map Faceit stats (K/D, ADR, win rate, entry and clutch rates), Faceit ban history and the last 10 Faceit matches. PRO and DEVELOPER plans.
Leetify
Leetify rating, aim, positioning, utility, clutch and opening scores, Premier and Wingman ranks, recent matches with their mode, platform bans, and Leetify profile avatar. For players not signed up to Leetify: peak ranks, K/D, KAST, a rating breakdown (opening duels, clutches, trades, retakes) and percentile stats. PRO and DEVELOPER plans.
Example
curl -H "x-api-key: YOUR_KEY" "https://cs2.space/api/profile/ChetCS"const res = await fetch("https://cs2.space/api/profile/ChetCS", {
headers: { "x-api-key": process.env.CS2_SPACE_API_KEY },
});
const data = await res.json();import os, requests
data = requests.get(
"https://cs2.space/api/profile/ChetCS",
headers={"x-api-key": os.environ["CS2_SPACE_API_KEY"]},
).json(){
"steamId": "76561197963540638",
"steam": {
"player": {
"steamid": "76561197963540638",
"personaname": "Chet",
"profileurl": "https://steamcommunity.com/id/ChetCS/",
"avatarfull": "https://avatars.steamstatic.com/7eff590c73206f7f0bb6bfbbf9fd3f3e46c95826_full.jpg",
"timecreated": 1072291152,
"communityvisibilitystate": 3
},
"bans": {
"SteamId": "76561197963540638",
"CommunityBanned": false,
"VACBanned": false,
"NumberOfVACBans": 0,
"DaysSinceLastBan": 0,
"NumberOfGameBans": 0,
"EconomyBan": "none"
},
"level": 70,
"games": [
{
"appid": 10,
"playtime_forever": 45104
}
],
"stats": [
{
"name": "total_kills",
"value": 99648
},
{
"name": "total_deaths",
"value": 81581
},
{
"name": "total_time_played",
"value": 5582556
}
],
"friends": [
{
"steamid": "76561190000000000",
"relationship": "friend",
"friend_since": 1550022592
}
],
"friendCode": "AYR6T-HGDA",
"gc": {
"commendations": {
"friendly": 118,
"teacher": 82,
"leader": 80
},
"playerLevel": 18,
"playerCurXp": 327683388,
"badges": [
{
"name": "Premier Season Four Medal",
"image": "/badges/badge_premier_season_four_medal_125_wins_15_000_19_999_cs_rating_.png",
"rarity": "Extraordinary",
"imageUrl": "https://cs2.space/api/assets/badges/badge_premier_season_four_medal_125_wins_15_000_19_999_cs_rating_.png"
}
],
"featuredBadge": {
"name": "Premier Season Four Medal",
"image": "/badges/badge_premier_season_four_medal_125_wins_15_000_19_999_cs_rating_.png",
"rarity": "Extraordinary",
"imageUrl": "https://cs2.space/api/assets/badges/badge_premier_season_four_medal_125_wins_15_000_19_999_cs_rating_.png"
}
},
"coinsAndPins": [
{
"name": "Premier Season Four Medal",
"image": "https://community.cloudflare.steamstatic.com/economy/image/i0CoZ81Ui0m-9KwlBY1L_18myuGuq1wfhWSaZgMttyVfPaERSR0Wqmu7LAocGJWk3ka5VeTr0M-gJnSZ9hll5oL541z1fg70n4Xv8x0P0PGhYapSdKXdWzLGkOt15-QxHi_ql0ly5DmHnN-hJC2RPVJxWcB4QbZY4Riwk4HjNfSiuVKLPsh8JA"
}
],
"inventory": {
"summary": {
"totalCount": 505,
"tradableCount": 473,
"totalValue": 1530.62,
"totalValueFormatted": "$1,530.62"
},
"pagination": {
"total": 505,
"limit": 200,
"offset": 0,
"hasMore": true
}
},
"nameHistory": [
{
"name": "Chet",
"changed": "Aug 18 @ 11:15pm"
}
]
},
"faceit": {
"player_id": "3699c7a1-7ee1-4c2d-bcca-49fdb2071a4e",
"nickname": "aimbotthot1",
"country": "us",
"faceit_url": "https://www.faceit.com/{lang}/players/aimbotthot1",
"games": {
"cs2": {
"region": "NA",
"skill_level": 4,
"faceit_elo": 1018,
"game_player_id": "76561197963540638"
}
},
"bans": [],
"recent_matches": [
{
"match_id": "1-5b213f31-17a8-40ec-8e24-62d90a58808e",
"finished_at": "2026-06-24T01:33:51.000Z",
"competition": "North America 5V5 Queue",
"competition_type": "matchmaking",
"game_mode": "5v5",
"region": "NA",
"outcome": "loss",
"score": [
6,
13
],
"faceit_url": "https://www.faceit.com/en/cs2/room/1-5b213f31-17a8-40ec-8e24-62d90a58808e"
}
],
"stats": {
"lifetime": {
"Wins": "1",
"Matches": "5",
"Total 1v1 Count": "0",
"Utility Damage Success Rate": "13.69",
"Enemies Flashed per Round": "0.28",
"Recent Results": [
"1",
"0",
"0",
"0",
"0"
],
"Total 1v1 Wins": "0",
"Sniper Kill Rate": "0.21",
"Longest Win Streak": "1",
"1v1 Win Rate": "0",
"1v2 Win Rate": "0.25",
"Current Win Streak": "0",
"Flashes per Round": "0.4",
"Total Rounds with extended stats": "103",
"Win Rate %": "20",
"Total 1v2 Count": "4",
"Total Matches": "5",
"Entry Rate": "0.34",
"Total Sniper Kills": "22",
"Total Entry Wins": "15",
"K/D Ratio": "3.68",
"Total Enemies Flashed": "29",
"Utility Usage per Round": "0.16",
"Total 1v2 Wins": "1",
"Utility Damage per Round": "2.13",
"Utility Success Rate": "0.44",
"Total Utility Damage": "219",
"Total Utility Count": "16",
"Total Headshots %": "290",
"Average K/D Ratio": "0.74",
"ADR": "73.19",
"Total Entry Count": "35",
"Flash Success Rate": "0.46",
"Average Headshots %": "58",
"Total Utility Successes": "7",
"Entry Success Rate": "0.43",
"Total Kills with extended stats": "65",
"Total Flash Count": "41",
"Total Damage": "7539",
"Total Flash Successes": "19",
"Sniper Kill Rate per Round": "0.34"
},
"segments": [
{
"stats": {
"Headshots": "16",
"Penta Kills": "0",
"ADR": "79.17",
"Assists": "11",
"Utility Success Rate": "0.17",
"Total Entry Wins": "10",
"Total 1v1 Wins": "0",
"Average Assists": "5.5",
"Total 1v2 Wins": "1",
"Rounds": "47",
"Average Deaths": "19.5",
"Kills": "35",
"Deaths": "39",
"1v2 Win Rate": "0.5",
"Total Headshots %": "98",
"Total Enemies Flashed": "13",
"K/D Ratio": "1.84",
"1v1 Win Rate": "0",
"Total Entry Count": "19",
"Sniper Kill Rate per Round": "0.43",
"MVPs": "7",
"Entry Rate": "0.4",
"Average K/D Ratio": "0.92",
"Total 1v1 Count": "0",
"Utility Usage per Round": "0.13",
"Average Quadro Kills": "0",
"Average Kills": "17.5",
"Total 1v2 Count": "2",
"Average MVPs": "3.5",
"Flashes per Round": "0.57",
"Average Penta Kills": "0",
"K/R Ratio": "1.49",
"Matches": "2",
"Total Utility Successes": "1",
"Total Damage": "3721",
"Total Flash Successes": "10",
"Triple Kills": "3",
"Average Headshots %": "49",
"Total Rounds with extended stats": "47",
"Enemies Flashed per Round": "0.28",
"Total Kills with extended stats": "35",
"Quadro Kills": "0",
"Entry Success Rate": "0.53",
"Utility Damage Success Rate": "14",
"Utility Damage per Round": "1.79",
"Total Sniper Kills": "15",
"Flash Success Rate": "0.37",
"Total Utility Count": "6",
"Win Rate %": "50",
"Headshots per Match": "8",
"Average Triple Kills": "1.5",
"Sniper Kill Rate": "0.32",
"Wins": "1",
"Total Flash Count": "27",
"Total Utility Damage": "84",
"Average K/R Ratio": "0.74",
"Total Matches": "2"
},
"type": "Map",
"mode": "5v5",
"label": "Dust2",
"img_small": "https://assets.faceit-cdn.net/third_party/games/ce652bd4-0abb-4c90-9936-1133965ca38b/assets/votables/adf58ac6-b0f3-40e9-87ef-0af23fc60918_1695819116078.jpeg",
"img_regular": "https://distribution.faceit-cdn.net/images/4eafa800-b504-4dd2-afd0-90882c729140.jpeg"
}
]
}
},
"leetify": {
"name": "Chet",
"steam64_id": "76561197963540638",
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/59/590cec88b7cb47417e19c19058cb4f95b364f59d_full.jpg",
"first_match_date": "2020-08-01T22:09:58.000Z",
"total_matches": 2265,
"winrate": 0.3,
"rating": {
"aim": 48.4047,
"positioning": 52.3922,
"utility": 38.4005,
"clutch": 0.0672,
"opening": -0.0084,
"ct_leetify": -0.0103,
"t_leetify": -0.0054
},
"ranks": {
"leetify": -0.77,
"premier": 15960,
"faceit": null,
"faceit_elo": null,
"wingman": 7,
"renown": null,
"competitive": [
{
"map_name": "de_dust2",
"rank": 10
}
]
},
"stats": {
"accuracy_head": 26.7328,
"reaction_time_ms": 595.9576,
"preaim": 10.765,
"spray_accuracy": 24.8483
},
"recent_matches": [
{
"id": "ba2a8847-0c8c-4be7-97e2-69d9dd67e733",
"finished_at": "2026-09-30T21:10:47.000Z",
"data_source": "matchmaking",
"outcome": "win",
"map_name": "de_cache",
"score": [
13,
2
],
"leetify_rating": 0.0279,
"rank": 15960
}
]
},
"leetifyStatus": "fresh"
}Endpoints
GET /api/profile/{id}Everything about a player in one call: Steam profile, bans, level, owned games, CS2 lifetime stats, friends, friend code, previous Steam names, Game Coordinator data (commendations, profile rank, badges), CS2 inventory summary, Faceit (with lifetime and per-map stats, bans and recent matches) and Leetify.
GET /api/steamid/{id}Converts a custom profile URL name or SteamID64 into every SteamID format, plus name and avatar.
GET /api/steam-level/{level}.{format}Crisp Steam profile level badge for any level from 0 to 6199 in SVG or PNG. Pure vector artwork for levels 0–999 and 4× high-resolution 128×128 artwork for levels 1000–6199. PRO and DEVELOPER plans.
Built for
- Discord bots with a /rank or /stats command
- Team and scrim tools that compare players
- Stream overlays showing Premier rating or Faceit level
- Player lookup sites and smurf/ban checks (name history, Faceit bans, account age)
Plans
| Plan | Price | Requests / month | Rate limit | Data |
|---|---|---|---|---|
| FREE | Free | 500 requests | 60 per minute | Steam profile data, SteamID conversion and rank images |
| PRO | $9.99/mo (7-day trial) | 10,000 requests | 600 per minute | Everything: adds Faceit, Leetify, CS2 and Dota 2 inventories with prices, and HD Steam level badges (SVG & PNG) |
| DEVELOPER | $29.99/mo | 100,000 requests | 3,060 per minute | Everything: adds Faceit, Leetify, CS2 and Dota 2 inventories with prices, and HD Steam level badges (SVG & PNG) |
FAQ
Is there a free CS2 stats API?
Yes. The free plan includes 500 requests a month with Steam profile data, bans, level and CS2 stats, SteamID conversion and rank images. Faceit, Leetify and inventory data need the PRO plan ($9.99 a month, 7-day free trial).
Can I get a player's Faceit Elo and Premier rating from a SteamID?
Yes. GET /api/profile/{steamId} returns faceit.games.cs2.faceit_elo and skill_level, and leetify.ranks.premier, from just the SteamID64 or custom profile name.
Does it work with custom Steam profile URLs?
Yes. Every endpoint accepts either a SteamID64 (17 digits) or the custom name from steamcommunity.com/id/NAME.
Can I see a player's old Steam names and Faceit bans?
Yes. steam.nameHistory lists previous Steam names with when they changed, and faceit.bans lists the bans Faceit reports for the player. Name history works on every plan; Faceit data needs PRO.
Do I get Leetify data for players who never signed up to Leetify?
Yes, from their public Leetify page. leetify.extended then adds peak ranks, K/D, KAST, accuracy, a Leetify rating breakdown (opening duels, clutches, trades, retakes...), top stats with percentiles, grenades thrown, party sizes and their Faceit and Esplay accounts. A few values only Leetify's own API has (positioning, clutch and opening scores) are null for them.
How fresh is the data?
Profiles are cached for up to 3 hours. If a source fails temporarily, the incomplete result is only cached for 5 minutes so it is retried soon.
How much does it cost?
The free plan includes 500 requests a month for Steam profile data, SteamID conversion and rank images. PRO is $9.99 a month (7-day free trial) for 10,000 requests and adds Faceit, Leetify, CS2 and Dota 2 inventories with prices, and HD Steam level badges (SVG & PNG). DEVELOPER is $29.99 a month for 100,000 requests.
More from the API
Fetch any public Counter-Strike 2 inventory as clean JSON: every skin with exact float and pattern seed, Doppler phase, StatTrak kill count, sticker scrapes, charms, name tag, inspect link, live USD price and recent sales.
Dota 2 inventory API with prices →Fetch any public Dota 2 inventory as clean JSON: each item's hero, slot, type, rarity, quality, tradability and live USD price, with totals per hero and rarity.
SteamID converter API →Convert a Steam custom profile URL or SteamID64 to SteamID64, Steam32, Steam2 (STEAM_0:X:Y) and Steam3 ([U:1:X]) with one API call, plus name and avatar.
Building with an AI assistant? Give it https://cs2.space/llms.txt or the OpenAPI spec.