Retrieve item's price history on Steam market

混江龙づ霸主 提交于 2019-12-03 17:06:55

I've done some more research and found the way you can retrieve the price history for an item.

As an example for those who are curious, the price history for this random item "Specialized Killstreak Brass Beast" can be retrieved in this way:

http://steamcommunity.com/market/pricehistory/?country=DE&currency=3&appid=440&market_hash_name=Specialized%20Killstreak%20Brass%20Beast

If calling from code

url ="http://steamcommunity.com/market/pricehistory/"

and the query string payload is:

{
    "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.  
}

country code is the ISO Country Code.

you can find the app id for a game from the URL of its store page. Example: The game "CS:GO" app id is 730. Store page

You can find the market hash name from the URL of its market page. Example: This CS:GO item hash name is "Glove Case Key".

Price history for the Glove Case Key is here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!