---
title: "National Bank of Moldova Exchange Rate API: Official MDL Rates as JSON"
description: "Official Moldovan leu exchange rates as JSON — 40 currencies, set daily and valid for the following day, history back to 1994. REST + npm SDK, free tier included."
canonical: https://allratestoday.com/blog/nbm-exchange-rate-api/
source: AllRatesToday (https://allratestoday.com/) — Markdown mirror of the page above; index of all pages at https://allratestoday.com/llms.txt
generated: 2026-10-08T17:21:47.437Z
---

The **National Bank of Moldova** publishes the official exchange rates that accounting, tax, and customs practice in Moldova 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 [`nbm-exchange-rate`](https://www.npmjs.com/package/nbm-exchange-rate) npm package.

  USD → MDL — official National Bank of Moldova official rate Weekly observations, Aug '25 – Aug '26 · undefineds per 1 US dollar

*Source: National Bank of Moldova published rates · chart data from the AllRatesToday API (`/api/v1/central-bank/nbm/history?source=USD&target=MDL`).*

## Set today, valid tomorrow

The NBM fixes the official leu rate each working afternoon, **valid for the following day** — the rate Moldovan accounting, customs declarations and tax filings convert at. The API stores each table under its validity date, exactly as the bank publishes it, so the number you pull for an invoice date is the number the law expects.

## Why official rates, not market rates

A live mid-market feed answers "what is USD/MDL 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 National Bank of Moldova’s published rates, and it never changes after publication.

## Get the latest rates (REST)

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

The response is the bank's most recent published table — 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 nbm-exchange-rate
```

```
import { getRate, getLatestRates } from 'nbm-exchange-rate';

// One pair at the official rate
const pair = await getRate('USD', 'MDL', { 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 'nbm-exchange-rate';

const day = await getRatesForDate('2026-08-18', { apiKey: 'art_live_...' });

const series = await getHistory(
  { source: 'USD', target: 'MDL', from: '2026-01-01' },
  { apiKey: 'art_live_...' }
);
```

Historical dates and time series need a [paid plan](https://allratestoday.com/pricing/); the latest rates stay free.

## Published vs derived pairs

If the National Bank of Moldova does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross via MDL — 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.

## The archive

The archive reaches back to 1 January 1994 — the leu’s first year — starting from a single dollar rate of 3.64 lei and growing to today’s 40-currency table.

## FAQ

### Does the National Bank of Moldova have an official exchange rate API?

The bank publishes its official rates on its own site, and AllRatesToday serves the same published rates as clean JSON via REST or the nbm-exchange-rate npm package. The latest table is free.

### How do I get the official Moldova exchange rate for a past date?

The rates-for-date endpoint returns the official table for any archived date; non-publication days resolve to the most recent published date and are flagged, so audit trails stay honest. Historical dates require a paid plan; latest rates are free.

### Why does a weekend date return rates?

The NBM table is defined for every calendar day: weekend and holiday dates carry the rate fixed on the last working day, valid through the gap. The API returns that table dated as the bank dates it, so weekend conversions stay citable.

## Official National Bank of Moldova rates, as JSON

The latest rates are free — 300 requests/month, no credit card.

 [Get your free API key](https://allratestoday.com/register/)

## Related Articles

- [National Bank of Moldova rates API — product page](https://allratestoday.com/central-bank-rates-api/nbm/)
- [All covered central banks](https://allratestoday.com/central-bank-rates-api/)
- [National Bank of Moldova reference rates for finance teams](https://allratestoday.com/blog/nbm-reference-rate-api/)
- [Central bank API documentation](https://allratestoday.com/docs/#central-bank)
- [Best exchange rate APIs in 2026 — how the official-rate and market-rate providers compare](https://allratestoday.com/best/best-exchange-rate-api/)
