# Get profile (/api-reference/steam/profiles/get-profile)

`GET /v1/profiles/{steamId}`

A Steam account: its name, country, level, games, playtime, friends and bans, as Steam gives them, each private part null. Costs 2 credits. Needs the Starter plan or above.

```json
{
  "servers": [
    {
      "url": "https://api.steambuff.app"
    }
  ],
  "paths": {
    "/v1/profiles/{steamId}": {
      "get": {
        "tags": [
          "Profiles"
        ],
        "operationId": "get-profile",
        "summary": "Get profile",
        "description": "A Steam account: its name, country, level, games, playtime, friends and bans, as Steam gives them, each private part null.",
        "x-usage": {
          "credits": 2,
          "per": "call",
          "plan": "starter",
          "planName": "Starter"
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "A SteamID64, a Steam Community profile URL or a custom URL name",
              "example": "76561198074762801"
            },
            "required": true,
            "description": "A SteamID64, a Steam Community profile URL or a custom URL name",
            "name": "steamId",
            "in": "path",
            "example": "{steamId}"
          }
        ],
        "responses": {
          "200": {
            "description": "The profile",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "X-Credits-Limit": {
                "schema": {
                  "type": "integer",
                  "description": "The plan's monthly credits"
                },
                "required": true,
                "description": "The plan's monthly credits"
              },
              "X-Credits-Remaining": {
                "schema": {
                  "type": "integer",
                  "description": "Credits left in the current monthly window"
                },
                "required": true,
                "description": "Credits left in the current monthly window"
              },
              "X-Credits-Reset": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds until the credits reset"
                },
                "required": true,
                "description": "Seconds until the credits reset"
              },
              "X-Credits-Cost": {
                "schema": {
                  "type": "integer",
                  "description": "Credits this request cost; 0 when it didn't succeed"
                },
                "required": true,
                "description": "Credits this request cost; 0 when it didn't succeed"
              }
            },
            "content": {
              "application/json": {
                "example": {
                  "steamId": "76561198074762801",
                  "personaName": "m0NESY",
                  "realName": "Ilya Osipov",
                  "avatar": "https://avatars.steamstatic.com/de04662675688b7738662b42279093b1a20ed303_full.jpg",
                  "profileUrl": "https://steamcommunity.com/id/m0NESY-/",
                  "isPublic": true,
                  "onlineState": "offline",
                  "countryCode": "RU",
                  "createdAt": "2012-11-01T20:04:53.000Z",
                  "steamLevel": 111,
                  "levelTop": 0.06,
                  "gameCount": 54,
                  "playtime": {
                    "totalMinutes": 412560,
                    "recentMinutes": 3120
                  },
                  "friendCount": 661,
                  "bans": {
                    "vacBans": 0,
                    "gameBans": 0,
                    "daysSinceLastBan": null,
                    "tradeBan": "none",
                    "communityBanned": false
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing, invalid or revoked",
            "content": {
              "application/json": {
                "examples": {
                  "API_KEY_MISSING": {
                    "summary": "No API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_MISSING",
                      "message": "Send your API key in the x-api-key header or as Authorization: Bearer <key>.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "API_KEY_INVALID": {
                    "summary": "An invalid or revoked API key",
                    "value": {
                      "error": true,
                      "code": "API_KEY_INVALID",
                      "message": "The API key is invalid or has been revoked.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The plan does not include this endpoint",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "PLAN_UPGRADE_REQUIRED",
                  "message": "The Free plan does not include the Profiles API, which starts at the Starter plan.",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "No Steam account has that id",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "NOT_FOUND",
                  "message": "No Steam account has that id.",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "A parameter is invalid; `details` lists each failure",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "VALIDATION_ERROR",
                  "message": "Request validation failed",
                  "details": [
                    {
                      "path": "steamId",
                      "message": "Too big: expected string to have <=200 characters"
                    }
                  ],
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests this minute, or this month's credits are used up",
            "headers": {
              "RateLimit-Policy": {
                "schema": {
                  "type": "string",
                  "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)",
                  "example": "\"minute\";q=60;w=60"
                },
                "required": true,
                "description": "The plan's requests per minute (IETF RateLimit-Policy: `q` requests in `w` seconds)"
              },
              "RateLimit": {
                "schema": {
                  "type": "string",
                  "description": "Requests left this minute (`r`) and seconds until it resets (`t`)",
                  "example": "\"minute\";r=59;t=42"
                },
                "required": true,
                "description": "Requests left this minute (`r`) and seconds until it resets (`t`)"
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "description": "Seconds to wait before retrying"
                },
                "required": true,
                "description": "Seconds to wait before retrying"
              }
            },
            "content": {
              "application/json": {
                "examples": {
                  "RATE_LIMITED": {
                    "summary": "Too many requests this minute",
                    "value": {
                      "error": true,
                      "code": "RATE_LIMITED",
                      "message": "The Free plan allows 10 requests per minute.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  },
                  "MONTHLY_QUOTA_EXCEEDED": {
                    "summary": "This month's credits are used up",
                    "value": {
                      "error": true,
                      "code": "MONTHLY_QUOTA_EXCEEDED",
                      "message": "The Free plan's 1,000 monthly credits are used up. They reset at 2026-12-01T00:00:00.000Z. A bigger plan has more: https://steambuff.app/api.",
                      "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Steam didn't answer, turned the read away (`STEAM_RATE_LIMITED`) or has no key set here",
            "content": {
              "application/json": {
                "example": {
                  "error": true,
                  "code": "STEAM_UNAVAILABLE",
                  "message": "Steam is unavailable right now (HTTP 502).",
                  "requestId": "3f2b8c1e-7a4d-4e9b-9c6f-1d2e3a4b5c6d"
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Profile": {
        "type": "object",
        "properties": {
          "steamId": {
            "type": "string",
            "description": "SteamID64",
            "example": "76561198074762801"
          },
          "personaName": {
            "type": "string",
            "description": "Its Steam name now",
            "example": "m0NESY"
          },
          "realName": {
            "type": [
              "string",
              "null"
            ],
            "description": "The real name it shows; null when unset or the profile is private"
          },
          "avatar": {
            "type": "string",
            "description": "Its full-size avatar"
          },
          "profileUrl": {
            "type": "string",
            "description": "Its Steam Community page"
          },
          "isPublic": {
            "type": "boolean",
            "description": "Whether the profile is public. A public one can still hide its inventory, its game details or its friends list"
          },
          "onlineState": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "online",
              "in-game",
              "offline",
              null
            ],
            "description": "As the profile says it, away and snooze being online; null unless public"
          },
          "countryCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO 3166-1 alpha-2, as the profile states it; null when unset or private",
            "example": "RU"
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the account was made; null when the profile is private"
          },
          "steamLevel": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Null when private"
          },
          "levelTop": {
            "type": [
              "number",
              "null"
            ],
            "description": "Where its level stands among Steam's accounts, percent to two places: 0.27 is the top 0.27%; null when private, or while Steam doesn't say",
            "example": 0.27
          },
          "gameCount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Games owned, counting the free ones it has played; null when game details are private"
          },
          "playtime": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "totalMinutes": {
                "type": "integer",
                "description": "Every game's, lifetime"
              },
              "recentMinutes": {
                "type": "integer",
                "description": "Every game's, the last two weeks"
              }
            },
            "required": [
              "totalMinutes",
              "recentMinutes"
            ],
            "description": "Null when game details or playtime are private"
          },
          "friendCount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Null when the friends list is private"
          },
          "bans": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Bans"
              },
              {
                "description": "There whatever the profile's privacy"
              }
            ]
          }
        },
        "required": [
          "steamId",
          "personaName",
          "realName",
          "avatar",
          "profileUrl",
          "isPublic",
          "onlineState",
          "countryCode",
          "createdAt",
          "steamLevel",
          "levelTop",
          "gameCount",
          "playtime",
          "friendCount",
          "bans"
        ]
      },
      "Bans": {
        "type": "object",
        "properties": {
          "vacBans": {
            "type": "integer",
            "description": "VAC bans on record"
          },
          "gameBans": {
            "type": "integer",
            "description": "Game bans on record"
          },
          "daysSinceLastBan": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Days since the latest VAC or game ban; null without one"
          },
          "tradeBan": {
            "type": "string",
            "enum": [
              "none",
              "probation",
              "banned"
            ],
            "description": "Steam's trade (economy) ban"
          },
          "communityBanned": {
            "type": "boolean",
            "description": "Banned from the Steam Community"
          }
        },
        "required": [
          "vacBans",
          "gameBans",
          "daysSinceLastBan",
          "tradeBan",
          "communityBanned"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "details": {},
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "code",
          "message"
        ]
      }
    }
  }
}
```