# NBP Web API (National Bank of Poland)

Category: [Currency and finance](https://free-web-services.com/web-services/unit-convertors/)  
Page: https://free-web-services.com/web-services/unit-convertors/nbp-web-api.html  
Documentation: https://api.nbp.pl/en.html

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 key: Not needed
- Pricing: Free, no key needed.
- From the browser: Yes (CORS)
- Formats: JSON, XML
- Interface: REST, HTTP-GET
- Provider: api.nbp.pl
- Last checked: Working on November 9th, 2026

Example request:

```sh
curl 'https://api.nbp.pl/api/exchangerates/rates/a/usd/?format=json'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

