我正在尝试从这个图中获得steam市场的数据:

我正在尝试使用此url获取此数据。
http://steamcommunity.com/market/pricehistory/?appid=730&market_hash_name=AK-47%20%7C%20Frontside%20Misty%20%28Field-Tested%29根据来自steam市场页面的economy.js文件
new Ajax.Request( 'http://steamcommunity.com/market/pricehistory/', {
method: 'get',
parameters: {
appid: this.m_item.appid,
market_hash_name: GetMarketHashName( this.m_item )
},
onSuccess: function( transport ) { SellItemDialog.OnPriceHistorySuccess( transport ); },
onFailure: function( transport ) { SellItemDialog.OnPriceHistoryFailure( transport ); }
} );但是当我试图在浏览器中打开http://steamcommunity.com/market/pricehistory/?appid=730&market_hash_name=AK-47%20%7C%20Frontside%20Misty%20%28Field-Tested%29时,我总是得到空的[]结果。
另一方面,当我在浏览器中登录我的帐户时,结果不是空的,一切都很好。但是这个图总是在我的http://steamcommunity.com/market/listings/730/AK-47%20%7C%20Frontside%20Misty%20%28Field-Tested%29页面上提供,我是否在我的帐户中并不重要。
如何在不使用身份验证的情况下正确地获取这些数据?
发布于 2016-03-23 12:44:47
我一直在开发一个API,它可以为您提供尽可能多的CSGO市场销售数据。我正在使用~1,028,619,499 successful sales ~$1,155,921,513.跟踪6,269个项目
可用于这些图形值的一个端点是http://csgolyzer.com/api/history/{market_hash_name}?key={your_api_key}
这将返回以下响应:
[
{
median_price: "0.34",
sold_at: "2015-12-20 01:00:00"
},
{
median_price: "0.32",
sold_at: "2015-12-21 01:00:00"
},
...
]API文档可在此处获取:http://csgolyzer.com/docs
还有其他端点可以获取更多关于市场销售的数据,API费率比自己查询Steam要好。
发布于 2016-03-15 18:26:06
只需从市场列表页面上刮掉历史记录。
https://stackoverflow.com/questions/35999598
复制相似问题