How to retrieve steam market price history?

前端 未结 1 1375
情歌与酒
情歌与酒 2021-01-03 17:35

I\'m trying to get price history for items on steam market. I found a link that returns price history for a specific item (which is mentioned in almost every question about

相关标签:
1条回答
  • 2021-01-03 18:09

    You need to set the Cookie key steamLogin to your session id. You can perform login on your browser and get this value.

    cookie = {'steamLogin': '76561198058933558%7C%7C2553658936E891AAD'}    
    data = requests.get('http://steamcommunity.com/market/pricehistory/?country=PT&currency=3&appid=730&market_hash_name=Falchion%20Case', cookies=cookie);
    

    I have used a random steamLogin value here, change it to your session id.

    You can try performing login from through python as well, but you might want to turn off steam guard for making things simpler. I would have demonstrated performing login automatically, but I don't wish to disable my steam guard and get a 15 day trading restriction.

    0 讨论(0)
提交回复
热议问题