Retrieve item's price history on Steam market

11,609

Solution 1

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

Solution 2

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.

Share:
11,609

Related videos on Youtube

Daniel
Author by

Daniel

I'm a software developer living in the beautiful Romania.

Updated on June 04, 2022

Comments

  • Daniel
    Daniel about 2 years

    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 api for developers who want to integrate market specific data into their own sites but I haven't been able to find anything about retrieving price history for an item in the form of a json.

    Have any of you already done this ?

  • Bhavik Hirani
    Bhavik Hirani over 3 years
    for this API response i can't call from PHP, i have to login to browser then i can get response otherwise it give me [] only as response.
  • Bhavik Hirani
    Bhavik Hirani over 3 years
    for this API response i can't call from PHP, i have to login to browser then i can get response otherwise it give me [] only as response.