Important
Exchange Rate API has joined AllRatesToday. Existing API keys and endpoints (exchange-rateapi.com/api/*) keep working unchanged. New signups, docs, and guides now live at allratestoday.com — which now also serves official central-bank rates from 24 central banks (ECB, US Federal Reserve, Bank of England, People's Bank of China, Reserve Bank of India, Central Bank of Sri Lanka, and more) for tax, audit, and compliance work: coverage map & docs.
Exchange Rate API provides accurate, real-time and historical currency exchange rate data through a simple REST API. Mid-market rates from institutional interbank market data, fetched live — no markup, no spread.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://exchange-rateapi.com/api/v1/rates?source=USD&target=EUR,GBP,JPY"[
{ "source": "USD", "target": "EUR", "rate": 0.9234, "time": "2026-05-25T12:00:00Z" },
{ "source": "USD", "target": "GBP", "rate": 0.7891, "time": "2026-05-25T12:00:00Z" },
{ "source": "USD", "target": "JPY", "rate": 149.52, "time": "2026-05-25T12:00:00Z" }
]| Language | Package | Install |
|---|---|---|
| JavaScript/TypeScript | @exchangerateapi/sdk | npm i @exchangerateapi/sdk |
| Python | exchangerateapi | pip install exchangerateapi |
| PHP | exchangerateapi/sdk | composer require exchangerateapi/sdk |
Website | API Docs | API Reference | Central Bank Rates | Get Free API Key | Pricing