Aller au contenu
GET /v1/currencies

Every foreign currency vs the rial

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/irr-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/irr-api/v1/currencies" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/irr-api/v1/currencies", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/irr-api/v1/currencies");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/irr-api/v1/currencies",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "base": "IRR",
        "count": 11,
        "source": "tgju.org",
        "currencies": [
            {
                "low": 2354800,
                "date": "2026/06/10",
                "high": 2397200,
                "name": "British Pound",
                "open": 2392100,
                "unit": "IRR",
                "close": 2355100,
                "change": 45700,
                "symbol": "gbp",
                "category": "currency",
                "change_pct": 1.95,
                "close_toman": 235510,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 2201100,
                "date": "2026/06/10",
                "high": 2240800,
                "name": "Swiss Franc",
                "open": 2236400,
                "unit": "IRR",
                "close": 2202400,
                "change": 40000,
                "symbol": "chf",
                "category": "currency",
                "change_pct": 1.82,
                "close_toman": 220240,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 2031000,
                "date": "2026/06/10",
                "high": 2065800,
                "name": "Euro",
                "open": 2063100,
                "unit": "IRR",
                "close": 2031300,
                "change": 39000,
                "symbol": "eur",
                "category": "currency",
                "change_pct": 1.93,
                "close_toman": 203130,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 1757800,
                "date": "2026/06/10",
                "high": 1785200,
                "name": "US Dollar",
                "open": 1785100,
                "unit": "IRR",
                "close": 1758050,
                "change": 32100,
                "symbol": "usd",
                "category": "currency",
                "change_pct": 1.83,
                "close_toman": 175805,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 1261600,
                "date": "2026/06/10",
                "high": 1284400,
                "name": "Canadian Dollar",
                "open": 1282000,
                "unit": "IRR",
                "close": 1261900,
                "change": 25900,
                "symbol": "cad",
                "category": "currency",
                "change_pct": 2.06,
                "close_toman": 126190,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 1233300,
                "date": "2026/06/10",
                "high": 1255900,
                "name": "Australian Dollar",
                "open": 1253800,
                "unit": "IRR",
                "close": 1233800,
                "change": 22700,
                "symbol": "aud",
                "category": "currency",
                "change_pct": 1.84,
                "
…