首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Steam API获取CS:GO inventory

Steam API获取CS:GO inventory
EN

Stack Overflow用户
提问于 2014-09-22 23:28:26
回答 1查看 28.2K关注 0票数 9

好的,我已经在互联网上到处找了,我发现当你想得到某人的steam清单时,你可以使用这个:

代码语言:javascript
运行
复制
http://api.steampowered.com/IEconItems_{appid}/GetPlayerItems/v0001/?key={apikey}&steamid={steamid}&format=json

但问题是,当我对CS:GO (appid:730)执行此操作时,即使用户的库存中有商品,我也只能得到一个空响应。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-09-24 15:29:19

如果您想获取json,只需使用以下链接之一:

普通steam盘点:( 1:游戏,3:优惠券,6:交易卡,7:奖励)

代码语言:javascript
运行
复制
http://steamcommunity.com/id/<USERURL>/inventory/json/753/1
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/1

http://steamcommunity.com/id/<USERURL>/inventory/json/753/3
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/3

http://steamcommunity.com/id/<USERURL>/inventory/json/753/6
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/6

http://steamcommunity.com/id/<USERURL>/inventory/json/753/7
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/753/7

游戏:

代码语言:javascript
运行
复制
http://steamcommunity.com/id/<USERURL>/inventory/json/<APPID>/2
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/<APPID>/2

问题不在于反罢工appid,您只是使用了一个旧链接,该链接仅适用于一般的steam清单。我建议您使用STEAMID链接,因为并不是每个蒸汽用户都设置了customurl。

票数 15
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25977803

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档