关于 Steam 市场中的物品,我想知道是否有办法检索物品在一段时间内的价格历史记录。
我知道 Steam 为想要将市场特定数据集成到他们自己的网站的开发人员提供了一个特殊的 api,但我无法找到任何有关以 json 形式检索商品价格历史记录的信息。
你们中有人已经这样做了吗?
关于 Steam 市场中的物品,我想知道是否有办法检索物品在一段时间内的价格历史记录。
我知道 Steam 为想要将市场特定数据集成到他们自己的网站的开发人员提供了一个特殊的 api,但我无法找到任何有关以 json 形式检索商品价格历史记录的信息。
你们中有人已经这样做了吗?
我做了更多的研究,找到了检索商品价格历史记录的方法。
好奇的人可以举个例子,这个随机物品“Specialized Killstreak Brass Beast”的价格历史可以这样检索:
如果从代码调用
url ="http://steamcommunity.com/market/pricehistory/"
查询字符串有效负载是:
{
"country" = "US", # two letter ISO country code
"currency"= 1, # 1 is USD, 3 is EUR, not sure what others are
"appid" = 753, # this is the application id. 753 is for steam cards
"market_hash_name" ="322330-Shadows and Hexes" # this is the name of the item in the steam market.
}
国家代码是ISO 国家代码。
您可以从游戏商店页面的 URL 中找到游戏的应用 ID。示例:游戏“CS:GO”应用 id 为 730。 商店页面
您可以从其市场页面的 URL 中找到市场哈希名称。示例:此 CS:GO 项目哈希名称为“Glove Case Key”。
手套箱钥匙的价格历史记录在这里。