"<?php\n// PHP 8.5 recommended (latest stable in Jan 2026)\n\n$api_url = \"https://apidevelopers.ir/api/v1/exchange-rates\";\n\n$params = [\n    'apiKey' => 'YOUR_API_KEY',\n\n];\n\n$options = [\n    'http' => [\n        'header'  => \"Content-type: application/x-www-form-urlencoded\",\n        'method'  => 'POST',\n        'content' => http_build_query($params),\n        'ignore_errors' => true,\n    ],\n];\n\n$context  = stream_context_create($options);\n$response = file_get_contents($api_url, false, $context);\n\nif ($response === false) {\n    echo \"Error occurred\\n\";\n    // you can read $http_response_header for more info\n} else {\n    echo $response;\n}\n?>"
#ParameterTypeDefaultDescriptionStatus
1apiKeystring-Your API key for authenticationRequired
نمونه ورودی:
{
  "apiKey": "YOUR_API_KEY"
}
نمونه خروجی:
{
  "ok": true,
  "code": 200,
  "result": {
    "aed": {
      "buy": 37700,
      "name": "درهم",
      "sell": 38080,
      "currency": "irt"
    },
    "afn": {
      "buy": 2080,
      "name": "افغانی",
      "sell": 2120,
      "currency": "irt"
    },
    "amd": {
      "buy": 35940,
      "name": "صد درام ارمنستان",
      "sell": 36680,
      "currency": "irt"
    },
    "ars": {
      "buy": 93,
      "name": "پزو آرژانتین",
      "sell": 96,
      "currency": "irt"
    },
    "aud": {
      "buy": 92400,
      "name": "دلار استرالیا",
      "sell": 93800,
      "currency": "irt"
    },
    "azn": {
      "buy": 80700,
      "name": "منات آذربایجان",
      "sell": 82300,
      "currency": "irt"
    },
    "bhd": {
      "buy": 361040,
      "name": "دینار بحرین",
      "sell": 372200,
      "currency": "irt"
    },
    "brl": {
      "buy": 24480,
      "name": "رئال برزیل",
      "sell": 25240,
      "currency": "irt"
    },
    "cad": {
      "buy": 100800,
      "name": "دلار کانادا",
      "sell": 102300,
      "currency": "irt"
    },
    "chf": {
      "buy": 173700,
      "name": "فرانک سوئیس",
      "sell": 177200,
      "currency": "irt"
    },
    "cny": {
      "buy": 19540,
      "name": "یوان چین",
      "sell": 19940,
      "currency": "irt"
    },
    "dkk": {
      "buy": 21420,
      "name": "کرون دانمارک",
      "sell": 22080,
      "currency": "irt"
    },
    "eur": {
      "buy": 163100,
      "name": "یورو",
      "sell": 164700,
      "currency": "irt"
    },
    "gbp": {
      "buy": 186000,
      "name": "پوند انگلیس",
      "sell": 188800,
      "currency": "irt"
    },
    "gel": {
      "buy": 50900,
      "name": "لاری گرجستان",
      "sell": 51900,
      "currency": "irt"
    },
    "hkd": {
      "buy": 17460,
      "name": "دلار هنگ کنگ",
      "sell": 18000,
      "currency": "irt"
    },
    "inr": {
      "buy": 1520,
      "name": "روپیه هند",
      "sell": 1550,
      "currency": "irt"
    },
    "iqd": {
      "buy": 9700,
      "name": "صد دینار عراق",
      "sell": 9900,
      "currency": "irt"
    },
    "jpy": {
      "buy": 87700,
      "name": "صد ین ژاپن",
      "sell": 89500,
      "currency": "irt"
    },
    "kgs": {
      "buy": 1550,
      "name": "سوم قرقیزستان",
      "sell": 1600,
      "currency": "irt"
    },
    "krw": {
      "buy": 9550,
      "name": "صد وون کره جنوبی",
      "sell": 9740,
      "currency": "irt"
    },
    "kwd": {
      "buy": 442120,
      "name": "دینار کویت",
      "sell": 455800,
      "currency": "irt"
    },
    "myr": {
      "buy": 33460,
      "name": "رینگیت مالزی",
      "sell": 34500,
      "currency": "irt"
    },
    "nok": {
      "buy": 13520,
      "name": "کرون نروژ",
      "sell": 13940,
      "currency": "irt"
    },
    "nzd": {
      "buy": 78800,
      "name": "دلار نیوزلند",
      "sell": 81240,
      "currency": "irt"
    },
    "omr": {
      "buy": 356700,
      "name": "ریال عمان",
      "sell": 364000,
      "currency": "irt"
    },
    "pkr": {
      "buy": 489,
      "name": "روپیه پاکستان",
      "sell": 499,
      "currency": "irt"
    },
    "qar": {
      "buy": 37680,
      "name": "ریال قطر",
      "sell": 38440,
      "currency": "irt"
    },
    "rub": {
      "buy": 1765,
      "name": "روبل روسیه",
      "sell": 1800,
      "currency": "irt"
    },
    "sar": {
      "buy": 36580,
      "name": "ریال عربستان",
      "sell": 37320,
      "currency": "irt"
    },
    "sek": {
      "buy": 14960,
      "name": "کرون سوئد",
      "sell": 15260,
      "currency": "irt"
    },
    "sgd": {
      "buy": 105640,
      "name": "دلار سنگاپور",
      "sell": 108900,
      "currency": "irt"
    },
    "syp": {
      "buy": 1240,
      "name": "صد پوند سوریه",
      "sell": 1280,
      "currency": "irt"
    },
    "thb": {
      "buy": 4370,
      "name": "بات تایلند",
      "sell": 4460,
      "currency": "irt"
    },
    "tjs": {
      "buy": 14700,
      "name": "سامانی تاجیکستان",
      "sell": 15160,
      "currency": "irt"
    },
    "tmt": {
      "buy": 38780,
      "name": "منات ترکمنستان",
      "sell": 39980,
      "currency": "irt"
    },
    "try": {
      "buy": 3190,
      "name": "لیر ترکیه",
      "sell": 3320,
      "currency": "irt"
    },
    "usd": {
      "buy": 138550,
      "name": "دلار آمریکا",
      "sell": 139950,
      "currency": "irt"
    },
    "eur-hav": {
      "buy": 163300,
      "name": "حواله یورو",
      "sell": 164900,
      "currency": "irt"
    },
    "eur-ist": {
      "buy": 164900,
      "name": "یورو استانبول",
      "sell": 164900,
      "currency": "irt"
    },
    "usd-hav": {
      "buy": 138800,
      "name": "حواله دلار آمریکا",
      "sell": 140200,
      "currency": "irt"
    },
    "usd-ist": {
      "buy": 138400,
      "name": "دلار استانبول",
      "sell": 139800,
      "currency": "irt"
    },
    "usd-herat": {
      "buy": 138400,
      "name": "دلار هرات",
      "sell": 139800,
      "currency": "irt"
    },
    "usd-sulaymaniyah": {
      "buy": 138500,
      "name": "دلار سلیمانیه",
      "sell": 139900,
      "currency": "irt"
    }
  },
  "message": "SUCCESS"
}