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.
Fast
Typically answers in well under a second, and results are cached for an hour.
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
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, and CS2 and Dota 2 inventories with prices |
| DEVELOPER | $29.99/mo | 100,000 requests | 3,060 per minute | Everything: adds Faceit, Leetify, and CS2 and Dota 2 inventories with prices |
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].
Is it free?
Yes, 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, and CS2 and Dota 2 inventories with prices. 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 category, rarity, exterior, exact float and pattern seed, stickers, inspect link and live USD price.
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.