简体   繁体   中英

How to get wishlist data from other profile in Steam?

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?

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.

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;

g_rgWishlistData contains all the wishlist information.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM