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).
Measurement Record
What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.
- Request
- GET https://api.nbp.pl/api/exchangerates/tables/A/?format=json
- Result
- HTTP 200 · application/json · 1,955 bytes · compressed
- Response time
- 277 ms (median of 3) · fastest 273 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Asseco Data Systems S.A.
- Browser CORS
- Allowed — Access-Control-Allow-Origin: *
- Recorded
- 2026-08-10
Fields Returned
Top-level fields present in the response we captured, with the type and value we actually received.
| Field | Type | Value received |
|---|---|---|
| table | string | A |
| no | string | 153/A/NBP/2026 |
| effectiveDate | string (date) | 2026-08-10 |
| rates | array | [1 item] |
Captured Response
Captured from a real request to https://api.nbp.pl/api/exchangerates/tables/A/?format=json on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.
[
{
"table": "A",
"no": "153/A/NBP/2026",
"effectiveDate": "2026-08-10",
"rates": [
{
"…": "(3 more fields)"
}
]
}
] 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. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
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.
How This API Fails
We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.
404 NotFound
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 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.