Bank Indonesia Exchange Rate API: Official IDR Rates as JSON

Reviewed by Madhushan, Fintech Developer — August 2026

Bank Indonesia publishes an official table of exchange rates once per business day — the transaction middle rates — covering ~25 currencies against the IDR. These are the published central bank rates used for tax filings, customs valuations, audits, and compliant invoicing in Indonesia — not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency bank-indonesia-exchange-rate npm package, with history back to 2016.

USD → IDR — official Bank Indonesia transaction-rate midpoint
Weekly observations, Aug '25 – Aug '26 · Indonesian rupiahs per 1 US dollar
16,00017,00018,000Aug '25Nov '25Jan '26May '26Aug '2617,9912025-08-01: 16,459 IDR2025-08-08: 16,312 IDR2025-08-15: 16,109 IDR2025-08-22: 16,283 IDR2025-08-29: 16,356 IDR2025-09-04: 16,424 IDR2025-09-12: 16,468 IDR2025-09-19: 16,498 IDR2025-09-26: 16,752 IDR2025-10-03: 16,612 IDR2025-10-10: 16,534 IDR2025-10-17: 16,580 IDR2025-10-24: 16,645 IDR2025-10-31: 16,640 IDR2025-11-07: 16,707 IDR2025-11-14: 16,732 IDR2025-11-21: 16,742 IDR2025-11-28: 16,644 IDR2025-12-05: 16,646 IDR2025-12-12: 16,668 IDR2025-12-19: 16,722 IDR2025-12-24: 16,790 IDR2025-12-31: 16,782 IDR2026-01-02: 16,720 IDR2026-01-09: 16,801 IDR2026-01-15: 16,871 IDR2026-01-23: 16,902 IDR2026-01-30: 16,786 IDR2026-02-06: 16,826 IDR2026-02-13: 16,826 IDR2026-02-20: 16,925 IDR2026-02-27: 16,758 IDR2026-03-06: 16,886 IDR2026-03-13: 16,899 IDR2026-03-17: 16,990 IDR2026-03-27: 16,903 IDR2026-04-02: 17,002 IDR2026-04-10: 17,082 IDR2026-04-17: 17,142 IDR2026-04-24: 17,308 IDR2026-04-30: 17,324 IDR2026-05-08: 17,362 IDR2026-05-13: 17,514 IDR2026-05-22: 17,673 IDR2026-05-29: 17,789 IDR2026-06-05: 18,039 IDR2026-06-12: 17,981 IDR2026-06-19: 17,826 IDR2026-06-26: 17,942 IDR2026-07-03: 17,994 IDR2026-07-10: 18,090 IDR2026-07-17: 18,041 IDR2026-07-24: 17,915 IDR2026-07-31: 18,078 IDR2026-08-04: 17,991 IDR
Source: Bank Indonesia published rates · chart data from the AllRatesToday API (/api/v1/central-bank/bi/history?source=USD&target=IDR).

What Bank Indonesia publishes

Why official rates, not market rates

A live mid-market feed answers "what is USD/IDR 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.

Bank Indonesia's transaction middle rates are the standard reference for rupiah valuation in Indonesian tax and customs practice.

Get the latest table (REST)

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

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

{
  "bank": "bi",
  "rate_date": "2026-08-01",
  "base": "IDR",
  "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 bank-indonesia-exchange-rate
import { getRate, getLatestRates } from 'bank-indonesia-exchange-rate';

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

Bank Indonesia 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 — ~25 currencies against the IDR, with history back to 2016 — via REST or the bank-indonesia-exchange-rate npm package. The latest table is free.

How often do Bank Indonesia rates update?

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

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

Yes. The /central-bank/bi/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 Bank Indonesia rates, as JSON

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

Get your free API key

Related Articles