Real-time Currency & Gold API
Real-time IRR/Toman rates for 28+ currencies, gold and crypto with clean, fast JSON. Built for businesses, sites and apps.
- 28+ currencies, gold & crypto
- Easy to integrate into your site
- Fast, cached and reliable
- Flexible plans for any need
Live test
GET
https://arzparz.com/api/v1/latest
Click "Run" to see a live response.
Plans & Pricing
Contact us to order a plan or a dedicated key. A free test key is available too. Contact / Order
Code examples
Every request needs your API username and password (HTTP Basic Auth). Filter by type: ?type=currency,gold,metal,world_metal,bourse,crypto — full detail: ?full=1
cURL
curl -u USERNAME:PASSWORD "https://arzparz.com/api/v1/latest?type=currency,world_metal,bourse"
PHP
$ctx = stream_context_create(['http' => ['header' => 'Authorization: Basic ' . base64_encode('USERNAME:PASSWORD')]]);
$data = json_decode(file_get_contents('https://arzparz.com/api/v1/latest', false, $ctx), true);
echo "USD = " . $data['rates']['USD']['price_toman'] . " Toman";
Python
import requests
data = requests.get("https://arzparz.com/api/v1/latest", auth=("USERNAME", "PASSWORD")).json()
print("USD =", data["rates"]["USD"]["price_toman"], "Toman")
print("TEDPIX =", data["rates"]["TEDPIX"]["value"], "points")
JavaScript
const res = await fetch('https://arzparz.com/api/v1/latest', {
headers: { Authorization: 'Basic ' + btoa('USERNAME:PASSWORD') }
});
const data = await res.json();
console.log('Gold ounce =', data.rates.XAUUSD.price_usd, 'USD');