Steam market currency and XML format

岁酱吖の 提交于 2019-12-03 19:10:42

问题


Im trying to get an item page on market in certain currency, tried to add

Accept-Language: ru-RU\r\n

and

Accept-Language: ru-RU, ru\r\n

and

Accept-Language: ru, ru-RU;q=0.8\r\n

to header but steam ignores it and always gives a page with mixed rubles, euros and dollars.

Also, how can i get a page in xml format? ?format=xml and ?xml=1 dont work, tried with application/xml and */*


回答1:


Sellers will always list items for sale in the native currency of their Steam Wallet, and buyers will always see Community Market prices expressed in the native currency of their Steam Wallet. For items listed for sale in a different currency than the buyer's Steam Wallet currency, we apply an exchange rate which we update daily.
- Community Market FAQ

Meaning, if you are looking at the market from a browser you are logged in on and you have funds in your wallet that are not in Rubles, you won't see Rubles.

You can, however, get around this. If you log out of the market and visit your URL, there are two parameters you can pass for force language and region changes.

For example, using the ever popular Supply Crate Key: http://steamcommunity.com/market/listings/440/Mann%20Co.%20Supply%20Crate%20Key?l=russian&cc=ru

Notice the l and cc parameters. The l is setting the language to Russian and the cc is setting the region to Russia.

Now, this doesn't appear to work on the entire page. The graph showing historical trends still appears to be in USD, even though the surrounding text is in Russian.

But, the individual listings of items did, in fact, change currencies.




回答2:


If someone still needs this: http://steamcommunity.com/market/search/render/?start=0&count=10&l=english&currency=5&q=&category_730_ItemSet%5B%5D=any&category_730_TournamentTeam%5B%5D=any&category_730_Weapon%5B%5D=tag_weapon_ak47&category_730_Exterior%5B%5D=tag_WearCategory0&category_730_Quality%5B%5D=tag_strange&appid=730

l param (Language): english, russian, french, etc.

count is how much results to display

start is starting result (start=10&count=10 is 2nd page with 10 results)

currency: 5 = ruble, 3 = USD. There are many others.

http://steamcommunity.com/market/listings/730/StatTrak%E2%84%A2%20AK-47%20%7C%20Blue%20Laminate%20%28Factory%20New%29/render?start=0&count=5&currency=5&language=english




回答3:


Recently Valve added market prices on inventory page when inspecting an item. The price is loaded through AJAX, and through inspecting network requests I found this:

http://steamcommunity.com/market/priceoverview/?country=US&currency=3&appid=730&market_hash_name=AWP%20|%20Electric%20Hive%20(Factory%20New)

You can force currency with this (currency 3 is EUR), returns lowest price on market and median price, JSON format.



来源:https://stackoverflow.com/questions/22616644/steam-market-currency-and-xml-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!