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?

Paul K.
  • 79
  • 1
  • 11

4 Answers4

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/

472084
  • 17,666
  • 10
  • 63
  • 81
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.

Nikita
  • 41
  • 4
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;
Yash Lotan
  • 378
  • 1
  • 5
  • 21
  • 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. – Paul K. Jul 22 '18 at 18:06
  • This method works for any steam id given the url you are fetching from curl is `'https://store.steampowered.com/wishlist/profiles/'.$steam64id` – Yash Lotan Jul 24 '18 at 03:20
0

g_rgWishlistData contains all the wishlist information.

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

loxx
  • 119
  • 4