Good day to all. There was one problem, I do not know how to approach it in order to solve it. In general: while tinkering with your price analysis project in the Steam Market, I stumbled upon this fancode - http://steamcommunity.com/market/pricehistory/?country=DE¤cy=3&appid=440&market_hash_name=Specialized%20Killstreak%20Brass%20Beast

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

Options:

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

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

Maybe I'm wrong, I will not deny and argue, but I'm terribly interested, can someone help me to pull out this baidu via file_get_contents() ?

Simply, if you do this without authorization, the answer will be an empty array. At the same time, if you do not log in to Steam, then they have, on the item sale page, PriceHistory is available in offline mode. How so?

  • and with the token Steam does not work? (I did not check) - Vasily Barbashev
  • Yes, if I knew, this function is needed in a single case. It is necessary for the library to get these price tags on request, and how to pull them through file_get_contents, if it wants me to be authorized? How, in principle, without JSON and various bots under the console hat to make this authorization? - Wayer
  • Well, I'm telling you. Steam has a special token that can be obtained if you are a developer. I will not say the exact link, but on the Internet you can find how to get it. He basically authorizes you on the service, as an application, and you can access many things, and use SteamAPI yourself - Vasily Barbashev
  • Well, I personally assume that you are talking about the Steam Api-key. If not, I would like to learn more about this feature. - Wayer
  • Yes, I'm talking about the Api-key (it's a token for authorization on the service, for working with api). It does not provide the ability to open pages using this token (if memory does not change, add & key = SteamAPIKey as a parameter to the address). When I did, but a little for another page, it all worked for me - Vasily Barbashev

1 answer 1

You will probably come up with authorization using CURL, and then proceed in the usual way.

  • Thanks for the answer! And can you have an example of such a thing on the Kurles?) But I, frankly, do not know how to do it ( - Wayer
  • I can not give a working code for steam, because I have no idea how to work with their two-factor authorization. I am sure only that CURL knows how. - Denai
  • But I don’t need access to Api, two-factor on the account for tests is disabled, login and password only - Wayer