Currency conversion API
The live exchange rate between any two of 138 currencies, and an amount converted at it.
The market rate between two currencies (the mid price from the forex market, not a bank’s buy or sell rate) and an amount converted at it. Rates come from EODHD and are cached for an hour, so two calls within the hour get the same answer. For past rates, see the exchange rate history API.
Endpoint
GET https://supertoolshq.com/api/v1/finance/exchange-rate/
POST https://supertoolshq.com/api/v1/finance/exchange-rate/ (form-encoded body)
Parameters
| Name | Values | Default | Meaning |
|---|---|---|---|
from | Currency code | required | The currency you have. Any case: usd works. |
to | Currency code | required | The currency you want. |
amount | Number | 1 | How much of from to convert. Commas and spaces are ignored; the decimal point is a dot. |
Response
| Field | Type | Meaning |
|---|---|---|
from, to | object | code (in capitals) and English name of each currency. |
amount | number | The amount as understood (default 1). |
rate | number | Units of to for one from, to 8 significant digits. A pair with no market quote of its own is crossed through the US dollar. |
inverseRate | number | Units of from for one to. |
converted | number | amount in to: to the cent from 100 up, otherwise to 4 significant digits. |
quotedAt | string | Time of the quote, ISO 8601 in UTC. Markets close at weekends, so a Sunday rate is Friday’s. A cross rate gives its older leg’s time. |
Example
curl 'https://supertoolshq.com/api/v1/finance/exchange-rate/?from=USD&to=INR&amount=1000'
{
"from": {
"code": "USD",
"name": "US Dollar"
},
"to": {
"code": "INR",
"name": "Indian Rupee"
},
"amount": 1000,
"rate": 92.900002,
"inverseRate": 0.010764262,
"converted": 92900,
"quotedAt": "2026-11-24T04:18:00Z"
}
Errors
Bad input gets HTTP 400 with a message per field, and the inputs as understood:
{
"errors": {
"to": "Unknown currency code “XYZ”. The docs list the supported ones.",
"amount": "A number of up to 15 digits, like 1250.50."
},
"input": {
"from": "USD",
"to": "XYZ",
"amount": "12,5o"
}
}
When no rate can be had for the pair (the data provider is down and nothing is cached), the reply is HTTP 503 with an error message and a Retry-After header in seconds.
Currencies
138 ISO 4217 codes; any two make a pair.
| Code | Currency |
|---|---|
AED | United Arab Emirates Dirham |
AFN | Afghan Afghani |
ALL | Albanian Lek |
AMD | Armenian Dram |
AOA | Angolan Kwanza |
ARS | Argentine Peso |
AUD | Australian Dollar |
AWG | Aruban Florin |
AZN | Azerbaijani Manat |
BAM | Bosnia-Herzegovina Convertible Mark |
BBD | Barbadian Dollar |
BDT | Bangladeshi Taka |
BHD | Bahraini Dinar |
BIF | Burundian Franc |
BMD | Bermudan Dollar |
BND | Brunei Dollar |
BOB | Bolivian Boliviano |
BRL | Brazilian Real |
BSD | Bahamian Dollar |
BWP | Botswanan Pula |
BYN | Belarusian Ruble |
BZD | Belize Dollar |
CAD | Canadian Dollar |
CDF | Congolese Franc |
CHF | Swiss Franc |
CLP | Chilean Peso |
CNH | Chinese Yuan (offshore) |
CNY | Chinese Yuan |
COP | Colombian Peso |
CRC | Costa Rican Colón |
CUP | Cuban Peso |
CVE | Cape Verdean Escudo |
CZK | Czech Koruna |
DJF | Djiboutian Franc |
DKK | Danish Krone |
DOP | Dominican Peso |
DZD | Algerian Dinar |
EGP | Egyptian Pound |
ETB | Ethiopian Birr |
EUR | Euro |
FJD | Fijian Dollar |
FKP | Falkland Islands Pound |
GBP | British Pound |
GEL | Georgian Lari |
GHS | Ghanaian Cedi |
GIP | Gibraltar Pound |
GMD | Gambian Dalasi |
GTQ | Guatemalan Quetzal |
GYD | Guyanaese Dollar |
HKD | Hong Kong Dollar |
HNL | Honduran Lempira |
HTG | Haitian Gourde |
HUF | Hungarian Forint |
IDR | Indonesian Rupiah |
ILS | Israeli New Shekel |
INR | Indian Rupee |
IQD | Iraqi Dinar |
IRR | Iranian Rial |
ISK | Icelandic Króna |
JMD | Jamaican Dollar |
JOD | Jordanian Dinar |
JPY | Japanese Yen |
KES | Kenyan Shilling |
KHR | Cambodian Riel |
KMF | Comorian Franc |
KRW | South Korean Won |
KWD | Kuwaiti Dinar |
KYD | Cayman Islands Dollar |
KZT | Kazakhstani Tenge |
LAK | Laotian Kip |
LBP | Lebanese Pound |
LKR | Sri Lankan Rupee |
LRD | Liberian Dollar |
LYD | Libyan Dinar |
MAD | Moroccan Dirham |
MDL | Moldovan Leu |
MGA | Malagasy Ariary |
MKD | Macedonian Denar |
MMK | Myanmar Kyat |
MOP | Macanese Pataca |
MRU | Mauritanian Ouguiya |
MVR | Maldivian Rufiyaa |
MWK | Malawian Kwacha |
MXN | Mexican Peso |
MYR | Malaysian Ringgit |
MZN | Mozambican Metical |
NGN | Nigerian Naira |
NIO | Nicaraguan Córdoba |
NOK | Norwegian Krone |
NPR | Nepalese Rupee |
NZD | New Zealand Dollar |
OMR | Omani Rial |
PAB | Panamanian Balboa |
PEN | Peruvian Sol |
PGK | Papua New Guinean Kina |
PHP | Philippine Peso |
PKR | Pakistani Rupee |
PLN | Polish Zloty |
PYG | Paraguayan Guarani |
QAR | Qatari Riyal |
RON | Romanian Leu |
RSD | Serbian Dinar |
RUB | Russian Ruble |
RWF | Rwandan Franc |
SAR | Saudi Riyal |
SBD | Solomon Islands Dollar |
SCR | Seychellois Rupee |
SDG | Sudanese Pound |
SEK | Swedish Krona |
SGD | Singapore Dollar |
SHP | St. Helena Pound |
SLL | Sierra Leonean Leone |
SOS | Somali Shilling |
SVC | Salvadoran Colón |
SZL | Swazi Lilangeni |
THB | Thai Baht |
TMT | Turkmenistani Manat |
TND | Tunisian Dinar |
TOP | Tongan Paʻanga |
TRY | Turkish Lira |
TTD | Trinidad & Tobago Dollar |
TWD | New Taiwan Dollar |
TZS | Tanzanian Shilling |
UAH | Ukrainian Hryvnia |
UGX | Ugandan Shilling |
USD | US Dollar |
UYU | Uruguayan Peso |
UZS | Uzbekistani Som |
VES | Venezuelan Bolívar |
VND | Vietnamese Dong |
XAF | Central African CFA Franc |
XCD | East Caribbean Dollar |
XDR | Special Drawing Rights |
XOF | West African CFA Franc |
XPF | CFP Franc |
YER | Yemeni Rial |
ZAR | South African Rand |
ZMW | Zambian Kwacha |
From code
// JavaScript
const res = await fetch('https://supertoolshq.com/api/v1/finance/exchange-rate/?' + new URLSearchParams({ from: 'EUR', to: 'JPY', amount: '250' }));
const data = await res.json();
console.log(data.rate, data.converted);
# Python
import json, urllib.parse, urllib.request
query = urllib.parse.urlencode({'from': 'GBP', 'to': 'INR'})
data = json.load(urllib.request.urlopen('https://supertoolshq.com/api/v1/finance/exchange-rate/?' + query))
print(data['rate'], data['quotedAt']) The conventions every API here follows (methods, errors, versions) are in the API overview.