Steam

Games

Get a list of games owned by a Steam user including playtime statistics.

Endpoint

This endpoint returns a list of games owned by the specified user. The user's game library must be set to public for this endpoint to return data.

GET   /steam/profile/{ SteamID64 }/games?api_key={ YourSecretAPIKey }

Required parameters

SteamID64
string
The SteamID64 identifier of the user whose game library you want to fetch.
YourSecretAPIKey
string
A unique identifier that allows developers to access the Steam Web API.

Response fields

FieldTypeDescription
game_countnumberTotal number of games owned by the user
gamesarrayArray of game objects

Game object

FieldTypeDescription
appidnumberThe Steam application ID of the game
playtime_forevernumberTotal playtime in minutes
playtime_2weeksnumberPlaytime in the last 2 weeks in minutes (only present if played recently)

Response example

Example output for this endpoint. For brevity's sake, some games were omitted.

response.json
{
  "game_count": 590,
  "games": [
    {
      "appid": 10,
      "playtime_forever": 50504
    },
    {
      "appid": 730,
      "playtime_forever": 134068
    },
    {
      "appid": 570,
      "playtime_forever": 2708
    },
    {
      "appid": 252490,
      "playtime_forever": 13237
    },
    {
      "appid": 2444750,
      "playtime_2weeks": 15,
      "playtime_forever": 15
    }
  ]
}