Best Central Bank & Tax Authority Exchange Rate APIs in 2026 (Ranked & Compared)
Market-rate APIs are a solved problem — we ranked those in our free currency API comparison. Official rates are a different job. When an accountant, auditor, tax office, or contract clause asks for "the ECB rate on 14 March", "the HMRC rate for June", or "the Treasury rate for Q2", a live mid-market feed is the wrong tool. You need the number an institution actually published, under that institution's own publication date, reproducible years later when someone re-opens the file.
That splits into two families of sources. Central banks publish reference rates as a monetary-policy and statistical product, usually one table per business day. Tax authorities publish rates as a compliance instrument — a number frozen for a month (HMRC), a quarter (US Treasury), or both daily and monthly (Swiss customs) — so that every filer converts at the same figure. Neither family is in the API business: a few run genuine JSON APIs, most publish XML, CSV, SDMX, or HTML tables that change without notice.
This ranking compares the realistic options a developer or finance team ends up choosing between in 2026: an aggregator built for official rates, going direct to each institution, an enterprise-positioned aggregator, the free ECB-only APIs, and the market-data giants.
The ranking at a glance
| # | Option | Coverage | Tax authority rates | History | Formats | Free tier |
|---|---|---|---|---|---|---|
| 1 | AllRatesToday Central Bank API | 93 central banks + 3 tax authorities, one endpoint shape | HMRC, US Treasury, Swiss BAZG (daily + monthly VAT) | Back to 2000 for major sources; SNB to 1914, ECB to 1999 | JSON, CSV, XML, XLSX | Yes — permanent, 300 req/mo, no card |
| 2 | Going direct (ECB, BoC Valet, Banca d'Italia, FRED…) | 1 institution per integration | Only if you scrape each authority yourself | Varies — excellent at some, shallow at others | XML / CSV / SDMX / JSON, all different | Yes — the sources are free |
| 3 | GlobalExchangeRates.org | 80+ institutions (claimed) | HMRC + Swiss customs | From 2024-01-01 only | JSON; D365 & QuickBooks connectors | No — 30-day trial, then from $49.99/mo |
| 4 | Frankfurter / exchangerate.host-style free APIs | 1 source (ECB) | None | ECB series (1999+) | JSON | Yes — fully free |
| 5 | Bloomberg / Refinitiv / OANDA | Very broad, official rates among many datasets | Partial, product-dependent | Deep | Platform-specific | No — enterprise contracts |
1. AllRatesToday — every official source, one integration
The structural problem with official rates is not any single institution — it is that every institution is different. Different formats, publication times, holiday behaviour, and quoting conventions (EUR per unit at the ECB, CHF per 100 JPY at the SNB, monthly-only tax tables at HMRC, quarterly at the US Treasury). Integrate three sources directly and you own three parsers plus a small research project; integrate ten and it is a part-time job.
AllRatesToday's central bank API collapses that into one surface: 93 central banks — from the Fed, ECB, Bank of England, and Bank of Japan to Banxico, the RBI, and the National Bank of Georgia — plus 3 tax authorities via the companion tax authority rates API: HMRC's monthly rates, the US Treasury's quarterly Reporting Rates of Exchange, and Switzerland's BAZG with both daily customs rates and the monthly average (Monatsmittelkurs) used for VAT. Each source is ingested from the institution's own published data shortly after publication and served unmodified under its own rate_date.
curl "https://allratestoday.com/api/v1/central-bank/ecb/latest?source=EUR&target=USD" \
-H "Authorization: Bearer art_live_YOUR_KEY" Swap ecb for fed, boe, hmrc, ustreasury, bazg — the request and response shape never change. Beyond the per-source endpoints:
- Cross-bank comparison in one call:
GET /api/v1/central-banks/rates?source=USD&target=EURreturns every institution's latest rate for a pair side by side — useful for sanity checks and for choosing which official rate a policy should adopt. - Composite Official Rate: a trimmed-median blend of the fresh daily official rates, USD-normalized, with the formula published openly at /official-rates-methodology/ — a single defensible "official consensus" number when no one institution is mandated.
- Audit-grade history: back to 2000 for major sources, and much deeper where the institution's archive allows — SNB series to 1914, Bank of Korea to 1964, ECB to its 1999 start.
- Accountant-friendly formats: every table endpoint returns JSON, CSV, XML, or XLSX — the same data lands equally well in a service, a spreadsheet, or an ERP import.
- Tooling: a dedicated zero-dependency npm package per bank (
ecb-exchange-rate,fed-exchange-rate,hmrc-exchange-rate, …) and an MCP server so AI assistants can query official rates directly. - Keyless open endpoint: the latest published table for any source is available with no key at all — e.g.
GET /api/open/central-bank/ecb— CORS-open for dashboards and embeds.
Free tier: permanent, no credit card — every source's latest published table at 300 requests/month. Historical dates and time series are on paid plans.
Honest weaknesses: it is an aggregator, not the publisher — for legal citation you cite the underlying institution (the API preserves the source and publication date precisely so you can). And if you need exactly one bank forever and that bank has a good native API, going direct saves you a dependency — which is what the next section is for.
2. Going direct to the source — free, authoritative, N× the work
Every institution on the list publishes its rates free of charge, and a handful do it well:
- ECB — euro reference rates for ~30 currencies each working day around 16:00 CET, as a daily XML file, CSV dumps, or the SDMX statistical API. Impeccable data, generous licence, and you will write a parser and handle TARGET closing days yourself. See "Is the ECB API free?".
- Bank of Canada Valet — the best native central bank API in the world: clean JSON REST, ~23 currencies against CAD, no key. Its limits are scope: one bank, CAD-only view, daily series since 2017.
- Banca d'Italia — a genuine REST API over the ESCB concertation rates, ~163 currencies against the euro. Good data; its conventions and pagination are its own.
- FRED (St. Louis Fed) — deep historical archives of the Fed's H.10 dollar rates and thousands of related series behind a free registered key. Built for research: series-ID-driven, revised-data semantics, not a "what is today's table" API.
Pros: free, maximally authoritative, no intermediary to trust or pay. Cons: every institution is a separate integration with a different format, auth model, cadence, and holiday behaviour; there is no cross-source normalization, no unified pair math, and no tax-authority coverage unless you also scrape HMRC's monthly tables and the Treasury's quarterly PDFs yourself. You maintain N parsers, and institutions do change their portals without notice.
3. GlobalExchangeRates.org — enterprise-positioned aggregator
GlobalExchangeRates.org attacks the same aggregation problem from the enterprise side: it claims coverage of 80+ institutions, hourly update checks, prebuilt Microsoft Dynamics 365 and QuickBooks integrations, and a 99.9% uptime SLA on its $49.99/month tier. If your requirement is specifically an ERP connector with a contractual SLA, it deserves a look.
The trade-offs are real, though: there is no permanent free tier — a 30-day trial, then paid; historical data only reaches back to 2024-01-01, which is shallow for audit or restatement work where you routinely need rates from five or ten years ago; and tax-authority coverage is limited to HMRC and Swiss customs — no US Treasury quarterly rates. We compare the two aggregators head-to-head in our GlobalExchangeRates alternative page.
4. Frankfurter and the free ECB-only APIs
Frankfurter (and the many exchangerate.host-style free APIs) wrap the ECB's daily reference table in a pleasant, keyless JSON API. For a hobby project that just needs "an official-ish euro rate", they are genuinely great — free, simple, no signup.
For accounting or compliance they run out of road quickly: one source (the ECB), ~30 currencies, no tax authorities, no cross-bank comparison, and no answer at all when the rate you are required to use is the Banxico FIX, the HMRC monthly rate, or the Treasury quarter-end number. They are an ECB delivery mechanism, not an official-rates product.
5. Bloomberg, Refinitiv, OANDA — the enterprise data platforms
The market-data giants carry official reference rates among thousands of other datasets, with deep history and serious infrastructure. If your organisation already licenses a terminal or a data feed, official central bank fixings may already be in the catalogue you pay for.
The obstacles are cost and shape: enterprise contracts and per-dataset licensing rather than a self-serve API key, platform-specific delivery, and an offering designed around trading desks rather than a finance team that needs "the official table for this date, as a spreadsheet". For most accounting and tax use cases they are the most expensive path to a number the publishing institution gives away.
How to choose: four criteria that actually matter
- Citability. Can you name the institution, the publication date, and reproduce the exact figure later? An official-rates API must preserve the source's own
rate_dateand never silently blend sources into an unattributable number (a composite is fine only when its formula is published). - History depth. Audits, restatements, and transfer-pricing reviews reach back 6–10+ years. History that starts in 2024 cannot answer a 2021 question. Check the archive depth per source, not the marketing number.
- Tax-authority coverage. If you file VAT in the UK, customs in Switzerland, or federal reports in the US, the central bank's rate is often not the required one — you need HMRC monthly, BAZG daily/monthly, or Treasury quarterly rates specifically. See which rate customs and tax filings require.
- Formats accountants use. Engineers want JSON; the people who own the numbers want CSV and XLSX that open straight in Excel, and XML for older ERP importers. An API that only speaks JSON pushes conversion work onto the finance team.
- One bank, forever, with a real API (Canada, Italy): go direct — free and authoritative.
- Two or more sources, or any tax/compliance requirement: an aggregator pays for itself almost immediately; the per-institution differences are exactly the part you do not want to maintain. Compare aggregators on the four criteria above.
- Live market rates instead: different job, different winners — see the free currency API ranking.
FAQ
Which exchange rate should I use for tax returns?
The rate your tax authority prescribes. UK: HMRC's monthly exchange rates for VAT and customs. US: the Treasury's quarterly Reporting Rates of Exchange for federal reporting (the IRS also accepts consistent use of a yearly average). Switzerland: BAZG daily customs rates, or the monthly Monatsmittelkurs for VAT. Where no tax-authority rate exists, the national central bank's reference rate is the customary fallback — but check the specific regulation.
What is the difference between a central bank rate and a tax authority rate?
A central bank reference rate is a daily statistical/monetary-policy product. A tax authority rate is frozen for a filing period — a month at HMRC, a quarter at the US Treasury — so every filer converts at the same number. They can differ noticeably from each other and from the market.
What is the best central bank exchange rate API?
For a single bank with a good native API, the bank's own feed. For multiple banks or compliance work, AllRatesToday serves 93 central banks and 3 tax authorities through one endpoint shape and one key, with the latest table free and output in JSON, CSV, XML, or XLSX.
Are central bank exchange rates free?
Publication is part of the institutions' public mandate, so the data is free; the engineering cost of consuming N different delivery mechanisms is where the money goes. Free aggregated access exists too — including a keyless open endpoint for any source's latest table.
How much history do I need for audits?
Plan for at least a decade: statutory retention commonly runs 6–10 years and restatements reach further. AllRatesToday's archive goes back to 2000 for major sources — SNB to 1914, Bank of Korea to 1964, ECB to 1999.
93 central banks. 3 tax authorities. One API key.
Every source's latest published table is free — 300 requests/month, no credit card. JSON, CSV, XML, or Excel.
Get your free API keyRelated Articles
- All covered central banks — product page
- Tax authority exchange rates — product page
- Composite Official Rate — open methodology
- GlobalExchangeRates.org alternative — head-to-head
- Study: how much official exchange rates disagree
- Is the ECB exchange rate API free?
- ECB vs Fed vs BoE: which official rate should you use?
- Which rate customs and tax filings require
- Central bank exchange rates in Power BI
- 10 Best Free Currency Exchange APIs in 2026