Retrieve item's price history on Steam market

后端 未结 2 2029
有刺的猬
有刺的猬 2021-02-06 16:11

Regarding items from Steam market I was wondering if there is a way to retrieve the price history of an item over a period of time.

I know that Steam provides a special

2条回答
  •  遇见更好的自我
    2021-02-06 17:06

    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.

提交回复
热议问题