Nepal Rastra Bank Exchange Rate API: Official NPR Rates as JSON
The Nepal Rastra Bank publishes the official exchange rates that accounting, tax, and customs rules in Nepal 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 nrb-exchange-rate npm package.
What the NRB publishes
- 22 currencies against the rupee — buying and selling rates for the majors plus the Gulf corridors (AED, SAR, QAR, KWD, BHD, OMR) that Nepal's remittance economy actually runs on.
- History back to 1998 — every published day for nearly three decades, queryable by exact date or as a time series.
- Buy and sell separately, as NRB publishes them, rather than a single mid-rate that hides the spread.
- The bank's own publication date on every response, and non-publication days resolve to the most recent published table, flagged explicitly.
The Nepalese rupee is pegged to the Indian rupee at a fixed 1.60, so the INR rate is a constant and every other rate NRB publishes is derived from it through the Indian rupee. That is what makes the NRB table the reference for Nepali customs valuations, tax filings and audited accounts — and why it is worth pulling from the bank rather than inferring it from a market feed that does not know about the peg.
Why official rates, not market rates
A live mid-market feed answers "what is USD/NPR 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 Nepal Rastra Bank's published rates, and it never changes after publication.
Get the latest rates (REST)
curl "https://allratestoday.com/api/v1/central-bank/nrb/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 nrb-exchange-rate import { getRate, getLatestRates } from 'nrb-exchange-rate';
// One pair at the official NRB rate
const pair = await getRate('USD', 'NPR', { 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 'nrb-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: 'NPR', 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 NRB does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross rate via NPR — 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.
Nearly three decades of published rates
Our archive runs from 1998, when the dollar bought about 62 rupees. It covers the slide past 70 in the mid-2000s, the move through 100 in 2015, and the 150s reached in recent years — a path set largely by the Indian rupee, given the peg. When an auditor asks what the official rate was on an invoice date, the answer is one API call away.
FAQ
Does the Nepal Rastra Bank have an official exchange rate API?
The NRB publishes its official rates on its own site, and AllRatesToday serves the same published rates as clean JSON via REST or the nrb-exchange-rate npm package. The latest table is free.
How often do Nepal Rastra Bank rates update?
Once per business day. NRB publishes the table each morning Nepal time; we serve it with the bank's own publication date, so you can cite it.
Can I get the NRB rate for a past date, like an invoice date?
Yes. The /central-bank/nrb/rates-for-date endpoint returns the official rates for any archived date. 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 Nepal Rastra Bank rates, as JSON
The latest rates are free — 300 requests/month, no credit card.
Get your free API key