User B, which has the same default settings
I just checked their profile, games are not public
Comment has been collapsed.
I get an empty response for the first user, so maybe it's because they are on your friendlist ?
Comment has been collapsed.
I don't think having those users as friends will change anything, since the API key doesn't use your account to access data, atleast not that I'd ever heard of that.
If this however is the case, please let me know in a response :)
Comment has been collapsed.
I wouldn't have thought either but since they're bound to your Steam account it's not impossible.
I just tried with an account on my friend list with a friends-only profile (not just game details, fully friend-only) and I could get a response with the game details.
Here's the ID if you want to try : 76561198071371771
Comment has been collapsed.
Well, unfortunatelly this is the case.
The API key is bound to my account, and that guy had profile set to friends only.
I though that when having the profile to friends was something that didn't affect when you are specifically doing a login with steam. But the test proved that when i deleted that dude from my friends list, i received an empty response as well.
Comment has been collapsed.
This is really interesting, though it should be an optional behaviour. I'd love to have a parameter that lets me see every user completely neutral, as if we were no friends. I guess right now I can get that result by creating an API key on a Steam account that doesn't have any friends.
Comment has been collapsed.
exactly.
Also, big websites that scrap a lot of data should have multiple api keys.
SG for example, syncs the accounts of every user every night, i don't know how they do it , but one api key accepts 50 calls every five minutes i think.
My site is not that big yet though :P
Comment has been collapsed.
It's 100,000 requests per day actually, though they can approve more requests (but I guess those are limited to partnered game developers and such). You could use multiple API keys and a rotating proxy to perform such a high number of requests.
Comment has been collapsed.
You can use the GetPlayerSummaries
endpoint, this returns the parameter communityvisibilitystate
. It will be 3
when it's a public profile. You can get the summaries for up to 100 Steam users with one call, providing less overhead.
https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerSummaries_.28v0002.29
When you find the profile is public, you can call GetOwnedGames
. As you found out, when the game details are private, you get an empty response. When it's public, but the total playtimes are private, the total_playtime
for all games will be set to 0.
Ideally Steam should provide this library status in the GetPlayerSummaries
API call result, but they don't sadly..
Comment has been collapsed.
11 Comments - Last post 1 hour ago by Dunther
15 Comments - Last post 1 hour ago by UltimateArck
3 Comments - Last post 2 hours ago by Lugum
10 Comments - Last post 2 hours ago by DeliberateTaco
36 Comments - Last post 3 hours ago by Leon30670
3 Comments - Last post 3 hours ago by CasualGamerMe
297 Comments - Last post 3 hours ago by SerenaM
124 Comments - Last post 10 minutes ago by neomysto
8,622 Comments - Last post 14 minutes ago by steveywonder75
35 Comments - Last post 1 hour ago by Grogglz
1,566 Comments - Last post 1 hour ago by ExcelElmira
16,370 Comments - Last post 2 hours ago by MaxiBoi1357
147 Comments - Last post 2 hours ago by olehsamoilenko
4 Comments - Last post 2 hours ago by RePlayBe
Hello,
I don't know if steamgifts is the best place to talk this. But I have already tried in the steam forums and reddit without very success , and sometimes I have found posts in SG (by google) talking about Steam APIs and such.
I'm having issues getting ownedgames for some users.
I know about the last changes in privacy settings, but looks like there are some inconsistencies with it.
For example, user A, which has settings by default (public profile, with private library), when i perform the getownedgames api i can read them. Example:
http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=xxxxx&steamid=76561198058681068&include_played_free_games=1&include_appinfo=1&format=json
User B, which has the same default settings (you can check in their profile if you take the steamid, returns an empty object:
http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=xxxxxx&steamid=76561198056800313&include_played_free_games=1&include_appinfo=1&format=json
Any ideas in what can this be?
I have tried to get privacy status from user data and i'm out of ideas.
Thanks
Comment has been collapsed.