---
title: "National Bank of Serbia Exchange Rate API: Official RSD Middle Rates as JSON"
description: "Official NBS middle exchange rates (srednji kurs) as JSON — about 20 currencies against the dinar, EUR/RSD as the headline. REST + npm SDK, free tier included."
canonical: https://allratestoday.com/blog/national-bank-of-serbia-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-06T21:46:07.775Z
---

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

  EUR → RSD — official National Bank of Serbia official middle rate Weekly observations, Aug '25 – Aug '26 · undefineds per 1 euro

*Source: National Bank of Serbia published rates · chart data from the AllRatesToday API (`/api/v1/central-bank/nbs/history?source=EUR&target=RSD`).*

## The srednji kurs Serbian law cites

The NBS forms its official middle exchange rate list each business morning, and that list — the **srednji kurs** — is what Serbian accounting rules, courts and the tax administration reference. EUR/RSD is the figure that matters most: the dinar is managed tightly against the euro, and the daily middle rate is the legal conversion figure for euro-denominated contracts.

## Why official rates, not market rates

A live mid-market feed answers "what is EUR/RSD 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 Serbia’s published rates, and it never changes after publication.

## Get the latest rates (REST)

```
curl "https://allratestoday.com/api/v1/central-bank/nbs/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 national-bank-of-serbia-exchange-rate
```

```
import { getRate, getLatestRates } from 'national-bank-of-serbia-exchange-rate';

// One pair at the official rate
const pair = await getRate('EUR', 'RSD', { 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 'national-bank-of-serbia-exchange-rate';

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

const series = await getHistory(
  { source: 'EUR', target: 'RSD', 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 Serbia does not print a pair directly, the API resolves it from the bank's published rates — an inverse, or a cross via RSD — 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 is loaded from 2016; the bank’s own web app reaches back to 2002 for spot checks.

## FAQ

### Does the National Bank of Serbia 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 national-bank-of-serbia-exchange-rate npm package. The latest table is free.

### How do I get the official Serbia 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.

### Which of the NBS lists does the API serve?

The official middle exchange rate list (ExchangeRateListTypeID 3, srednji kurs) — the one legal and accounting practice cites. The bank’s separate cash and foreign-exchange buy/sell lists for banks are not ingested.

## Official National Bank of Serbia 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 Serbia rates API — product page](https://allratestoday.com/central-bank-rates-api/nbs/)
- [All covered central banks](https://allratestoday.com/central-bank-rates-api/)
- [National Bank of Serbia reference rates for finance teams](https://allratestoday.com/blog/nbs-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/)
