Bank of Namibia Exchange Rate API: Official NAD Rates as JSON

Reviewed by Madhushan, Fintech Developer — September 2026

The Bank of Namibia publishes the official exchange rates that accounting, tax, and customs rules in Namibia reference — published official rates, not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency bank-of-namibia-exchange-rate npm package.

What the Bank of Namibia publishes

For Namibian customs, tax and bank conversion the reference is the Bank of Namibia's own indicative rate, not a South African quote — even though the peg means the two rarely differ — and the API serves that figure with the bank's own date.

Why official rates, not market rates

A live mid-market feed answers "what is USD/NAD trading at right now?" — the right tool for checkouts and dashboards. But accountants, auditors, and tax authorities ask a different question: "which rate were you required to use for this date?" That answer comes from the Bank of Namibia's published rates, and it never changes after publication.

Get the latest rates (REST)

curl "https://allratestoday.com/api/v1/central-bank/bon/latest" \
  -H "Authorization: Bearer YOUR_API_KEY"

The response is the bank's most recent published data — every rate and the publication date. The latest rates are available on every plan, including the free tier (300 requests/month, no credit card).

The npm SDK

npm install bank-of-namibia-exchange-rate
import { getRate, getLatestRates } from 'bank-of-namibia-exchange-rate';

// One pair at the official Bank of Namibia rate
const pair = await getRate('USD', 'NAD', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date);

// The bank's full published table
const table = await getLatestRates({ apiKey: 'art_live_...' });
console.log(table.rate_date, table.rates.length);

Zero dependencies, TypeScript types included, and it runs anywhere fetch exists — Node 18+, Bun, Deno, and edge runtimes.

Historical rates for an invoice date

import { getRatesForDate, getHistory } from 'bank-of-namibia-exchange-rate';

// The official rates for an invoice date — non-publication days return
// the most recent published date, flagged via published_on_requested_date.
const day = await getRatesForDate('2026-09-09', { apiKey: 'art_live_...' });

// Time series for one pair
const series = await getHistory(
  { source: 'USD', target: 'NAD', from: '2026-09-09' },
  { apiKey: 'art_live_...' }
);

Historical dates and time series need a paid plan; the latest rates stay free.

Published vs derived pairs

If the Bank of Namibia does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via NAD — and flags it derived: true with the method used. Official and computed values are never silently mixed, which is exactly the distinction an auditor will ask about.

History builds forward from September 2026

The Bank of Namibia serves only the current day's rates and keeps no public archive, so there is no back-history to load: our record starts on 9 September 2026 and grows by one table every business day the bank publishes. From that date on, a past invoice date is one call away; for earlier dates the API returns nothing rather than a guess.

FAQ

Does the Bank of Namibia have an official exchange rate API?

The Bank of Namibia publishes its official rates on its own site, and AllRatesToday serves the same published rates as clean JSON via REST or the bank-of-namibia-exchange-rate npm package. The latest rates are free (300 requests/month); historical dates need a paid plan.

How often do Bank of Namibia rates update?

Once per business day, as an indicative rate for USD, EUR, GBP and AOA in Namibia dollars per unit. The bank shows only the current day, so the API archives each day's table as it appears; every response carries the bank's own rate date.

Can I get the Bank of Namibia rate for a past date, like an invoice date?

For dates from 9 September 2026 onward, yes: the /central-bank/bon/rates-for-date endpoint returns the official rates for any archived date, and non-publication days resolve to the most recent published date, flagged via published_on_requested_date. The Bank of Namibia publishes no archive, so there is no data before that date.

Official Bank of Namibia rates, as JSON

The latest rates are free — 300 requests/month, no credit card.

Get your free API key

Related Articles