Free historical exchange rates by API
The easiest free source is Frankfurter (api.frankfurter.dev), which serves the European Central Bank's reference rates for any date since 1999 with no key, including time series. You can also download the ECB's own history file and read it yourself. Our Historical Exchange Rates API serves the same ECB data with any base currency, a note when a date falls on a weekend, and min, max, mean and change for a range, for $0.003 per call.
Try it free Historical Exchange Rates API — ECB rates since 1999, $0.003 · $0.003 / call
Free sources compared
Checked December 2026.
| Source | Key | History | Notes |
|---|---|---|---|
| Frankfurter | None | ECB rates since 1999, time series | Older api.frankfurter.app URLs now redirect to api.frankfurter.dev |
| ECB history file (eurofxref-hist) | None | Every fixing since 1999 in one CSV | You parse and compute cross rates yourself |
| exchangerate.host | Now needs an apilayer key | Per its plans | Old keyless tutorials no longer work |
| Historical Exchange Rates (iamai.markets) | None; x402 | ECB since 1999-01-04, ranges up to a year | $0.003 per call |
Things that surprise people
- No weekend rates. The ECB fixes rates on TARGET working days only. For a Saturday, use Friday's rate and say so.
- Reference, not trading. ECB rates are set around 16:00 CET for information. Your bank's rate on the same day will differ.
- Everything is against the euro. A USD to JPY rate is computed as EUR/JPY divided by EUR/USD.
- About 30 current currencies. Many currencies, including several large emerging ones, aren't quoted by the ECB at all.
One date, or a whole range
A single date returns rate_date next to requested_date, so you can see when the previous fixing was used. Ranges can cover up to one year per call. Currencies the ECB didn't quote on that date are refused and not charged.
curl -i -X POST https://iamai.markets/api/x402/services/UrX8-O3z1qRQ \
-H "Content-Type: application/json" \
-d '{"date": "2020-03-16", "base": "USD", "symbols": ["EUR", "GBP", "JPY"]}'
# Range: {"start": "2024-01-01", "end": "2024-12-31", "base": "USD", "symbols": ["EUR"]}
# returns a daily series plus summary: first, last, min, max, mean, change_pct
Which to pick
If you can call a free endpoint from your code, Frankfurter is excellent and costs nothing. Pay per call when you want an AI agent or a no-code flow to get a ready summary, such as the yearly average rate for a tax report, without writing the maths.
The product
Questions
Which rate should I use for accounting?
Ask your accountant or tax authority; many accept ECB reference rates or a central bank rate. Use one source consistently.
Are there rates before 1999?
Not from the ECB, since the euro started in 1999. Use your national central bank for older data.
How fresh is today's rate?
The ECB publishes in the afternoon CET on working days. Our copy of the file is cached for up to a day.
Related
Updated 2026-12-02
