Official exchange rates for developers

Most currency APIs return a market rate: a mid-point from trading venues that moves every few seconds. That is the right number for a price display or a converter. It is the wrong number for a lot of business software.

Accounting, tax, customs and treasury systems usually need an official rate: the table a central bank, tax office or customs authority publishes, once a day or once a period, for a fixed date.

When the official rate is required

What makes this hard

Every publisher has its own format, schedule and website. Some publish a daily XML file, some a PDF every two weeks, some a table that changes only on holidays. Building and maintaining a scraper for each one is a project of its own.

AllRatesToday's central bank rates API collects the official tables from 141 central banks and 68 tax and customs authorities and serves them in one JSON format, with the date each rate applies to and history back to the start of each series.

Guides on this site