Jump to content
McKay Development

getOwenedApps Clarification


anupkrbid-dev

Recommended Posts

When I call this API in the browser 

http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=steam_key&steamid=my_steam_id_64&format=json

I get 
 

{
  "response": {
    "game_count": 2,
    "games": [
      {
        "appid": 304390,
        "playtime_2weeks": 20,
        "playtime_forever": 20
      },
      {
        "appid": 654310,
        "playtime_2weeks": 20,
        "playtime_forever": 20
      }
    ]
  }
}

Which is correct 
You can confirm by seeing my profile https://steamcommunity.com/id/auto-bot

TF2 doesn't show up as it is free I guess.

 

but when I call 

client.getOwnedApps();

I get an array of 207 appIDs out of which 204 are the ones that steam adds by default.

 

So what I wanted to ask was that Is there any way I can only get the appIDs of games that are present in my account.

Your help will be greatly appreciated.

Link to comment
Share on other sites

For the API and profile, Steam ignores apps in sub 0 unless they have playtime on record. If your account has played TF2, you can make it show up in the WebAPI by passing include_played_free_games=1.

 

I assume you're asking if there's a way to get only the AppIDs of games that are granted by a sub other than sub 0. You'll need to go through your licenses array, ignore sub 0, get product info for each package granted by a license, and see what AppIDs the package grants.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...