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.
https://api.iban.com/clients/api/currency/rates/?api_key=YOUR_API_KEY&format=json¤cy=USDhttps://api.iban.com/clients/api/currency/rates/format=xml returns the same data as XML.| Parameter | Required | Value | Description |
|---|---|---|---|
api_key | yes | string | Your personal key, shown under API Access. |
currency | yes | string, 3 letters | ISO 4217 code of the base currency, one of the supported currencies, for example USD. Lower case is accepted. |
format | no | json or xml | Format of the answer. JSON when omitted. |
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¤cy=USD"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
}
}| Field | Type | Description |
|---|---|---|
base_currency | string | The base currency of the request, in upper case. |
time | string | Time of the latest rates update in UTC, MM-DD-YYYY hh:mm:ss. The rates are updated every 5 minutes. |
timestamp | number | The same time as Unix time. |
rates | object | One 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. |
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>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 Dirham | AFN Afghani | ALL Albanian Lek |
AMD Armenian Dram | AOA Angolan Kwanza | ARS Argentine Peso |
AUD Australian Dollar | AWG Aruban Florin | AZN Azerbaijan Manat |
BAM Convertible Mark | BBD Barbados Dollar | BDT Bangladeshi Taka |
BHD Bahraini Dinar | BIF Burundi Franc | BMD Bermudian Dollar |
BND Brunei Dollar | BOB Boliviano | BRL Brazilian Real |
BSD Bahamian Dollar | BTN Bhutanese Ngultrum | BWP Botswana Pula |
BYN Belarusian Ruble | BZD Belize Dollar | CAD Canadian Dollar |
CDF Congolese Franc | CHF Swiss Franc | CLF Unidad de Fomento |
CLP Chilean Peso | CNY Yuan Renminbi | COP Colombian Peso |
CRC Costa Rican Colon | CUP Cuban Peso | CVE Cabo Verde Escudo |
CZK Czech Koruna | DJF Djibouti Franc | DKK Danish Krone |
DOP Dominican Peso | DZD Algerian Dinar | EGP Egyptian Pound |
ERN Eritrean Nakfa | ETB Ethiopian Birr | EUR Euro |
FJD Fiji Dollar | FKP Falkland Islands Pound | GBP Pound Sterling |
GEL Georgian Lari | GHS Ghana Cedi | GIP Gibraltar Pound |
GMD Gambian Dalasi | GNF Guinea Franc | GTQ Guatemalan Quetzal |
GYD Guyana Dollar | HKD Hong Kong Dollar | HNL Honduran Lempira |
HTG Haitian Gourde | HUF Hungarian Forint | IDR Indonesian Rupiah |
ILS New Israeli Sheqel | INR Indian Rupee | IQD Iraqi Dinar |
IRR Iranian Rial | ISK Iceland Krona | JMD Jamaican Dollar |
JOD Jordanian Dinar | JPY Japanese Yen | KES Kenyan Shilling |
KGS Kyrgyzstani Som | KHR Cambodian Riel | KMF Comoro Franc |
KPW North Korean Won | KRW South Korean Won | KWD Kuwaiti Dinar |
KYD Cayman Islands Dollar | KZT Kazakhstani Tenge | LAK Laotian Kip |
LBP Lebanese Pound | LKR Sri Lanka Rupee | LRD Liberian Dollar |
LSL Lesotho Loti | LYD Libyan Dinar | MAD Moroccan Dirham |
MDL Moldovan Leu | MGA Malagasy Ariary | MKD Macedonian Denar |
MMK Myanmar Kyat | MNT Mongolian Tugrik | MOP Macanese Pataca |
MRU Mauritanian Ouguiya | MUR Mauritius Rupee | MVR Maldivian Rufiyaa |
MWK Malawian Kwacha | MXN Mexican Peso | MXV Mexican Unidad de Inversion (UDI) |
MYR Malaysian Ringgit | MZN Mozambique Metical | NAD Namibia Dollar |
NGN Nigerian Naira | NIO Cordoba Oro | NOK Norwegian Krone |
NPR Nepalese Rupee | NZD New Zealand Dollar | OMR Rial Omani |
PAB Panamanian Balboa | PEN Peruvian Nuevo Sol | PGK Papua Kina |
PHP Philippine Peso | PKR Pakistan Rupee | PLN Polish Zloty |
PYG Paraguayan Guarani | QAR Qatari Rial | RON Romanian Leu |
RSD Serbian Dinar | RUB Russian Ruble | RWF Rwanda Franc |
SAR Saudi Riyal | SBD Solomon Islands Dollar | SCR Seychelles Rupee |
SDG Sudanese Pound | SEK Swedish Krona | SGD Singapore Dollar |
SHP Saint Helena Pound | SLE Sierra Leonean Leone | SOS Somali Shilling |
SRD Surinam Dollar | SSP South Sudanese Pound | STN Sao Tome and Principe Dobra |
SVC El Salvador Colon | SYP Syrian Pound | SZL Swazi Lilangeni |
THB Thai Baht | TJS Tajikistani Somoni | TMT Turkmenistan New Manat |
TND Tunisian Dinar | TOP Tongan Pa'anga | TRY Turkish Lira |
TTD Trinidad and Tobago Dollar | TWD New Taiwan Dollar | TZS Tanzanian Shilling |
UAH Ukrainian Hryvnia | UGX Uganda Shilling | USD US Dollar |
UYU Peso Uruguayo | UZS Uzbekistan Sum | VES Venezuelan Bolivar Soberano |
VND Vietnamese Dong | VUV Vanuatu Vatu | WST Samoan Tala |
XAF CFA Franc BEAC | XCD East Caribbean Dollar | XCG Caribbean Guilder |
XDR SDR (Special Drawing Right) | XOF CFA Franc BCEAO | XPF CFP Franc |
YER Yemeni Rial | ZAR South African Rand | ZMW Zambian Kwacha |
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"}}| Code | Type | Message | What to do |
|---|---|---|---|
401 | Account | API Key is invalid | Check the key under API Access. |
402 | Account | Subscription expired | Renew the Forex Reference Suite service under My Services. |
403 | Account | You have no access to this API | The Forex Reference Suite service is not on the account. |
405 | Account | IP Address not allowed | Add the address of your server to the access list of the key. |
406 | Account | No queries available | The query balance is used up; refill the service. |
410 | Input | Invalid currency code | Send 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.
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.
https://api.iban.com/clients/api/v4/services/?api_key=YOUR_API_KEY&format=jsonRelated: Currency Converter API, the other API of the Forex Reference Suite.