Aller au contenu
GET /v1/gold

Iran gold market — ounce, gram, coins

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/gold" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/irr-api/v1/gold", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/irr-api/v1/gold");
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/gold",
    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": {
        "gold": [
            {
                "low": 4071.25,
                "date": "2026/06/10",
                "high": 4262.23,
                "name": "Gold Ounce (global)",
                "open": 4078.86,
                "unit": "USD",
                "close": 4260.4,
                "change": -180.73,
                "symbol": "ounce",
                "category": "gold",
                "change_pct": -4.43,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 177513000,
                "date": "2026/06/10",
                "high": 179249000,
                "name": "Gold 18k (gram)",
                "open": 179143000,
                "unit": "IRR",
                "close": 179249000,
                "change": -108000,
                "symbol": "gram_18k",
                "category": "gold",
                "change_pct": -0.06,
                "close_toman": 17924900,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 236681000,
                "date": "2026/06/10",
                "high": 238996000,
                "name": "Gold 24k (gram)",
                "open": 238854000,
                "unit": "IRR",
                "close": 238996000,
                "change": -145000,
                "symbol": "gram_24k",
                "category": "gold",
                "change_pct": -0.06,
                "close_toman": 23899600,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 768950000,
                "date": "2026/06/10",
                "high": 776350000,
                "name": "Gold Mesghal",
                "open": 776350000,
                "unit": "IRR",
                "close": 771450000,
                "change": -120000,
                "symbol": "mesghal",
                "category": "gold",
                "change_pct": -0.02,
                "close_toman": 77145000,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 1789800000,
                "date": "2026/06/10",
                "high": 1810100000,
                "name": "Emami Gold Coin",
                "open": 1810100000,
                "unit": "IRR",
                "close": 1794800000,
                "change": 250000,
                "symbol": "coin_emami",
                "category": "coin",
                "change_pct": 0.01,
                "close_toman": 179480000,
                "date_jalali": "1405/03/20"
            },
            {
                "low": 1749700000,
                "date": "2026/06/10",
                "high": 1760200000,
                "name": "Bahar Azadi Gold Coin",
                "open": 1760050000,
                "unit": "IRR",
                "close": 1750200000,
                "change": 50000,
                "symbol": "coin_bahar",
                "category": "coin",
                "change_pct": null,
                "close_toman": 17
…