Bank of Israel Exchange Rate API: Official ILS Rates as JSON
Bank of Israel publishes official exchange rates — 14 currencies against the ILS — and these are the published official rates used for tax filings, audits, and compliant invoicing in Israel, not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency bank-of-israel-exchange-rate npm package, with history back to 1975.
/api/v1/central-bank/boi/history?source=USD&target=ILS).What the Bank of Israel publishes
- 14 currencies against the ILS.
- History back to 1975 — queryable by exact date or as a time series.
- The bank's own publication date on every response, so a rate is always citable.
- No gaps to trip over — requests for non-publication days resolve to the most recent published rates and are flagged explicitly.
The representative rate is set each trading day (Sunday through Friday) and is the rate Israeli law and contracts reference.
Why official rates, not market rates
A live mid-market feed answers "what is USD/ILS 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 rates, and it never changes after publication.
Get the latest rates (REST)
curl "https://allratestoday.com/api/v1/central-bank/boi/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-israel-exchange-rate import { getRate, getLatestRates } from 'bank-of-israel-exchange-rate';
// One pair at the official Bank of Israel rate
const pair = await getRate('USD', 'ILS', { 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-israel-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-06-30', { apiKey: 'art_live_...' });
// Time series for one pair
const series = await getHistory(
{ source: 'USD', target: 'ILS', from: '2026-01-01' },
{ 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 Israel does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via ILS — 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 of Israel have an official exchange rate API?
Bank of Israel publishes its official rates on its website, but not always in a developer-friendly form. AllRatesToday serves the bank's published rates as clean JSON — 14 currencies against the ILS, with history back to 1975 — via REST or the bank-of-israel-exchange-rate npm package. The latest table is free.
How often do Bank of Israel rates update?
Once per business day. These are published reference rates, not moving market prices — the table changes when the bank 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 of Israel rate for a past date, like an invoice date?
Yes. The /central-bank/boi/rates-for-date endpoint returns the official rates for any date back to 1975. Non-publication days resolve to the most recent published date and are flagged, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.
Official Bank of Israel rates, as JSON
The latest rates are free — 300 requests/month, no credit card.
Get your free API key