Historical official exchange rates by API

Back-testing a pricing model, restating old invoices, checking a past tax filing, or charting a currency over ten years all need history. For official rates, the history is the series of tables each publisher released, one per publication day.

A time series for one pair

curl -H "Authorization: Bearer $ALLRATES_KEY"   "https://allratestoday.com/api/v1/central-bank/ecb/history?source=EUR&target=USD&from=2025-01-01&to=2025-12-31"

All pairs for one currency

Use symbol to get every rate that involves one currency over the range:

curl -H "Authorization: Bearer $ALLRATES_KEY"   "https://allratestoday.com/api/v1/central-bank/boc/history?symbol=USD&from=2024-01-01"

As a spreadsheet

Add format=csv or format=xlsx to download the same series as a file.

Things to know about official history

A comparison of history coverage across providers: historical exchange rate APIs compared.