API Directory › 💵 Finance & Stocks › Open Exchange Rates
API KeyHTTPSCORS

Open Exchange Rates API

Reliable exchange rate data for 200+ currencies, updated frequently.

Auth
API Key
HTTPS
Yes
CORS
Yes
Open Open Exchange Rates docs ↗

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

https://openexchangerates.org/api

Authentication

Sign up for a free App ID and pass it as ?app_id=YOUR_ID.

Code examples

curl
curl -s "https://openexchangerates.org/api/latest.json?app_id=$OXR_APP_ID"
Python (historical)
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

ratesMap of currency code → rate per 1 USD
baseAlways USD on the free tier
timestampUnix time the rates were published
(historical) ratesSame shape, for the requested date

Common errors

401 invalid_app_idApp ID missing or wrong.
429 not_allowed / access_restrictedMonthly quota reached or feature not on your plan.
400 invalid_baseYou asked for a non-USD base on the free tier.
404 not_foundBad 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.

🛠️ 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