National Bank of Serbia Exchange Rate API: Official RSD Middle Rates as JSON

Reviewed by Madhushan, Fintech Developer — August 2026

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 npm package.

EUR → RSD — official National Bank of Serbia official middle rate
Weekly observations, Aug '25 – Aug '26 · undefineds per 1 euro
117.2117.3117.4Aug '25Nov '25Feb '26May '26Aug '26117.42025-08-22: 117.2 RSD2025-08-29: 117.2 RSD2025-09-05: 117.2 RSD2025-09-12: 117.2 RSD2025-09-19: 117.2 RSD2025-09-26: 117.2 RSD2025-10-03: 117.2 RSD2025-10-10: 117.2 RSD2025-10-17: 117.2 RSD2025-10-24: 117.2 RSD2025-10-31: 117.2 RSD2025-11-07: 117.2 RSD2025-11-14: 117.2 RSD2025-11-21: 117.3 RSD2025-11-28: 117.4 RSD2025-12-05: 117.4 RSD2025-12-12: 117.4 RSD2025-12-19: 117.4 RSD2025-12-26: 117.4 RSD2025-12-31: 117.3 RSD2026-01-09: 117.3 RSD2026-01-16: 117.3 RSD2026-01-23: 117.4 RSD2026-01-30: 117.4 RSD2026-02-06: 117.4 RSD2026-02-13: 117.4 RSD2026-02-20: 117.4 RSD2026-02-27: 117.4 RSD2026-03-06: 117.4 RSD2026-03-13: 117.4 RSD2026-03-20: 117.4 RSD2026-03-27: 117.4 RSD2026-04-03: 117.4 RSD2026-04-09: 117.4 RSD2026-04-17: 117.4 RSD2026-04-24: 117.4 RSD2026-04-30: 117.4 RSD2026-05-08: 117.4 RSD2026-05-15: 117.4 RSD2026-05-22: 117.4 RSD2026-05-29: 117.4 RSD2026-06-05: 117.4 RSD2026-06-12: 117.4 RSD2026-06-19: 117.4 RSD2026-06-26: 117.4 RSD2026-07-03: 117.4 RSD2026-07-10: 117.4 RSD2026-07-17: 117.4 RSD2026-07-24: 117.4 RSD2026-07-31: 117.4 RSD2026-08-07: 117.4 RSD2026-08-14: 117.3 RSD2026-08-21: 117.4 RSD
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; 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

Related Articles