---
title: "NBP Exchange Rate API: Official PLN (Table A) Rates as JSON"
description: "Get official Narodowy Bank Polski exchange rates as JSON: ~35 currencies vs PLN, history back to 2016. REST endpoint + zero-dependency npm SDK, free tier included."
canonical: https://allratestoday.com/blog/nbp-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-16T12:28:50.103Z
---

**Narodowy Bank Polski** publishes an official table of exchange rates once per business day — the Table A average rates — covering ~35 currencies against the PLN. These are the *published central bank rates* used for tax filings, customs valuations, audits, and compliant invoicing in Poland — not moving market prices. This guide shows how to pull them as JSON: via a REST endpoint or the zero-dependency [`nbp-exchange-rate`](https://www.npmjs.com/package/nbp-exchange-rate) npm package, with history back to 2016.

  USD → PLN — official Narodowy Bank Polski table A mid rate Weekly observations, Aug '25 – Aug '26 · Polish zlotys per 1 US dollar

*Source: Narodowy Bank Polski published rates · chart data from the AllRatesToday API (`/api/v1/central-bank/nbp/history?source=USD&target=PLN`).*

## What NBP publishes

- **~35 currencies** against the PLN, in one table per business day.
- **History back to 2016** — queryable by exact date or as a daily time series.
- **The bank's own publication date** on every response, so a rate is always citable.
- **No weekend or holiday gaps to trip over** — requests for non-publication days resolve to the most recent published table and are flagged explicitly.

## Why official rates, not market rates

A live mid-market feed answers "what is EUR/PLN 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 table, and it never changes after publication.

Polish VAT and CIT rules are tied to the NBP average rate: foreign-currency invoices are converted at the published NBP rate from the preceding business day, so pulling the right day's Table A is a hard requirement, not a nice-to-have.

## Get the latest table (REST)

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

The response is the bank's most recent published table — one row per published pair in the bank's own quoting direction, the publication date (`rate_date`), and a freshness flag. Live example captured 2026-10-09:

```
{
  "bank": "nbp",
  "name": "Narodowy Bank Polski",
  "rate_date": "2026-10-09",
  "age_days": 1,
  "stale": false,
  "cadence": "daily",
  "rates": [
    {"base": "AUD", "quote": "PLN", "type": "middle", "value": 2.7227},
    {"base": "BRL", "quote": "PLN", "type": "middle", "value": 0.7776},
    {"base": "CAD", "quote": "PLN", "type": "middle", "value": 2.7426},
    … 29 more rows
  ],
  "disclaimer": "Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."
}
```

Most integrations need one pair. Add `source` and `target` and the API returns a single resolved rate — `derived: false` when Narodowy Bank Polski printed the pair itself:

```
curl "https://allratestoday.com/api/v1/central-bank/nbp/latest?source=EUR&target=PLN" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```
{
  "bank": "nbp",
  "name": "Narodowy Bank Polski",
  "rate_date": "2026-10-09",
  "source": "EUR",
  "target": "PLN",
  "rate": 4.3775,
  "rate_type": "middle",
  "derived": false,
  "method": "published",
  "age_days": 1,
  "stale": false,
  "cadence": "daily",
  "disclaimer": "Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."
}
```

The latest table is available on every plan, including the free tier (300 free requests, no credit card). Since the table changes once per business day, caching it locally makes even a small quota go a long way.

## The npm SDK

```
npm install nbp-exchange-rate
```

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

// One pair at the official Narodowy Bank Polski rate
const pair = await getRate('EUR', 'PLN', { 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

The most common compliance job: an invoice dated months ago needs the official rate *for that date*.

```
import { getRatesForDate, getHistory } from 'nbp-exchange-rate';

// The official table for an invoice date — weekends/holidays return
// the most recent published date, flagged via published_on_requested_date.
const day = await getRatesForDate('2026-06-30', { apiKey: 'art_live_...' });

// Daily series for one pair
const series = await getHistory(
  { source: 'EUR', target: 'PLN', from: '2026-01-01' },
  { apiKey: 'art_live_...' }
);
```

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

## Published vs derived pairs

If NBP does not print a pair directly, the API resolves it from the bank's table — an inverse, or a cross rate via PLN — 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 Narodowy Bank Polski have an official exchange rate API?

Narodowy Bank Polski publishes its official rates on its website, but not always in a developer-friendly form. AllRatesToday serves the bank's published table as clean JSON — ~35 currencies against the PLN, with history back to 2016 — via REST or the nbp-exchange-rate npm package. The latest table is free.

### How often do Narodowy Bank Polski rates update?

Once per business day. These are published reference rates, not moving market prices — the table changes when NBP publishes a new one, and every API response carries the bank's own publication date so you can cite it.

### Can I get the Narodowy Bank Polski rate for a past date, like an invoice date?

Yes. The /central-bank/nbp/rates-for-date endpoint returns the official table for any date back to 2016. Weekends and holidays resolve to the most recent published table and are flagged, so your audit trail stays honest. Historical dates require a paid plan; latest rates are free.

## Official Narodowy Bank Polski rates, as JSON

The latest table is free — 300 free requests, no credit card.

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

## Related Articles

- [Narodowy Bank Polski rates API — product page](https://allratestoday.com/central-bank-rates-api/nbp/)
- [All covered central banks](https://allratestoday.com/central-bank-rates-api/)
- [Norges Bank Exchange Rate API: Official NOK Rates as JSON](https://allratestoday.com/blog/norges-bank-exchange-rate-api/)
- [Riksbank Exchange Rate API: Official SEK Rates as JSON](https://allratestoday.com/blog/riksbank-exchange-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/)
