Base URL: https://cs2.space
Steam level badge (HD)
GETx-api-key requiredPRO & DEVELOPER
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.
HTTP ENDPOINT
Endpoint URI
Full example URL: https://cs2.space/api/steam-level/6100.png?size=128
PARAMETERS
Path parameters
levelINTEGERREQUIREDSteam level, 0 to 6199 (values up to 9999 are accepted and clamp to the 6100 Crown tier).
formatSTRINGREQUIREDOutput format: svg for scalable web/app badges, or png for Discord bots and embeds.Values:svgpng
PARAMETERS
Query parameters
sizeINTEGEROutput width and height in pixels, 16 to 512. Defaults to 128.Default: 128
BEHAVIOR
Implementation notes
- Matches Steam's official shared_global.css ring colors (0–99) and all 61 level emblem tiers (100–6100 Crown).
- Levels 0–999 are rendered as pure scalable vectors; levels 1000–6199 use 4× high-resolution 128×128 sprite artwork with crisp vector typography.
- Use .png for Discord bots and embeds (Discord does not render SVGs), and .svg for websites and apps.
- Requires x-api-key on a PRO or DEVELOPER plan. Fetch from your backend or bot and cache responses rather than embedding your API key in client-side URLs.
USAGE
Example request
curl -H "x-api-key: YOUR_KEY" "https://cs2.space/api/steam-level/6100.png?size=128" -o badge.pngPAYLOAD
Live preview & examples
TROUBLESHOOTING
Status codes
400 Bad RequestInvalid parameter, e.g. a non-numeric Premier rating, an out-of-range Steam level (0–9999), or an invalid badge size (16–512).
Invalid rating401 UnauthorizedNo API key was sent.
{
"error": "API key required"
}403 ForbiddenInvalid API key, the player's inventory is private (code INVENTORY_PRIVATE), or the endpoint needs a PRO or DEVELOPER plan (code PLAN_UPGRADE_REQUIRED).
{
"error": "Steam level badges require a PRO or DEVELOPER plan.",
"code": "PLAN_UPGRADE_REQUIRED",
"upgradeUrl": "https://cs2.space/#pricing"
}429 Too Many RequestsRate limit or monthly quota exceeded, or Steam is rate limiting inventory requests (code STEAM_RATE_LIMIT). Retry later.
{
"error": "Monthly API quota exceeded",
"tier": "FREE",
"limit": 500,
"usage": 500,
"message": "Please upgrade your plan or wait for next month's reset."
}500 Internal Server ErrorSomething went wrong on our side.
{
"error": "Internal Server Error"
}See all error responses on the Errors reference page.





