CS2.SPACEDocumentationAPI
HomeDASHBOARD →
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.

OpenAPI 3.1 llms.txt
HTTP ENDPOINT

Endpoint URI

GET/api/steam-level/{level}.{format}

Full example URL: https://cs2.space/api/steam-level/6100.png?size=128

levelINTEGERREQUIRED

Steam level, 0 to 6199 (values up to 9999 are accepted and clamp to the 6100 Crown tier).

formatSTRINGREQUIRED

Output format: svg for scalable web/app badges, or png for Discord bots and embeds.Values:svgpng

sizeINTEGER

Output width and height in pixels, 16 to 512. Defaults to 128.Default: 128

  • 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.
curl -H "x-api-key: YOUR_KEY" "https://cs2.space/api/steam-level/6100.png?size=128" -o badge.png
RESPONSE · 200 OK · IMAGE/SVG+XML OR IMAGE/PNG/api/steam-level/{level}.{svg|png}
Real API PNG samples (128×128)
Steam level 42 HD PNG badge
42.png
0–99 Circle
Steam level 150 HD PNG badge
150.png
100–999 Vector
Steam level 500 HD PNG badge
500.png
500 Conic
Steam level 1000 HD PNG badge
1000.png
1000+ 4× HD
Steam level 2500 HD PNG badge
2500.png
2500 Mandala
Steam level 6100 HD PNG badge
6100.png
6100 Crown
Interactive vector preview (levels 0–999)
150
32px
150
64px
150
128px
GET /api/steam-level/150.svg · GET /api/steam-level/150.png
Preview shows live vector tiers (0–999) and sample high-tier PNGs (1000–6100). Unlock all 6,200 levels (0–6199) in SVG & PNG on PRO or DEVELOPER plans.View PRO & DEVELOPER plans →
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 rating
401 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.

Was this page helpful?

Ready to build?

GET YOUR FREE KEY NOW →