Currency and finance

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.
  • API
  • HTTP-GET
  • JSON
  • REST
  • XML

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

Listed on Free Web Services

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.

Did it work for you?

Tell us what you found when you tried NBP Web API (National Bank of Poland).