STEAMID API

SteamID converter API

CS2.SPACE's GET /api/steamid/{id} converts a Steam custom profile name (the NAME in steamcommunity.com/id/NAME) or a SteamID64 into SteamID64, Steam32 (account ID), Steam2 (STEAM_0:X:Y) and Steam3 ([U:1:X]), and returns the player's name, avatar and profile URL.

Useful whenever users paste a profile link or a vanity name and you need the numeric ID other APIs expect.

GET A FREE API KEY →FULL REFERENCE

What you get

Every format

steam64, steam32, steam2 and steam3 in one response.

Vanity names

Resolves custom profile names, so ChetCS becomes 76561197963540638.

Profile basics

Current display name, full-size avatar URL and profile link.

HD Steam Level Badges

Pair with GET /api/steam-level/{level}.svg or .png to render crisp Steam level badges (0–6199) in your app or Discord bot (PRO and DEVELOPER plans).

Example

CURL
curl -H "x-api-key: YOUR_KEY" "https://cs2.space/api/steamid/ChetCS"
JAVASCRIPT
const res = await fetch("https://cs2.space/api/steamid/ChetCS", {
  headers: { "x-api-key": process.env.CS2_SPACE_API_KEY },
});
const data = await res.json();
PYTHON
import os, requests

data = requests.get(
    "https://cs2.space/api/steamid/ChetCS",
    headers={"x-api-key": os.environ["CS2_SPACE_API_KEY"]},
).json()
RESPONSE (REAL, LONG ARRAYS SHORTENED)
{
  "steam32": 3274910,
  "steam64": "76561197963540638",
  "steam2": "STEAM_0:0:1637455",
  "steam3": "[U:1:3274910]",
  "profile_url": "https://steamcommunity.com/id/ChetCS/",
  "avatar": "https://avatars.steamstatic.com/7eff590c73206f7f0bb6bfbbf9fd3f3e46c95826_full.jpg",
  "name": "Chet"
}

Endpoints

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

  • Turning pasted profile links into SteamID64s
  • Linking Steam accounts in Discord bots
  • Converting between ID formats for game servers and admin tools

Plans

PlanPriceRequests / monthRate limitData
FREEFree500 requests60 per minuteSteam profile data, SteamID conversion and rank images
PRO$9.99/mo (7-day trial)10,000 requests600 per minuteEverything: adds Faceit, Leetify, CS2 and Dota 2 inventories with prices, and HD Steam level badges (SVG & PNG)
DEVELOPER$29.99/mo100,000 requests3,060 per minuteEverything: adds Faceit, Leetify, CS2 and Dota 2 inventories with prices, and HD Steam level badges (SVG & PNG)

FAQ

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

Call GET https://cs2.space/api/steamid/{name} with your API key. For steamcommunity.com/id/ChetCS, use ChetCS. The response includes steam64 plus the other formats.

What is the difference between SteamID64, Steam2 and Steam3?

They encode the same account. SteamID64 is the 17-digit number (7656119...). Steam32 is the account ID. Steam2 looks like STEAM_0:Y:Z where Y is the account ID's lowest bit and Z is the rest. Steam3 looks like [U:1:accountID].

Can I render Steam level badges via API too?

Yes. PRO and DEVELOPER plans include GET /api/steam-level/{level}.svg and .png for every Steam level from 0 to 6199.

Is it free?

Yes, SteamID conversion is included on the free plan (500 requests a month). 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

Building with an AI assistant? Give it https://cs2.space/llms.txt or the OpenAPI spec.