Exchange Rates API

Part of the Forex Reference Suite. One request returns the exchange rates of the base currency you name against the 155 other supported currencies, with the time of the latest update. The rates are updated every 5 minutes. Use it to price in foreign currencies or to keep your own rate table current.

Endpoint

GEThttps://api.iban.com/clients/api/currency/rates/?api_key=YOUR_API_KEY&format=json&currency=USD
POSThttps://api.iban.com/clients/api/currency/rates/
  • HTTPS, GET or POST. With POST the parameters are sent form-encoded in the body.
  • The answer is JSON by default; format=xml returns the same data as XML.
  • Call the API from your server and keep the key out of browser code: a key sent in a URL is written to access logs.

Request

ParameterRequiredValueDescription
api_keyyesstringYour personal key, shown under API Access.
currencyyesstring, 3 lettersISO 4217 code of the base currency, one of the supported currencies, for example USD. Lower case is accepted.
formatnojson or xmlFormat of the answer. JSON when omitted.

Example request

Replace YOUR_API_KEY with the key from API Access.

curl "https://api.iban.com/clients/api/currency/rates/?api_key=YOUR_API_KEY&format=json&currency=USD"

Response

The answer to the example request, recorded on 26 November 2026 and shortened to the first six and the last two of its 156 entries:

{
   "base_currency": "USD",
   "time": "11-26-2026 12:31:09",
   "timestamp": 1795696269,
   "rates": {
      "AED": 3.6725,
      "AFN": 64.9998,
      "ALL": 81.8043,
      "AMD": 359.9391,
      "AOA": 918.0001,
      "ARS": 1602.8174,
      ...
      "ZMW": 20.8216,
      "USD": 1
   }
}
FieldTypeDescription
base_currencystringThe base currency of the request, in upper case.
timestringTime of the latest rates update in UTC, MM-DD-YYYY hh:mm:ss. The rates are updated every 5 minutes.
timestampnumberThe same time as Unix time.
ratesobjectOne member per supported currency: the ISO 4217 code and the value of one unit of the base currency in that currency. The 155 other currencies come first, in alphabetical order of their codes; the base currency itself is the last member, with the value 1.
XML

With format=xml the root element is result and the fields are child elements with the same names; each rate is a child element of rates named after the currency code. An error element is always present; in a successful answer its code and message are empty:

<?xml version="1.0"?>
<result>
   <base_currency>USD</base_currency>
   <time>11-26-2026 12:31:09</time>
   <timestamp>1795696269</timestamp>
   <rates>
      <AED>3.6725</AED>
      <AFN>64.9998</AFN>
      <ALL>81.8043</ALL>
      ...
      <ZMW>20.8216</ZMW>
      <USD>1</USD>
   </rates>
   <error>
      <code/>
      <message/>
   </error>
</result>

When the request is refused the data elements are empty and error is filled:

<?xml version="1.0"?>
<result>
   <base_currency/>
   <time/>
   <timestamp/>
   <rates/>
   <error>
      <code>401</code>
      <message>API Key is invalid</message>
   </error>
</result>

Supported currencies

156 currencies, identified by their ISO 4217 codes. Each can be the base currency of a rates request and the source or target of a conversion.

AED  United Arab Emirates DirhamAFN  AfghaniALL  Albanian Lek
AMD  Armenian DramAOA  Angolan KwanzaARS  Argentine Peso
AUD  Australian DollarAWG  Aruban FlorinAZN  Azerbaijan Manat
BAM  Convertible MarkBBD  Barbados DollarBDT  Bangladeshi Taka
BHD  Bahraini DinarBIF  Burundi FrancBMD  Bermudian Dollar
BND  Brunei DollarBOB  BolivianoBRL  Brazilian Real
BSD  Bahamian DollarBTN  Bhutanese NgultrumBWP  Botswana Pula
BYN  Belarusian RubleBZD  Belize DollarCAD  Canadian Dollar
CDF  Congolese FrancCHF  Swiss FrancCLF  Unidad de Fomento
CLP  Chilean PesoCNY  Yuan RenminbiCOP  Colombian Peso
CRC  Costa Rican ColonCUP  Cuban PesoCVE  Cabo Verde Escudo
CZK  Czech KorunaDJF  Djibouti FrancDKK  Danish Krone
DOP  Dominican PesoDZD  Algerian DinarEGP  Egyptian Pound
ERN  Eritrean NakfaETB  Ethiopian BirrEUR  Euro
FJD  Fiji DollarFKP  Falkland Islands PoundGBP  Pound Sterling
GEL  Georgian LariGHS  Ghana CediGIP  Gibraltar Pound
GMD  Gambian DalasiGNF  Guinea FrancGTQ  Guatemalan Quetzal
GYD  Guyana DollarHKD  Hong Kong DollarHNL  Honduran Lempira
HTG  Haitian GourdeHUF  Hungarian ForintIDR  Indonesian Rupiah
ILS  New Israeli SheqelINR  Indian RupeeIQD  Iraqi Dinar
IRR  Iranian RialISK  Iceland KronaJMD  Jamaican Dollar
JOD  Jordanian DinarJPY  Japanese YenKES  Kenyan Shilling
KGS  Kyrgyzstani SomKHR  Cambodian RielKMF  Comoro Franc
KPW  North Korean WonKRW  South Korean WonKWD  Kuwaiti Dinar
KYD  Cayman Islands DollarKZT  Kazakhstani TengeLAK  Laotian Kip
LBP  Lebanese PoundLKR  Sri Lanka RupeeLRD  Liberian Dollar
LSL  Lesotho LotiLYD  Libyan DinarMAD  Moroccan Dirham
MDL  Moldovan LeuMGA  Malagasy AriaryMKD  Macedonian Denar
MMK  Myanmar KyatMNT  Mongolian TugrikMOP  Macanese Pataca
MRU  Mauritanian OuguiyaMUR  Mauritius RupeeMVR  Maldivian Rufiyaa
MWK  Malawian KwachaMXN  Mexican PesoMXV  Mexican Unidad de Inversion (UDI)
MYR  Malaysian RinggitMZN  Mozambique MeticalNAD  Namibia Dollar
NGN  Nigerian NairaNIO  Cordoba OroNOK  Norwegian Krone
NPR  Nepalese RupeeNZD  New Zealand DollarOMR  Rial Omani
PAB  Panamanian BalboaPEN  Peruvian Nuevo SolPGK  Papua Kina
PHP  Philippine PesoPKR  Pakistan RupeePLN  Polish Zloty
PYG  Paraguayan GuaraniQAR  Qatari RialRON  Romanian Leu
RSD  Serbian DinarRUB  Russian RubleRWF  Rwanda Franc
SAR  Saudi RiyalSBD  Solomon Islands DollarSCR  Seychelles Rupee
SDG  Sudanese PoundSEK  Swedish KronaSGD  Singapore Dollar
SHP  Saint Helena PoundSLE  Sierra Leonean LeoneSOS  Somali Shilling
SRD  Surinam DollarSSP  South Sudanese PoundSTN  Sao Tome and Principe Dobra
SVC  El Salvador ColonSYP  Syrian PoundSZL  Swazi Lilangeni
THB  Thai BahtTJS  Tajikistani SomoniTMT  Turkmenistan New Manat
TND  Tunisian DinarTOP  Tongan Pa'angaTRY  Turkish Lira
TTD  Trinidad and Tobago DollarTWD  New Taiwan DollarTZS  Tanzanian Shilling
UAH  Ukrainian HryvniaUGX  Uganda ShillingUSD  US Dollar
UYU  Peso UruguayoUZS  Uzbekistan SumVES  Venezuelan Bolivar Soberano
VND  Vietnamese DongVUV  Vanuatu VatuWST  Samoan Tala
XAF  CFA Franc BEACXCD  East Caribbean DollarXCG  Caribbean Guilder
XDR  SDR (Special Drawing Right)XOF  CFA Franc BCEAOXPF  CFP Franc
YER  Yemeni RialZAR  South African RandZMW  Zambian Kwacha

Error codes

A refused request is answered with an error object instead of the data. code is a string:

{"error":{"code":"401","message":"API Key is invalid"}}
CodeTypeMessageWhat to do
401AccountAPI Key is invalidCheck the key under API Access.
402AccountSubscription expiredRenew the Forex Reference Suite service under My Services.
403AccountYou have no access to this APIThe Forex Reference Suite service is not on the account.
405AccountIP Address not allowedAdd the address of your server to the access list of the key.
406AccountNo queries availableThe query balance is used up; refill the service.
410InputInvalid currency codeSend one of the supported ISO 4217 codes.

A request without the required parameters is not answered with an error object: it is refused with an HTTP error status (400 Bad Request), so send every required parameter. 500 (“Internal Server Error. Contact Support.”) is a problem on our side: retry later and contact support if it persists.

Checking your balance

The services endpoint lists every service on your account with its remaining queries and expiry date, and does not use a query. This API belongs to the service Forex Reference Suite.

GEThttps://api.iban.com/clients/api/v4/services/?api_key=YOUR_API_KEY&format=json

Related: Currency Converter API, the other API of the Forex Reference Suite.