Made on Earth Donate

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

NameValuesDefaultMeaning
fromCurrency coderequiredThe currency you have. Any case: usd works.
toCurrency coderequiredThe currency you want.
amountNumber1How much of from to convert. Commas and spaces are ignored; the decimal point is a dot.

Response

FieldTypeMeaning
from, toobjectcode (in capitals) and English name of each currency.
amountnumberThe amount as understood (default 1).
ratenumberUnits of to for one from, to 8 significant digits. A pair with no market quote of its own is crossed through the US dollar.
inverseRatenumberUnits of from for one to.
convertednumberamount in to: to the cent from 100 up, otherwise to 4 significant digits.
quotedAtstringTime 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.

CodeCurrency
AEDUnited Arab Emirates Dirham
AFNAfghan Afghani
ALLAlbanian Lek
AMDArmenian Dram
AOAAngolan Kwanza
ARSArgentine Peso
AUDAustralian Dollar
AWGAruban Florin
AZNAzerbaijani Manat
BAMBosnia-Herzegovina Convertible Mark
BBDBarbadian Dollar
BDTBangladeshi Taka
BHDBahraini Dinar
BIFBurundian Franc
BMDBermudan Dollar
BNDBrunei Dollar
BOBBolivian Boliviano
BRLBrazilian Real
BSDBahamian Dollar
BWPBotswanan Pula
BYNBelarusian Ruble
BZDBelize Dollar
CADCanadian Dollar
CDFCongolese Franc
CHFSwiss Franc
CLPChilean Peso
CNHChinese Yuan (offshore)
CNYChinese Yuan
COPColombian Peso
CRCCosta Rican Colón
CUPCuban Peso
CVECape Verdean Escudo
CZKCzech Koruna
DJFDjiboutian Franc
DKKDanish Krone
DOPDominican Peso
DZDAlgerian Dinar
EGPEgyptian Pound
ETBEthiopian Birr
EUREuro
FJDFijian Dollar
FKPFalkland Islands Pound
GBPBritish Pound
GELGeorgian Lari
GHSGhanaian Cedi
GIPGibraltar Pound
GMDGambian Dalasi
GTQGuatemalan Quetzal
GYDGuyanaese Dollar
HKDHong Kong Dollar
HNLHonduran Lempira
HTGHaitian Gourde
HUFHungarian Forint
IDRIndonesian Rupiah
ILSIsraeli New Shekel
INRIndian Rupee
IQDIraqi Dinar
IRRIranian Rial
ISKIcelandic Króna
JMDJamaican Dollar
JODJordanian Dinar
JPYJapanese Yen
KESKenyan Shilling
KHRCambodian Riel
KMFComorian Franc
KRWSouth Korean Won
KWDKuwaiti Dinar
KYDCayman Islands Dollar
KZTKazakhstani Tenge
LAKLaotian Kip
LBPLebanese Pound
LKRSri Lankan Rupee
LRDLiberian Dollar
LYDLibyan Dinar
MADMoroccan Dirham
MDLMoldovan Leu
MGAMalagasy Ariary
MKDMacedonian Denar
MMKMyanmar Kyat
MOPMacanese Pataca
MRUMauritanian Ouguiya
MVRMaldivian Rufiyaa
MWKMalawian Kwacha
MXNMexican Peso
MYRMalaysian Ringgit
MZNMozambican Metical
NGNNigerian Naira
NIONicaraguan Córdoba
NOKNorwegian Krone
NPRNepalese Rupee
NZDNew Zealand Dollar
OMROmani Rial
PABPanamanian Balboa
PENPeruvian Sol
PGKPapua New Guinean Kina
PHPPhilippine Peso
PKRPakistani Rupee
PLNPolish Zloty
PYGParaguayan Guarani
QARQatari Riyal
RONRomanian Leu
RSDSerbian Dinar
RUBRussian Ruble
RWFRwandan Franc
SARSaudi Riyal
SBDSolomon Islands Dollar
SCRSeychellois Rupee
SDGSudanese Pound
SEKSwedish Krona
SGDSingapore Dollar
SHPSt. Helena Pound
SLLSierra Leonean Leone
SOSSomali Shilling
SVCSalvadoran Colón
SZLSwazi Lilangeni
THBThai Baht
TMTTurkmenistani Manat
TNDTunisian Dinar
TOPTongan Paʻanga
TRYTurkish Lira
TTDTrinidad & Tobago Dollar
TWDNew Taiwan Dollar
TZSTanzanian Shilling
UAHUkrainian Hryvnia
UGXUgandan Shilling
USDUS Dollar
UYUUruguayan Peso
UZSUzbekistani Som
VESVenezuelan Bolívar
VNDVietnamese Dong
XAFCentral African CFA Franc
XCDEast Caribbean Dollar
XDRSpecial Drawing Rights
XOFWest African CFA Franc
XPFCFP Franc
YERYemeni Rial
ZARSouth African Rand
ZMWZambian 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.