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.
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 -H "x-api-key: YOUR_KEY" "https://cs2.space/api/steamid/ChetCS"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();import os, requests
data = requests.get(
"https://cs2.space/api/steamid/ChetCS",
headers={"x-api-key": os.environ["CS2_SPACE_API_KEY"]},
).json(){
"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
| 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
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
Get Counter-Strike 2 player stats with one REST call: Steam profile, bans, level and lifetime CS2 stats, Faceit Elo and skill level, Leetify ratings, Premier rank and medals. Free tier.
CS2 inventory API with floats and prices →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.
Building with an AI assistant? Give it https://cs2.space/llms.txt or the OpenAPI spec.