Dollar price API: a live dollar rate web service in Toman and Rial
Get the open market dollar rate with one request and show it on your site, app, invoice or dashboard. The output is in Toman, and turning it into Rial is one multiplication. Dollar rate history for analysis and reports comes with the paid plans.
- Prices in Toman and USD, as JSON
- Updated every few minutes, with the time in the response
- A free plan after e-mail verification
$ curl -s "https://api.arzdigital.com/v1/prices?slugs=united-states-dollar" \
-H "X-API-Key: $ARZ_API_KEY"HTTP/2 200 x-credits-charged: 1 x-credits-remaining: 299 x-ratelimit-limit: 5 x-ratelimit-remaining: 4 { "status": "success", "data": { "united-states-dollar": { "symbol": "USD", "name": "United States Dollar", "display_name": "United States Dollar", "change_24h": 0, "change_irt_24h": -1.09, "price": 1, "price_irt": 299200, "updated_at": "2026-11-30T10:48:58.000Z" } } }
Prices right now
| Asset | Toman | USD | 24h change in Toman | Updated |
|---|---|---|---|---|
| US dollar | 295,400 | 1 | -1.27% | 3 minutes ago |
| Tether (USDT) | 297,662 | 0.9989 | -0.48% | 54 seconds ago |
| Euro | 322,710 | 1.09 | -1.06% | 3 minutes ago |
| UAE dirham | 81,280 | 0.2752 | -1.17% | 7 minutes ago |
Get the dollar price from the API in a few lines of code
Sign up
Sign up with your e-mail and verify it; the free plan starts by itself.
Get a key
Create an API key on the keys page and keep it somewhere safe, such as an environment variable on your server.
Send a request
Call /v1/prices with the slug united-states-dollar and the key in the X-API-Key header.
That is all the dollar price API takes. Here is the request in your language:
curl -sS "https://api.arzdigital.com/v1/prices?slugs=united-states-dollar" \
-H "X-API-Key: YOUR_API_KEY"Dollar price API output in Toman and Rial
price_irt is the dollar rate in Toman. If your system works in Rial, as most accounting software and payment gateways do, multiply it by 10; the dollar price in Rial is that one multiplication away. price is always 1 for the dollar itself, since it is the dollar's price in dollars.
change_irt_24h is the percentage change of the dollar's Toman rate over the last 24 hours, and change_24h its change in USD, which is zero for the dollar itself. updated_at gives the time of the last update in UTC.
The dollar rate in this API is the open market rate, not the official one: the rate seen in day-to-day trading in Iran's market. It updates every few minutes.
{
"status": "success",
"data": {
"united-states-dollar": {
"symbol": "USD",
"name": "United States Dollar",
"display_name": "United States Dollar",
"change_24h": 0,
"change_irt_24h": -1.09,
"price": 1,
"price_irt": 299200,
"updated_at": "2026-11-30T10:48:58.000Z"
}
}
}Dollar price history API
The dollar price history API is for charts, financial reports and analysing the exchange rate trend. To see the chart and history table without code, visit the dollar price history page on ArzDigital.
Get the price history of the dollar from the chart endpoint: GET /v1/assets/united-states-dollar/chart. Name the window in one of two ways; they cannot be combined:
- range, for a window that ends now: 1d, 7d, 1m (30 days), 3m, 6m, 1y or all. The API picks the spacing of the points.
- from and to (Unix seconds) with interval, the spacing of the points: 5m, 30m, 2h, 6h, 12h, 1d, 2d, 3d, 7d, 30d or 60d. One call returns at most 1000 points; split a longer window into several calls.
Each point has the time, the USD price (price_usd), the Toman rate of one dollar (irt_rate) and the price in Bitcoin (price_btc); the Toman price of a point is price_usd times irt_rate. A chart costs by its points: 1 credit per 100.
How far back you can go depends on the plan: Free: Latest only; Basic: 1 year; Pro, Business, and Enterprise: Full history. A window older than your plan reaches returns error 1007 instead of partial data, and costs nothing.
curl -sS "https://api.arzdigital.com/v1/assets/united-states-dollar/chart?range=1y" \
-H "X-API-Key: YOUR_API_KEY"Free dollar price API
The free dollar price API gives the live dollar rate with these limits:
300 free requests a day
Each call to /v1/prices returns up to 100 assets for 1 credit: gold, the dollar and Bitcoin together.
5 requests a minute
Enough to fetch prices on a schedule from your server; each asset updates every few minutes.
The latest data only
The free plan returns the latest price. History and charts come with the paid plans.
One key, after e-mail verification
Sign up and verify your e-mail; the free plan starts at once and you can create a key.
For dollar rate history, more requests or several keys, choose a paid plan.
Buy the dollar price API
To buy the dollar price API, choose a plan by how many requests a day you make and how much history you need. 10% VAT is added to every plan's price.
| Plan | Price | Credits | Requests per minute | History | API keys |
|---|---|---|---|---|---|
| Free | Free | 300a day | 5 | Latest only | 1 |
| Basic | 30,000,000 IRR | 150,000every 30 days | 120 | 1 year | 2 |
| Pro | 250,000,000 IRR | 1,000,000every 30 days | 300 | Full history | 5 |
| Business | 600,000,000 IRR | 5,000,000every 30 days | 600 | Full history | 10 |
| Enterprise | Custom price and terms | Custom | Custom | Full history | Custom |
Prices exclude tax; 10% VAT is added at checkout.
The dollar and gold in one request
One /v1/prices call returns the dollar rate, 18 karat gold and the Emami coin together, still for 1 credit. The other markets are on the ArzDigital API home page.
curl -sS "https://api.arzdigital.com/v1/prices?slugs=united-states-dollar,gold-gerami-18,emami-gold" \
-H "X-API-Key: YOUR_API_KEY"{
"status": "success",
"data": {
"united-states-dollar": {
"symbol": "USD",
"name": "United States Dollar",
"display_name": "United States Dollar",
"change_24h": 0,
"change_irt_24h": -1.09,
"price": 1,
"price_irt": 299200,
"updated_at": "2026-11-30T10:48:58.000Z"
},
"gold-gerami-18": {
"symbol": "GOLD18",
"name": "18 Karat Gram Gold",
"display_name": "18 Karat Gram Gold",
"change_24h": -0.86,
"change_irt_24h": -2.04,
"price": 86.74,
"price_irt": 25952000,
"updated_at": "2026-11-30T11:08:37.000Z"
},
"emami-gold": {
"symbol": "EMAMI",
"name": "Emami Gold Coin",
"display_name": "Emami Gold Coin",
"change_24h": -0.77,
"change_irt_24h": -1.85,
"price": 885.7,
"price_irt": 265000000,
"updated_at": "2026-11-30T11:00:19.000Z"
}
}
}Other currency rates
The euro, dirham, pound, lira and 86 more foreign currencies come with the same key. The full list and code samples are on the exchange rate API page.
Other markets
Dollar price API: frequently asked questions
Where does the dollar rate come from?
It is the open market dollar rate, from the ArzDigital market data feed, not the official rate.
Is the output in Toman or Rial?
In Toman, in price_irt. For Rial, multiply it by 10.
How often is the dollar rate updated?
Every few minutes. The exact time is in the updated_at field of every response.
How far back does dollar price history go?
It depends on the plan: Free: Latest only; Basic: 1 year; Pro, Business, and Enterprise: Full history. Get it from /v1/assets/united-states-dollar/chart.
Is the dollar price API free?
Yes. The free plan includes the dollar rate: 300 free requests a day, 5 requests a minute and the latest data only.