ArzGo exchange rate web service allows you to get the price of all currencies in Iranian Rial (IRR) live and instantaneously. It is very easy to use the web service and can be tested even in a browser.The data format is JSON and includes price, update time.
POST https://arzgo.site/main/api/Request.php
Parameter | Optional | Description |
---|---|---|
token | False | Your access token received from email |
Response contains last update time, prices and currency name format as JSON
{
"cny": {
"sell": {
"US Dollar": "31,550"
},
"buy": {
"US Dollar": "31,450"
}
},
"golds": {
"Gold Gram": "1,388,337"
},
"coins": {
"sell": {
"Azadi": "14,250,000"
},
"buy": {
"Azadi": "13,950,000"
}
},
"time": "July 06, 2022 13:30"
}
Two types of examples of how to use our web service in different programming languages.
This is an example for using api in php cURL
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://arzgo.site/main/api/Request.php',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('token' => '******************************')
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
This is an example for python Requests
import requests
url = "https://arzgo.site/main/api/Request.php"
payload={'token': '**********************'}
response = requests.request("POST", url, data=payload)
print(response.text)