NBP Web API (National Bank of Poland)
by api.nbp.pl
Currency and finance
Added on November 9th, 2026
Visit api.nbp.pl →
What it does
The NBP Web API from the National Bank of Poland gives exchange rates against the Polish zloty and gold prices, with history back to 2002 for rates and 2013 for gold, for example to convert an invoice at the official rate. Requests are GET calls that answer in JSON or XML, and one query covers at most 93 days. Free, no key needed.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed.
- From the browser
- Yes (CORS)
- Formats
- JSON, XML
- Interface
- REST, HTTP-GET
- Provider
- api.nbp.pl
More information: https://api.nbp.pl/en.html
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.nbp.pl/api/exchangerates/rates/a/usd/?format=json'
JavaScript
const response = await fetch("https://api.nbp.pl/api/exchangerates/rates/a/usd/?format=json");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.nbp.pl/api/exchangerates/rates/a/usd/?format=json",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.