ExchangeRate-API
Simple, reliable currency conversion and exchange rate API with a free tier.
What it does
ExchangeRate-API returns currency exchange rates for 160+ currencies with a simple, stable JSON shape. It has a key-authenticated v6 API and a completely open, key-less endpoint for basic latest rates.
Base URL
Authentication
Free key: put it in the path — /v6/YOUR_KEY/latest/USD. Or skip keys entirely with the open endpoint https://open.er-api.com/v6/latest/USD (attribution requested).
Code examples
curl -s "https://v6.exchangerate-api.com/v6/$ERA_KEY/latest/USD"
curl -s "https://open.er-api.com/v6/latest/EUR"
import requests
r = requests.get(f"https://v6.exchangerate-api.com/v6/{KEY}/pair/USD/NGN/100", timeout=10)
d = r.json()
print(d["conversion_rate"], "->", d["conversion_result"])Rate limits & quotas
Free keyed plan: 1,500 requests/month with rates refreshed once per day. The open endpoint has no hard cap but also updates daily and asks for a link-back. Both return result: "error" with an error-type on failure.
Key response fields
| conversion_rates | Object mapping currency code → rate vs the base |
| base_code | The base currency you requested |
| time_last_update_unix / _utc | When the rates were last refreshed |
| conversion_rate / conversion_result | From the /pair endpoint |
| result | success or error |
Common errors
| error-type: invalid-key | Key missing or wrong in the path. |
| error-type: unsupported-code | Currency code not in ISO 4217 / not supported. |
| error-type: quota-reached | Monthly 1,500-request cap hit. |
| error-type: malformed-request | Path structure is wrong — check the docs order. |
When to use it (and alternatives)
A solid, boring choice for daily FX rates and currency conversion in invoicing, pricing and travel apps. For ECB-sourced rates with history and no key at all, Frankfurter is excellent; for hourly updates see Open Exchange Rates.
FAQ
How often do rates update on the free plan?
Once every 24 hours. The time_next_update_unix field tells you when the next refresh is due, so you can schedule your fetch.
Do I really not need a key?
For basic latest rates, the open.er-api.com endpoint needs no key. The keyed v6 API adds conversion helpers, historical data (paid) and higher reliability.
Which currencies are supported?
Around 161, covering all widely traded fiat currencies. Call /codes (keyed) for the authoritative list.
New to APIs?
Short guides for working with this API — and any other.