anupkrbid-dev Posted August 28, 2018 Report Posted August 28, 2018 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-botTF2 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. Quote
Dr. McKay Posted August 28, 2018 Report Posted August 28, 2018 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. Quote
Recommended Posts
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.