Open Exchange Rates API
Reliable exchange rate data for 200+ currencies, updated frequently.
What it does
Open Exchange Rates delivers exchange rates for 200+ currencies (including many crypto and precious metals), updated hourly, with historical daily rates back to 1999, time-series and currency conversion endpoints.
Base URL
Authentication
Sign up for a free App ID and pass it as ?app_id=YOUR_ID.
Code examples
curl -s "https://openexchangerates.org/api/latest.json?app_id=$OXR_APP_ID"
import requests
r = requests.get("https://openexchangerates.org/api/historical/2026-01-15.json",
params={"app_id": APP_ID}, timeout=10)
rates = r.json()["rates"]
print("USD->GBP on 2026-01-15:", rates["GBP"])Rate limits & quotas
Free plan: 1,000 requests/month, hourly updates, and USD base only (convert between other pairs yourself via USD). Historical, time-series and custom-base features need a paid plan. Errors return a JSON {"error": true, "status": …, "message": …}.
Key response fields
| rates | Map of currency code → rate per 1 USD |
| base | Always USD on the free tier |
| timestamp | Unix time the rates were published |
| (historical) rates | Same shape, for the requested date |
Common errors
| 401 invalid_app_id | App ID missing or wrong. |
| 429 not_allowed / access_restricted | Monthly quota reached or feature not on your plan. |
| 400 invalid_base | You asked for a non-USD base on the free tier. |
| 404 not_found | Bad endpoint path or date. |
When to use it (and alternatives)
Good when hourly freshness matters and USD-base is acceptable. For free custom-base rates and free history, Frankfurter wins; ExchangeRate-API is a close daily-update alternative.
FAQ
How do I convert between two non-USD currencies?
On the free tier, fetch latest.json (USD base) and compute the cross rate: rate(EUR→GBP) = rates['GBP'] / rates['EUR'].
Is historical data free?
Only the current day is guaranteed on free; the historical/{date}.json endpoint is officially a paid feature, though limited access varies. Assume you need a paid plan for backfills.
How current are the rates?
Updated every hour on the free plan (every 30 or 60 minutes, and down to every-minute, on paid tiers). Check timestamp.
New to APIs?
Short guides for working with this API — and any other.