2014-09-22 93 views
7

還好吧,所以我一直在尋找這一切在互聯網上,什麼我發現是,當你想要得到某人的蒸汽盤點你這樣做蒸汽網絡API讓CS:GO庫存

http://api.steampowered.com/IEconItems_{appid}/GetPlayerItems/v0001/?key={apikey}&steamid={steamid}&format=json

但問題是,當我這樣做的CS:GO(appid:730)我只是得到一個空的迴應。即使用戶在他們的庫存中擁有一些東西。

+0

聽起來像一個錯誤然後,可能想聯繫蒸汽? – Nanne 2014-09-22 15:30:19

+0

有點也是我的想法,但不知道如果這是我做錯了 – 2014-09-22 15:34:53

+0

但是,如果我再去這裏登錄,他們可以閱讀我的清單http://csgolounge.com/match?m= 1483 – 2014-09-22 15:46:16

回答

14

,如果你想獲得JSON只需要使用以下鏈接之一:

一般蒸汽盤點:(1:遊戲,3:優惠券,6:交易卡,7:獎勵)

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 

遊戲:

http://steamcommunity.com/id/<USERURL>/inventory/json/<APPID>/2 
http://steamcommunity.com/profiles/<STEAMID>/inventory/json/<APPID>/2 

問題不是反恐精英的appid, 你只是用一箇舊的鏈接,僅適用於一般的蒸汽庫存。 我建議你使用鏈接使用STEAMID,因爲不是每個steamuser都設置了一個customurl。

+0

是否會阻止每分鐘20次的通話限制? – Jay 2016-09-06 16:53:16

+0

它不完全是20,但在某個時候它阻止。 – 2016-09-21 11:56:49

+0

因此,如果我在我的網站上每秒超過10000的流量,我基本上被搞砸了? – Jay 2016-09-23 11:25:18