CS2.SPACEDocumentationAPI
HomeDASHBOARD →

CS2.SPACE Docs

Start building with Counter-Strike 2 and Dota 2 player data. Explore our quick start, REST endpoints, 932+ free rank assets, and AI-ready specs.

$curl -H "x-api-key: YOUR_KEY" "https://cs2.space/api/profile/ChetCS"
QUICKSTARTS

Getting started

Jump right into unified player profiles, live skin valuations, or free vector assets.

POPULAR DESTINATIONS
Base URL: https://cs2.space

HTTP API Overview

Everything about Counter-Strike 2 and Dota 2 players over clean REST endpoints: unified profiles, parsed inventories with live skin prices, and free static & dynamic assets.

OpenAPI 3.1 llms.txt

All API routes are served from https://cs2.space over HTTPS. Protected endpoints authenticate via an x-api-key HTTP header, return UTF-8 application/json, and report errors using standard HTTP status codes. Assets under /api/assets/* require no key and return image/svg+xml, image/png, or application/json (for manifest.json and cs2_badges.json).

curl -H "x-api-key: YOUR_KEY" "https://cs2.space/api/profile/ChetCS"

Select any endpoint to inspect its dedicated reference page with parameters, request snippets, response JSON, and error codes.

GET/api/profile/{id}
Player profile

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.

Open endpoint reference
GET/api/steamid/{id}
Resolve a SteamID

Converts a custom profile URL name or SteamID64 into every SteamID format, plus name and avatar.

Open endpoint reference
GET/api/status/cs2
CS2 server status

Counter-Strike 2's live status from Valve: players online, matchmaking (players searching, average search time, servers online), Steam services and the load and capacity of every datacenter.

Open endpoint reference
GET/api/inventory/{id}
PRO
CS2 inventory

A player's Counter-Strike 2 inventory, parsed: category, rarity, exterior, exact float, pattern seed and paint index, Doppler phase, StatTrak kill count, stickers with wear (scrapes) and placement, charms with pattern, name tag, trade lock, working inspect link and USD price with current listings and recent sales for every item.

Open endpoint reference
GET/api/inventory/{id}/summary
PRO
CS2 inventory summary

Totals only: item count, tradable/StatTrak/Souvenir counts, total USD value, and counts per category and rarity.

Open endpoint reference
GET/api/inventory/{id}/raw
PRO
CS2 inventory (raw Steam data)

The unparsed inventory payload (assets, descriptions, asset_properties) with every page combined, for when you want the original fields.

Open endpoint reference
GET/api/dota2/inventory/{id}
PRO
Dota 2 inventory

A player's Dota 2 inventory, parsed: hero, slot, type, rarity, quality, tradability and USD price for every item.

Open endpoint reference
GET/api/dota2/inventory/{id}/summary
PRO
Dota 2 inventory summary

Totals only: item count, tradable count, total USD value, and counts per type, rarity and hero.

Open endpoint reference
GET/api/steam-level/{level}.{format}
PRO
Steam level badge (HD)

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.

Open endpoint reference
GET/api/assets/premier/{rating}.svg
PUBLIC
Premier rating badge

An SVG of the CS2 Premier rating badge for any rating, in the right colour tier. Free to use, no API key needed.

Open endpoint reference
GET/api/health
PUBLIC
API status

Whether the API and its dependencies are up. No API key needed.

Open endpoint reference
Was this page helpful?

Ready to build?

GET YOUR FREE KEY NOW →