Requirements
- HTTPS only — Enforced by HSTS. No HTTP fallback.
- User-Agent required — All requests must include a descriptive header:
YourAppName/1.0 ([email protected]). Empty or generic defaults are blocked by the WAF. - Rate limited — Hitting the limit returns
429. Use exponential backoff. Persistent abuse results in a 48-hour IP block. - WAF active — Cloudflare Managed Ruleset, OWASP Core Ruleset, and API Shield schema validation run on all requests. Requests with missing or invalid parameters are blocked at the edge before reaching the origin. Always check
Content-Typebefore parsing — challenge pages return HTML, not JSON. - Schema validated — All endpoints are protected by Cloudflare API Shield. Required parameters are enforced at the edge — missing
steamIdor malformed payloads return error code1020before hitting the origin.
Endpoint
GET
/api/lookuphttps://rustbanned.net/api/lookup?steamId=STEAM_ID
Parameters
steamIdRequiredstringSteam ID64, full profile URL, or custom vanity URL
Code examples
curl "https://rustbanned.net/api/lookup?steamId=76561198012345678" \
-H "User-Agent: YourAppName/1.0 ([email protected])"Response
200Success
{
"steamId": "76561198012345678",
"profile": {
"personaname": "PlayerName",
"profileurl": "https://steamcommunity.com/profiles/76561198012345678",
"avatarfull": "https://avatars.steamstatic.com/...",
"timecreated": 1234567890
},
"bans": {
"CommunityBanned": false,
"VACBanned": true,
"NumberOfVACBans": 1,
"DaysSinceLastBan": 365,
"NumberOfGameBans": 0,
"EconomyBan": "none"
},
"rustHours": 1234.5,
"friendsPrivate": false
}Fields
| Field | Type |
|---|---|
steamId | string |
profile | object |
bans.VACBanned | boolean |
bans.NumberOfVACBans | number |
bans.NumberOfGameBans | number |
bans.DaysSinceLastBan | number |
bans.CommunityBanned | boolean |
bans.EconomyBan | string |
rustHours | number | null |
friendsPrivate | boolean |
Status codes
| 200 | Success |
| 400 | Missing or invalid steamId |
| 403 | Blocked — HTTPS, User-Agent, or IP ban |
| 404 | Steam profile not found |
| 429 | Rate limited — back off before retrying |
| 503 | Steam API unavailable |
| 1020 | Blocked by Cloudflare API Shield — missing or invalid parameters |
Incorrectly blocked?
Contact us with your IP, User-Agent, and the time of the failed request.