Reputation: 89
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?
Upvotes: 8
Views: 5602
Reputation: 17895
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/
Upvotes: 7
Reputation: 41
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.
Upvotes: 3
Reputation: 126
g_rgWishlistData
contains all the wishlist information.
browser console:
function getAppID(item, index) { return item.appid; }
g_rgWishlistData.map(getAppID).join(",");
Upvotes: 0
Reputation: 377
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;
Upvotes: 0