MintRates Currency Exchange Rates
Convert currencies with the European Central Bank official daily reference rates. Latest, historical (90 days) and 30 currencies.
This API is live on our Worker and is being listed on RapidAPI. The host below is the expected RapidAPI hostname once the listing is public. Until then the examples will work after you subscribe.
Endpoints
| Path | What it does |
|---|---|
/latest | Latest rates against a base currency |
/convert | Convert an amount from one currency to another |
/historical | Rates for a date in the last 90 business days |
/currencies | Supported currencies |
Examples
Replace YOUR_KEY with your RapidAPI key. Host: mintrates-currency-exchange-rates.p.rapidapi.com
curl
curl --request GET \
--url 'https://mintrates-currency-exchange-rates.p.rapidapi.com/convert?from=USD&to=EUR&amount=100' \
--header 'X-RapidAPI-Key: YOUR_KEY' \
--header 'X-RapidAPI-Host: mintrates-currency-exchange-rates.p.rapidapi.com'
JavaScript
const res = await fetch('https://mintrates-currency-exchange-rates.p.rapidapi.com/convert?from=USD&to=EUR&amount=100', {
headers: {
'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
'X-RapidAPI-Host': 'mintrates-currency-exchange-rates.p.rapidapi.com'
}
});
const data = await res.json();
Python
import os, requests
r = requests.get(
'https://mintrates-currency-exchange-rates.p.rapidapi.com/convert?from=USD&to=EUR&amount=100',
headers={
'X-RapidAPI-Key': os.environ['RAPIDAPI_KEY'],
'X-RapidAPI-Host': 'mintrates-currency-exchange-rates.p.rapidapi.com',
},
)
print(r.json())
Notes
Nothing you send is stored by our code. Calls go through RapidAPI, which bills according to the plan you pick. The origin runs on Cloudflare Workers.