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

Central Bank of Bahrain Exchange Rate API: Official BHD Rates as JSON

Reviewed by Madhushan, Fintech Developer — August 2026

Central Bank of Bahrain publishes an official table of exchange rates once per business day — daily reference rates — covering 33 currencies against the BHD. 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 cbb-exchange-rate npm package, with history back to 2016.

What 1 unit buys in BHD — official Central Bank of Bahrain published rate
Bahraini dinars per 1 unit · table published 2026-08-04
KWD1 KWD = 1.215 BHD1.215GBP1 GBP = 0.5050 BHD0.5050CHF1 CHF = 0.4641 BHD0.4641EUR1 EUR = 0.4328 BHD0.4328USD1 USD = 0.3761 BHD0.3761SGD1 SGD = 0.2932 BHD0.2932AUD1 AUD = 0.2632 BHD0.2632SAR1 SAR = 0.1001 BHD0.1001
Source: Central Bank of Bahrain published table for 2026-08-04 · data from the AllRatesToday API (/api/v1/central-bank/cbb/latest).

What the CBB publishes

Why official rates, not market rates

A live mid-market feed answers "what is USD/BHD 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 Bahraini dinar is pegged to the US dollar at 0.376 BHD/USD, and the CBB's daily table of 33 currencies is the official benchmark for BHD conversion in Bahrain's large financial-services sector. Bahrain's work week runs Sunday to Thursday.

Get the latest table (REST)

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

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

{
  "bank": "cbb",
  "rate_date": "2026-08-03",
  "base": "BHD",
  "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 cbb-exchange-rate
import { getRate, getLatestRates } from 'cbb-exchange-rate';

// One pair at the official Central Bank of Bahrain rate
const pair = await getRate('USD', 'BHD', { 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 'cbb-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: 'BHD', 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 CBB does not print a pair directly, the API resolves it from the bank's table — an inverse, or a cross rate via BHD — 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 Bahrain have an official exchange rate API?

Central Bank of Bahrain 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 — 33 currencies, with history back to 2016 — via REST or the cbb-exchange-rate npm package. The latest table is free.

How often do Central Bank of Bahrain rates update?

Once per business day. These are published reference rates, not moving market prices — the table changes when the CBB 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 Bahrain rate for a past date, like an invoice date?

Yes. The /central-bank/cbb/rates-for-date endpoint returns the official table for any date back to 2016. 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 Bahrain rates, as JSON

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

Get your free API key

Related Articles