Skip to main content

COUNTER-STRIKE 2
STATS API

Aggregate unified player data from Steam, Faceit, and Leetify with a single API call. Fast. Scalable. Developer-first.

stats & assets for the masses
Counter-Strike 2 Global Elite rank badge - CS2 API asset
Global Elite
Counter-Strike 2 Premier: 25,600 rank badge - CS2 API asset
Premier: 25,600
Counter-Strike 2 Wingman rank badge - CS2 API asset
Wingman
Counter-Strike 2 Premier: 31,200 rank badge - CS2 API asset
Premier: 31,200
+ ranks, badges, premiere stickers & more over API
WHY CS2.SPACE

EVERYTHING YOU NEED.
NOTHING YOU DON'T.

01

Steam Integration

Resolve vanity URLs to 64-bit SteamIDs. Full profiles, ban records, playtime, owned games, friend counts — all in one shot.

02

Faceit Elo

Live Matchmaking Elo, Skill Level, rank tier, region standing, and Faceit avatar — globally accurate.

03

Leetify Metrics

Aiming mechanics, recent match history, clutch rates, flash assists, opening duels, and overall performance scores.

04

Unified JSON

One request, one cleanly structured response combining all three platforms. No stitching required.

05

CS2 & Dota 2 Inventories

Every skin with exact float, pattern seed, stickers, working inspect link and a live USD price. Dota 2 items by hero, rarity and quality.

GET STARTED IN SECONDS

ONE ENDPOINT.
TOTAL INTEL.

Pass any Steam ID or vanity URL. Get back a comprehensive JSON document with stats from Steam, Faceit, and Leetify — aggregated, normalized, and ready to use.

# Request
curl \
-H "x-api-key: cs2_your_key" \
https://cs2.space/api/profile/76561197963540638
# Response (truncated)
{
"steamId": "76561197963540638",
"steam": { ... profile, bans, level },
"faceit": { ... elo, rank, skill_level },
"leetify": { ... rating, kd, clutches }
}
PLANS

START FREE.
SCALE WHEN READY.

FREE
$0/mo
  • ✓500 Monthly Calls
  • ✓Steam Data & Assets
  • ✓1 req / sec
7-DAY TRIAL
PRO
$9.99/mo

Unlock advanced CS2 metrics. Ideal for small Discord bots and community leads needing unified Steam, Faceit, and Leetify stats.

  • ✓10,000 Monthly Calls
  • ✓Faceit & Leetify Data
  • ✓CS2 & Dota 2 Inventories
  • ✓10 req / sec
MOST POPULAR
DEVELOPER
$29.99/mo

Scalable CS2 data for high-traffic apps and professional tools. Features full aggregation and high-performance rate limits.

  • ✓100,000+ Monthly Calls
  • ✓Faceit & Leetify Data
  • ✓CS2 & Dota 2 Inventories
  • ✓50+ req / sec
FREQUENTLY ASKED QUESTIONS

COUNTER-STRIKE 2 DEVELOPER FAQ

What is the CS2.SPACE API?+

A REST API for Counter-Strike 2 and Dota 2. Pass a SteamID64 or custom profile name and get the player's Steam profile and CS2 stats, Faceit Elo, Leetify ratings, or their parsed inventory with live prices, as clean JSON. Get a free key at cs2.space/dashboard and send it in the x-api-key header.

How do I get a player's Premier rating and Faceit Elo from their SteamID?+

Call GET https://cs2.space/api/profile/{steamId}. The response includes leetify.ranks.premier, per-map Competitive ranks, faceit.games.cs2.faceit_elo and skill_level, Leetify aim, positioning and utility ratings, and the player's medals with image URLs. Faceit and Leetify data need the PRO plan.

Is there a CS2 inventory API with prices?+

Yes. GET https://cs2.space/api/inventory/{steamId} returns every item with category, rarity, exterior, exact float, pattern seed, stickers, a working inspect link and a live USD market price, plus the inventory's total value. Available on the PRO and DEVELOPER plans.

Do you have a Dota 2 inventory API?+

Yes. GET https://cs2.space/api/dota2/inventory/{steamId} returns each item's hero, slot, type, rarity, quality and USD price. Filter with ?hero= or ?category= and sort with ?sort=price_desc. Available on the PRO and DEVELOPER plans.

Is there a free tier?+

Yes. The free plan includes 500 requests a month with Steam profile data, SteamID conversion and all rank images. PRO ($9.99 a month, 7-day free trial) adds Faceit, Leetify, and CS2 and Dota 2 inventories with prices, with 10,000 requests; DEVELOPER ($29.99) gives 100,000 requests.

How do I convert a Steam vanity URL to a SteamID64?+

GET https://cs2.space/api/steamid/{name} turns a custom profile name into SteamID64, Steam32, Steam2 and Steam3, and returns the player's name and avatar.

Can I use the rank and badge images in my app or Discord bot?+

Yes. Matchmaking ranks, Premier badges for any rating, Wingman ranks, Faceit levels, medals, maps and weapons are free to use under https://cs2.space/api/assets/ with no API key. Browse them all in the docs.

Which languages work with the API?+

Anything that can make an HTTP request: JavaScript, Python, Go, Rust, PHP, Java, C# and more. There's no SDK to install. You can also generate a typed client from https://cs2.space/openapi.json.

How do I use this API with an AI coding assistant?+

Point it at https://cs2.space/llms.txt, a plain-text reference of every endpoint with real example responses, or at the OpenAPI spec at https://cs2.space/openapi.json.