Steam
User
Get Steam user profile data including display name, avatar, online status, and account details.
Endpoint
This endpoint returns detailed profile information for a Steam user via the official Steam API. It provides summary data including the user's display name, avatar, online status, and account metadata.
GET /v2/steam/users/{steamid}
Required parameters
steamid
string
The Steam ID of the user whose profile you want to fetch. Accepts various Steam ID formats.
Authentication
Include your API key as the x-api-key request header.
x-api-key: YourSecretAPIKey
Response fields
| Field | Type | Description |
|---|---|---|
steamID | string | The user's SteamID64. |
avatar | object | Avatar image URLs and hash. See fields below. |
avatar.small | string | URL to the small avatar image (32x32). |
avatar.medium | string | URL to the medium avatar image (64x64). |
avatar.large | string | URL to the large avatar image (184x184). |
avatar.hash | string | Hash used to construct avatar URLs. |
url | string | Full URL to the user's Steam profile. |
visible | boolean | Whether the profile is publicly visible. |
personaState | number | Online status (0=Offline, 1=Online, 2=Busy, 3=Away, 4=Snooze, 5=Looking to trade, 6=Looking to play). |
personaStateFlags | number | Additional persona state flags. |
allowsComments | boolean | Whether comments are allowed on the profile. |
nickname | string | The user's display name. |
lastLogOffTimestamp | number | Unix timestamp of the user's last logoff. |
createdTimestamp | number | Unix timestamp of when the account was created. |
primaryGroupID | string | SteamID64 of the user's primary group. |
countryCode | string | ISO country code of the user's location. |
Response example
Example output for this endpoint.
response.json
{
"success": true,
"result": {
"steamID": "76561198038526790",
"avatar": {
"small": "https://avatars.steamstatic.com/8fc8d5da91fee98bd9d419f89fd508d66945c8f7.jpg",
"medium": "https://avatars.steamstatic.com/8fc8d5da91fee98bd9d419f89fd508d66945c8f7_medium.jpg",
"large": "https://avatars.steamstatic.com/8fc8d5da91fee98bd9d419f89fd508d66945c8f7_full.jpg",
"hash": "8fc8d5da91fee98bd9d419f89fd508d66945c8f7"
},
"url": "https://steamcommunity.com/id/pepzwee/",
"visible": true,
"personaState": 0,
"personaStateFlags": 0,
"allowsComments": true,
"nickname": "PEPZ",
"lastLogOffTimestamp": 1776545510,
"createdTimestamp": 1298382620,
"primaryGroupID": "103582791457598412",
"countryCode": "EE"
}
}