How to get wishlist data from other profile in Steam?
Asked Answered
F

4

8

Steam has launched new wishlist: https://store.steampowered.com/wishlist/id/customName or id

I found the next link to get some info about user which works only if you are logged in and returns only data for current profile: https://store.steampowered.com/dynamicstore/userdata/ - wishlist is empty if I'm not logged in. I can see wishlist of other players, using the first link, where uses wishlist.js shows games.

How to get wishlist data of user (from other profile, not myself) with and without sign in?

Forspent answered 17/7, 2018 at 23:17 Comment(1)
I have the same problem :(Lornalorne
I
7

You can get the data in JSON at:

https://store.steampowered.com/wishlist/profiles/{user_id}/wishlistdata/

or

https://store.steampowered.com/wishlist/id/{vanity_url}/wishlistdata/

Irishirishism answered 7/5, 2019 at 11:5 Comment(2)
This gives only a part if your list is too largeNeanderthal
You can add ?p=1 or ?p=2 ... etc to get the next page.Mena
C
3

As an addition to the answer of 472084: Some Steam users are shown using an ID rather than a profile number. For those users one can use the following query:

https://store.steampowered.com/wishlist/id/{user_id}/wishlistdata/

where {user_id} needs to be replaced with the actual ID.

Cacka answered 21/12, 2019 at 10:56 Comment(0)
L
0

You can do it using curl. Fetch the wishlist page using curl and apply preg_match_all() function on it to get an array of all appid of every app in a user's wishlist.

preg_match_all('/"appid":(\d*),/', $response, $gameids);
$gameids = $gameids[1];
print_r($gameids);die;
Lornalorne answered 22/7, 2018 at 10:59 Comment(2)
You understood the question wrong. There is no problem to get wishlist data from own profile when you are logged in. There is problem to get wishlist data of 3-rd party profile (friend, public) without and with sign in Steam.Forspent
This method works for any steam id given the url you are fetching from curl is 'https://store.steampowered.com/wishlist/profiles/'.$steam64idLornalorne
F
0

g_rgWishlistData contains all the wishlist information.

browser console: function getAppID(item, index) { return item.appid; } g_rgWishlistData.map(getAppID).join(",");

Freckle answered 22/12, 2018 at 15:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.