D
D
Dear Egor Anatolyevich2016-09-21 10:19:41
PHP
Dear Egor Anatolyevich, 2016-09-21 10:19:41

How can a php script get the price of a game in rubles?

Hi all. I'm creating some kind of bot for making money on steam cards. Objective: Get prices for card games. I do it like this:

<?php
    if( $curl = curl_init() ) {
        curl_setopt($curl, CURLOPT_URL, 'http://store.steampowered.com/search/?sort_by=Price_ASC&category1=998&category2=29&os=win&specials=1');
        curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
        curl_setopt($curl, CURLOPT_COOKIE, "steamCountry=RU%7C4607b230c93881f31bf48f7bae7bc98a;Steam_Language=russian");
        $out = curl_exec($curl);
        echo $out;
        curl_close($curl);
    }
?>

And... I get prices in dollars. In addition to cookies, there is an idea that the region is determined by IP and due to the fact that the server is located in Germany, prices are displayed in USD.
Does anyone know how to get prices in rubles without a proxy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dear Egor Anatolyevich, 2016-09-21
@urbanknight

Add &cc=ru to the request.
Thanks to all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question