# Toman & Rial Rates (`revitalizing_rock/toman-rates`) Actor

Live Iranian Rial (IRR) & Toman exchange rates for 28 currencies, gold and gold coins, as JSON. نرخ لحظه‌ای ریال، تومان، تومن و طلا. Run with no input for all rates, or filter by code.

- **URL**: https://apify.com/revitalizing\_rock/toman-rates.md
- **Developed by:** [Armin MHF](https://apify.com/revitalizing_rock) (community)
- **Categories:** Business
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Toman & Rial Rates

Live **Iranian Rial (IRR) and Toman exchange rates** — the conversion rate of 28 world currencies, gold, and Iranian gold coins — returned as clean JSON every time the Actor runs. No input required: run it and get the current rates.

نرخ لحظه‌ای **ریال، تومان و تومن** و همچنین نرخ **طلا** به‌صورت JSON. نرخ تبدیل دلار، یورو، پوند، درهم و ۲۴ ارز دیگر به تومان، به‌علاوهٔ سکه و طلای ۱۸ عیار.

It covers:

- **28 fiat currencies** — USD, EUR, GBP, CHF, CAD, AUD, SEK, NOK, RUB, THB, SGD, HKD, AZN, AMD, DKK, AED, JPY, TRY, CNY, SAR, INR, MYR, AFN, KWD, IQD, BHD, OMR, QAR
- **Gold** — 18‑karat gram, mithqal, and the global ounce (in USD)
- **Gold coins** — Emami, Bahar Azadi (full / half / quarter), Gerami
- **Bitcoin** (in USD) and the Tehran Stock Exchange index

### Rial and Toman

All rates in the output are in **Toman**. The Iranian Rial (IRR) is worth one‑tenth of a Toman, so to get a Rial value simply **multiply by 10**:

```
1 USD = 222,300 Toman = 2,223,000 Rial (IRR)
```

### Output

Every run writes one JSON record to the default key‑value store under the key `OUTPUT`, and pushes the same object as a single dataset item:

```json
{
  "updatedAt": "2026-09-03T07:19:04.000Z",
  "rates": {
    "USD": { "sell": 222300, "buy": 222200, "mid": 222250, "rate": 222300 },
    "EUR": { "sell": 257850, "buy": 257650, "mid": 257750, "rate": 257850 },
    "JPY": { "sell": 1410, "buy": 1400, "mid": 1405, "rate": 1410 },
    "COIN_EMAMI": { "sell": 234000000, "buy": 230000000, "mid": 232000000, "rate": 234000000 },
    "GOLD_GRAM_18K": { "rate": 23385197 },
    "GOLD_MITHQAL": { "rate": 100900000 },
    "GOLD_OUNCE": { "rate": 4423.29, "unit": "USD" },
    "BTC": { "rate": 77771.1, "unit": "USD" },
    "TSE_INDEX": { "rate": 1904324.2, "unit": "index" }
  }
}
```

Fields on each rate entry:

| Field  | Meaning |
|--------|---------|
| `sell` | Sell price, in Toman |
| `buy`  | Buy price, in Toman |
| `mid`  | Midpoint of `sell` and `buy` |
| `rate` | Headline rate — equal to `sell` |
| `unit` | Present **only** when the value is not in Toman (`USD` or `index`) |

Notes:

- All fiat rates are quoted **per 1 unit** of the currency — e.g. `JPY` is the price of a single yen.
- Single‑value quotes (`GOLD_GRAM_18K`, `GOLD_MITHQAL`, `GOLD_OUNCE`, `BTC`, `TSE_INDEX`) expose `rate` only.

### Input

Everything is optional.

| Field        | Type       | Description |
|--------------|------------|-------------|
| `currencies` | `string[]` | Which rates to return. Empty → all rates. Accepts individual codes and/or the group aliases `FIAT`, `COINS`, `GOLD`, `CRYPTO`, `INDEX`. Case‑insensitive. |

#### Examples

Return everything:

```json
{}
```

Only the US Dollar:

```json
{ "currencies": ["USD"] }
```

Dollar, Euro and every gold coin:

```json
{ "currencies": ["USD", "EUR", "COINS"] }
```

### Reference — all codes

| Group | Codes |
|-------|-------|
| Fiat  | `USD` `EUR` `GBP` `CHF` `CAD` `AUD` `SEK` `NOK` `RUB` `THB` `SGD` `HKD` `AZN` `AMD` `DKK` `AED` `JPY` `TRY` `CNY` `SAR` `INR` `MYR` `AFN` `KWD` `IQD` `BHD` `OMR` `QAR` |
| Coins | `COIN_EMAMI` `COIN_AZADI` `COIN_AZADI_HALF` `COIN_AZADI_QUARTER` `COIN_GERAMI` |
| Gold  | `GOLD_GRAM_18K` `GOLD_MITHQAL` `GOLD_OUNCE` |
| Other | `BTC` `TSE_INDEX` |

***

**Keywords:** Iranian Rial, IRR, rial, toman, tomon, tooman, Toman rate, Rial rate, IRR exchange rate, USD to IRR, USD to Toman, EUR to Toman, dollar to rial, currency converter, Iran free market rate, gold price Iran, gold coin price, Bahar Azadi, Emami coin, ریال، تومان، تومن، نرخ ارز، نرخ دلار، نرخ یورو، نرخ طلا، نرخ سکه، قیمت طلا، قیمت دلار، نرخ تبدیل ارز، بازار آزاد ارز، دلار به تومان، یورو به تومان.

# Actor input Schema

## `currencies` (type: `array`):

Which rates to include. Leave empty to return every rate. Accepts individual codes (e.g. USD, EUR, COIN\_EMAMI, GOLD\_GRAM\_18K, BTC) and/or the group aliases FIAT, COINS, GOLD, CRYPTO, INDEX. Case-insensitive.

## Actor input object example

```json
{
  "currencies": []
}
```

# Actor output Schema

## `rates` (type: `string`):

The OUTPUT record: a JSON object with 'updatedAt' and a 'rates' map of code to { sell, buy, mid, rate }.

## `dataset` (type: `string`):

The same JSON object, stored as a single dataset item.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "currencies": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("revitalizing_rock/toman-rates").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "currencies": [] }

# Run the Actor and wait for it to finish
run = client.actor("revitalizing_rock/toman-rates").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "currencies": []
}' |
apify call revitalizing_rock/toman-rates --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,revitalizing_rock/toman-rates"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WHXRS208w6Hl7cGEe/builds/f9hYOu6b23md6Y8n5/openapi.json
