National Bank of Poland API
Overview
The National Bank of Poland (NBP) API is an official government data source providing daily exchange rates for 35+ currencies relative to the Polish Zloty (PLN), published on each banking day. It supports both JSON and XML output, covers historical data going back many years, and requires no authentication. The API is ideal for financial applications operating in the Polish market or requiring authoritative exchange rate data.
Beginner Tip
No API key required. Use `https://api.nbp.pl/api/exchangerates/tables/A/?format=json` to get today's mid-market rates for all currencies. Rates are denominated in PLN. Add `Accept: application/json` header to ensure JSON output. The API has two tables: Table A (mid-market) and Table C (bid/ask spread).
Available Data
Example Response
{
"base": "USD",
"date": "2025-01-15",
"rates": {
"EUR": 0.92,
"GBP": 0.79,
"JPY": 149.5,
"CAD": 1.35
}
} Field Reference
table The table identifier — `A` for mid-market rates or `C` for bid/ask rates. no Official publication number of this rate table (e.g., `073/A/NBP/2024`). effectiveDate The date these rates apply to, in YYYY-MM-DD format. rates Array of currency objects, each with the currency name, code, and mid-market rate. rates[].currency Full name of the foreign currency (e.g., `euro`). rates[].mid The mid-market exchange rate of 1 unit of this currency in PLN. Implementation Example
const url = "http://api.nbp.pl/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Bank of Russia
The Bank of Russia XML API provides official daily exchange rates for foreign currencies against the Russian Ruble, published by the Central Bank of the Russian Federation.
Currency-api
⭐ Beginner's PickCurrency-api is a free, open-source currency exchange rates API hosted on GitHub with no rate limits, no authentication, and support for 150+ currencies.
Czech National Bank
The Czech National Bank (CNB) publishes official daily exchange rates for 30+ currencies against the Czech Koruna (CZK) as a plain XML file.
Economia.Awesome
⭐ Beginner's PickEconomia.Awesome is a free Brazilian API that provides real-time and historical currency exchange rates for dozens of currency pairs, including BRL (Brazilian Real) against USD, EUR, BTC, and more.
Exchangerate.host
⭐ Beginner's PickExchangerate.host provides free foreign exchange and cryptocurrency rates via a simple REST API, covering 170+ currencies and major crypto assets.