API Directory › 💵 Finance & Stocks › ExchangeRate-API
API KeyHTTPSCORS

ExchangeRate-API

Simple, reliable currency conversion and exchange rate API with a free tier.

Auth
API Key
HTTPS
Yes
CORS
Yes
Open ExchangeRate-API docs ↗

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

https://v6.exchangerate-api.com/v6

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 (keyed)
curl -s "https://v6.exchangerate-api.com/v6/$ERA_KEY/latest/USD"
curl (open, no key)
curl -s "https://open.er-api.com/v6/latest/EUR"
Python
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_ratesObject mapping currency code → rate vs the base
base_codeThe base currency you requested
time_last_update_unix / _utcWhen the rates were last refreshed
conversion_rate / conversion_resultFrom the /pair endpoint
resultsuccess or error

Common errors

error-type: invalid-keyKey missing or wrong in the path.
error-type: unsupported-codeCurrency code not in ISO 4217 / not supported.
error-type: quota-reachedMonthly 1,500-request cap hit.
error-type: malformed-requestPath 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Currency ConverterROI Calculator

Related Finance & Stocks APIs

← Back

More Finance & Stocks APIs · All 196 APIs