SteamCommunity Api PriceHistory PHP

Question:

Good day, everyone. One problem arose, I don't know how to approach it in order to solve it. In general: while poking around with my project for analyzing prices in the Steam Market, I came across this funktion – http://steamcommunity.com/market/pricehistory/?country=DE&currency=3&appid=440&market_hash_name=Specialized%20Killstreak%20Brass%20Beast

Judging by his logic, he gives the full history of the sale of this item in the Steam Market. There is a catch. It can only be used in an authorized state.

The options are:

  1. This page pulls up a cookie called SteamLoginSecure and gives information.

  2. Steam gives permission to display information if the current user session from this browser is active.

Maybe I'm wrong, I won't deny and argue, but I'm terribly interested, can someone help you pull this baidu through file_get_contents() ?

It's just that if you do it without authorization, then the answer will be an empty array. At the same time, if you do not log into Steam, then on their page for selling an item, PriceHistory is available offline. How so?

Answer:

Authorization using CURL is probably fine for you, and then proceed as usual.

Scroll to Top