Central bank exchange rate SDKs for Node.js — 105 npm packages
One zero-dependency npm package per central bank and tax authority: official published exchange rates (ECB, Fed, Bank of England, RBI and 101+ more) for Node.js and TypeScript, with history and daily series.
getRate,
getLatestRates, getRatesForDate, getHistory — so
switching banks is a one-line import change. Each is also mirrored under the
@allratestoday npm scope.
Need live mid-market rates instead? Use
@allratestoday/sdk.
npm install ecb-exchange-rate
import { getRate } from 'ecb-exchange-rate';
const pair = await getRate('USD', 'EUR', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date); // the ECB's own published rate and date All packages: zero dependencies, ESM + CommonJS, TypeScript types included, Node 18+ / Bun / Deno / edge runtimes. The latest published table is on the free plan; historical dates and series need a paid plan. Get a key at /register.
Europe 21
North America 3
Latin America & Caribbean 18
Asia & Pacific 29
Middle East 11
Africa 20
Tax authorities 3
Statutory rates published by tax bodies rather than central banks — the figures returns and customs declarations must use.
Not using Node.js?
The same endpoints are reachable from any language over REST — see each bank's page under
Central Bank Rates API for curl examples,
or use the general SDKs for Python, PHP, Go and Rust. AI agents can
use the MCP server.