Home Documentation Bank Rates Playground Pricing API Status Blog About FAQ Support

CBN Exchange Rate API: Official NGN Rates as JSON

Reviewed by Madhushan, Fintech Developer — August 2026

Central Bank of Nigeria publishes an official table of exchange rates once per business day — buying, central (mid), and selling rates — covering 14 currencies against the NGN. These are the published central bank rates used for tax filings, customs valuations, audits, and compliant invoicing — not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency cbn-exchange-rate npm package, with history back to 2001.

USD → NGN — official Central Bank of Nigeria middle rate
Weekly observations, Aug '25 – Aug '26 · Nigerian nairas per 1 US dollar
1,4001,500Aug '25Nov '25Jan '26May '26Aug '261,3622025-08-01: 1,533 NGN2025-08-08: 1,533 NGN2025-08-15: 1,532 NGN2025-08-22: 1,535 NGN2025-08-29: 1,531 NGN2025-09-04: 1,514 NGN2025-09-12: 1,501 NGN2025-09-19: 1,487 NGN2025-09-26: 1,480 NGN2025-10-03: 1,465 NGN2025-10-10: 1,455 NGN2025-10-17: 1,475 NGN2025-10-24: 1,457 NGN2025-10-31: 1,421 NGN2025-11-07: 1,436 NGN2025-11-14: 1,442 NGN2025-11-21: 1,456 NGN2025-11-28: 1,446 NGN2025-12-05: 1,450 NGN2025-12-12: 1,454 NGN2025-12-19: 1,464 NGN2025-12-24: 1,443 NGN2025-12-31: 1,435 NGN2026-01-02: 1,430 NGN2026-01-09: 1,423 NGN2026-01-16: 1,417 NGN2026-01-23: 1,421 NGN2026-01-30: 1,386 NGN2026-02-06: 1,366 NGN2026-02-13: 1,355 NGN2026-02-20: 1,346 NGN2026-02-27: 1,363 NGN2026-03-06: 1,393 NGN2026-03-13: 1,366 NGN2026-03-18: 1,353 NGN2026-03-27: 1,380 NGN2026-04-02: 1,380 NGN2026-04-10: 1,356 NGN2026-04-17: 1,343 NGN2026-04-24: 1,358 NGN2026-04-30: 1,374 NGN2026-05-08: 1,361 NGN2026-05-15: 1,371 NGN2026-05-22: 1,375 NGN2026-05-29: 1,373 NGN2026-06-05: 1,362 NGN2026-06-11: 1,363 NGN2026-06-19: 1,370 NGN2026-06-26: 1,380 NGN2026-07-03: 1,370 NGN2026-07-10: 1,379 NGN2026-07-17: 1,380 NGN2026-07-24: 1,362 NGN2026-07-31: 1,368 NGN2026-08-04: 1,362 NGN
Source: Central Bank of Nigeria published rates · chart data from the AllRatesToday API (/api/v1/central-bank/cbn/history?source=USD&target=NGN).

What the CBN publishes

Why official rates, not market rates

A live mid-market feed answers "what is USD/NGN 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 central bank's published table, and it never changes after publication.

The CBN official rates — published as buying, central, and selling values — are the standard naira benchmark for customs valuations, tax filings, and regulatory reporting in Nigeria, with official history back to 2001.

Get the latest table (REST)

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

The response is the bank's most recent published table — every currency, the NGN value, and the publication date:

{
  "bank": "cbn",
  "rate_date": "2026-08-03",
  "base": "NGN",
  "rates": [ { "currency": "USD", "rate": 1.2345, "official": true }, ... ]
}

The latest table is available on every plan, including the free tier (300 requests/month, no credit card). Since the table changes once per business day, caching it locally makes even a small quota go a long way.

The npm SDK

npm install cbn-exchange-rate
import { getRate, getLatestRates } from 'cbn-exchange-rate';

// One pair at the official Central Bank of Nigeria rate
const pair = await getRate('USD', 'NGN', { 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

The most common compliance job: an invoice dated months ago needs the official rate for that date.

import { getRatesForDate, getHistory } from 'cbn-exchange-rate';

// The official table for an invoice date — weekends/holidays return
// the most recent published date, flagged via published_on_requested_date.
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });

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

Historical dates and time series need a paid plan; the latest table stays free.

Published vs derived pairs

If the CBN does not print a pair directly, the API resolves it from the bank's table — an inverse, or a cross rate via NGN — 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.

FAQ

Does Central Bank of Nigeria have an official exchange rate API?

Central Bank of Nigeria publishes its official rates on its website, but not always in a developer-friendly form. AllRatesToday serves the bank's published table as clean JSON — 14 currencies, with history back to 2001 — via REST or the cbn-exchange-rate npm package. The latest table is free.

How often do Central Bank of Nigeria rates update?

Once per business day. These are published reference rates, not moving market prices — the table changes when the CBN publishes a new one, and every API response carries the bank's own publication date so you can cite it.

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

Yes. The /central-bank/cbn/rates-for-date endpoint returns the official table for any date back to 2001. Weekends and holidays resolve to the most recent published table and are flagged, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.

Official Central Bank of Nigeria rates, as JSON

The latest table is free — 300 requests/month, no credit card.

Get your free API key

Related Articles