Identity API \ Steam \ Read the games of an identity PHP SDK

Resource/URI - Common GET POST PUT DELETE
Identities /identities.json List all identities
Identity /identities/<identity_token>.json Read identity details Delete identity
Identity /identities/<identity_token>/link.json ReLink identity
Identity /identities/<identity_token>/synchronize.json Synchronize identity
Identity /identities/<identity_token>/contacts.json Read identity contacts
Resource/URI - Provider Specific GET POST PUT DELETE
Steam Games /identities/<identity_token>/steam/games.json List all Steam games
Facebook Posts /identities/<identity_token>/facebook/posts.json List all Facebook posts

Workflow

Request: the code to send to the API

Send a GET request to the resource /identities/<identity_token>/steam/games.json to retrieve the games of a Steam identity. The <identity_token> has to be replaced by the unique token of an existing identity.

This endpoint has been deprecated and might be removed in the future. Please use the Pull API instead.

Result: the code returned by the API

The API returns the list of games a player owns along with the corresponding playtime measured in minutes. Please note that not all information might be present if the player's Steam profile is not publicly visible. The results of this endpoint are cached and updated once per day.

Example Resultset

{
  "response": {
    "request": {
      "date": "Mon, 20 Mar 2017 09:59:10  0100",
      "resource": "/identities/5dd7336a-cb66-42dc-95da-1a6dade8f743/steam/games.json",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "cache": {
          "has_been_used": true,
          "date_last_update": "Mon, 20 Mar 2017 08:06:30  0100",
          "date_next_update": "Tue, 21 Mar 2017 08:06:30  0100"
        },
        "steam_games": {
          "pagination": {
            "current_page": 1,
            "total_pages": 1,
            "entries_per_page": 250,
            "total_entries": 7,
            "order": {
              "field": "id",
              "direction": "asc"
            }
          },
          "count": 7,
          "entries": [
            {
              "name": "Left 4 Dead 2 Beta",
              "provider_appid": 223530,
              "playtime_total": 0,
              "playtime_recently": 0
            },
            {
              "name": "Half-Life 2: Deathmatch",
              "provider_appid": 320,
              "thumbnail_url": "http://media.steampowered.com/steamcommunity/public/images/apps/320/795e85364189511f4990861b578084deef086cb1.jpg",
              "picture_url": "http://media.steampowered.com/steamcommunity/public/images/apps/320/6dd9f66771300f2252d411e50739a1ceae9e5b30.jpg",
              "playtime_total": 0,
              "playtime_recently": 0
            },
            {
              "name": "Half-Life 2: Lost Coast",
              "provider_appid": 340,
              "thumbnail_url": "http://media.steampowered.com/steamcommunity/public/images/apps/340/795e85364189511f4990861b578084deef086cb1.jpg",
              "picture_url": "http://media.steampowered.com/steamcommunity/public/images/apps/340/867cce5c4f37d5ed4aeffb57c60e220ddffe4134.jpg",
              "playtime_total": 0,
              "playtime_recently": 0
            },
            {
              "name": "Warhammer 40,000: Dawn of War - Game of the Year Edition",
              "provider_appid": 4570,
              "thumbnail_url": "http://media.steampowered.com/steamcommunity/public/images/apps/4570/a4c7a8cce43d797c275aaf601d6855b90ba87769.jpg",
              "picture_url": "http://media.steampowered.com/steamcommunity/public/images/apps/4570/2068980dca52521b069abc109f976d72ba0b1651.jpg",
              "playtime_total": 0,
              "playtime_recently": 0
            },
            {
              "name": "Warhammer 40,000: Dawn of War - Dark Crusade",
              "provider_appid": 4580,
              "thumbnail_url": "http://media.steampowered.com/steamcommunity/public/images/apps/4580/584fcb6284ffd2fcf378fb3c199a9275a0a01b2d.jpg",
              "picture_url": "http://media.steampowered.com/steamcommunity/public/images/apps/4580/ed04f5f4ca5bd374fa09da62f583a7dbbf1d8558.jpg",
              "playtime_total": 34,
              "playtime_recently": 0
            },
            {
              "name": "Warhammer 40,000: Dawn of War - Winter Assault",
              "provider_appid": 9310,
              "thumbnail_url": "http://media.steampowered.com/steamcommunity/public/images/apps/9310/60d48bf5f8a11fc4aeacb546a20cb40f537290bf.jpg",
              "picture_url": "http://media.steampowered.com/steamcommunity/public/images/apps/9310/88ca73c99d1a64b81a3306c690f0354a1643c1c1.jpg",
              "playtime_total": 0,
              "playtime_recently": 0
            },
            {
              "name": "S.T.A.L.K.E.R.: Shadow of Chernobyl",
              "provider_appid": 4500,
              "thumbnail_url": "http://media.steampowered.com/steamcommunity/public/images/apps/4500/c57f5fdde74464aed0a09c2e5dd41f8973cbee8d.jpg",
              "picture_url": "http://media.steampowered.com/steamcommunity/public/images/apps/4500/a4f810cb3cbfa8562493e6d9b4fa0afb9706aeb7.jpg",
              "playtime_total": 48,
              "playtime_recently": 0
            }
         ]
        }
      }
    }
  }
}

User Contributed Notes