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.
Base URL & response envelope
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"REST endpoints
Select any endpoint to inspect its dedicated reference page with parameters, request snippets, response JSON, and error codes.
/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.
/api/steamid/{id}Converts a custom profile URL name or SteamID64 into every SteamID format, plus name and avatar.
/api/status/cs2Counter-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.
/api/inventory/{id}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.
/api/inventory/{id}/summaryTotals only: item count, tradable/StatTrak/Souvenir counts, total USD value, and counts per category and rarity.
/api/inventory/{id}/rawThe unparsed inventory payload (assets, descriptions, asset_properties) with every page combined, for when you want the original fields.
/api/dota2/inventory/{id}A player's Dota 2 inventory, parsed: hero, slot, type, rarity, quality, tradability and USD price for every item.
/api/dota2/inventory/{id}/summaryTotals only: item count, tradable count, total USD value, and counts per type, rarity and hero.
/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.
/api/assets/premier/{rating}.svgAn SVG of the CS2 Premier rating badge for any rating, in the right colour tier. Free to use, no API key needed.
/api/healthWhether the API and its dependencies are up. No API key needed.
Guides, assets & reference
Create a free API key and run your first lookup in under 60 seconds.
Header rules, 10-key shared quota behavior, and SteamID64 vs vanity inputs.
Search ranks, Premier badges, Faceit levels, medals, maps, and weapon SVGs.
Compare Free, Pro & Developer monthly caps, rate limits, and JSON error payloads.
