National Bank of Poland API
Returns Polish zloty exchange rate tables, currency rates, bid and ask rates, and gold prices.
View as Markdown| GET | /nbp/tables | The latest exchange rate table of the National Bank of Poland, with the middle rate of each currency. |
| GET | /nbp/rate | The recent middle rates of one currency in table A, newest first. |
| GET | /nbp/gold | The price of one gram of gold in zloty on a day, or the latest price. |
| GET | /nbp/tableOn | A rate table of the National Bank of Poland on one day: table A or B, with the middle rate of each currency. |
| GET | /nbp/rateRange | The middle rates of one currency in table A between two days, oldest first. The range is at most 93 days. |
| GET | /nbp/bidAsk | The buy and sell rates of one currency in table C on a day, from 2002-01-02. Omit the date for the latest day. |
| GET | /nbp/goldRange | The price of one gram of gold in zloty for each day between two days, oldest first. The range is at most 93 days. |
tables
/v1/nbp/tablesThe latest exchange rate table of the National Bank of Poland, with the middle rate of each currency.
Parameters
tablestring | Table A holds the common currencies, table B the rest.ABdefault Ae.g. A |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
effectiveDate | string |
items | Rate[] |
code | string |
currency | string |
mid | number (double) |
no | string |
table | string |
curl "https://api.hoshime.com/v1/nbp/tables?table=A" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nbp/tables?table=A", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nbp/tables?table=A", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "effectiveDate": "2026-11-06", "items": [ { "code": "AUD", "currency": "dolar australijski", "mid": 2.701 }, { "code": "BRL", "currency": "real (Brazylia)", "mid": 0.7144 } ], "no": "217/A/NBP/2026", "table": "A" }, "meta": { "cached": false, "endpoint": "tables", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nbp", "requestId": "req_2Xb9kQ…", "units": 1 } }
rate
/v1/nbp/rateThe recent middle rates of one currency in table A, newest first.
Parameters
codestring required | Three-letter currency code, such as USD. e.g. USD |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
code | string |
currency | string |
items | DayRate[] |
effectiveDate | string |
mid | number (double) |
no | string |
curl "https://api.hoshime.com/v1/nbp/rate?code=USD" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nbp/rate?code=USD", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nbp/rate?code=USD", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "code": "USD", "currency": "dolar amerykański", "items": [ { "effectiveDate": "2026-11-06", "mid": 3.9321, "no": "217/A/NBP/2026" } ] }, "meta": { "cached": false, "endpoint": "rate", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nbp", "requestId": "req_2Xb9kQ…", "units": 1 } }
gold
/v1/nbp/goldThe price of one gram of gold in zloty on a day, or the latest price.
Parameters
datestring | Day in YYYY-MM-DD form. Omit it for the latest price. e.g. 2024-01-02 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
date | string |
price | string |
curl "https://api.hoshime.com/v1/nbp/gold?date=2024-01-02" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nbp/gold?date=2024-01-02", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nbp/gold?date=2024-01-02", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "date": "2024-01-02", "price": "262.94" }, "meta": { "cached": false, "endpoint": "gold", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nbp", "requestId": "req_2Xb9kQ…", "units": 1 } }
tableOn
/v1/nbp/tableOnA rate table of the National Bank of Poland on one day: table A or B, with the middle rate of each currency.
Parameters
tablestring | Table A holds the common currencies, table B the rest.ABdefault Ae.g. A |
datestring required | Day in YYYY-MM-DD form, from 2002-01-02. e.g. 2024-01-02 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
effectiveDate | string |
items | Rate[] |
code | string |
currency | string |
mid | number (double) |
no | string |
table | string |
curl "https://api.hoshime.com/v1/nbp/tableOn?table=A&date=2024-01-02" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nbp/tableOn?table=A&date=2024-01-02", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nbp/tableOn?table=A&date=2024-01-02", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "effectiveDate": "2024-01-02", "items": [ { "code": "AUD", "currency": "dolar australijski", "mid": 2.6897 }, { "code": "BGN", "currency": "lew (Bułgaria)", "mid": 2.2207 } ], "no": "001/A/NBP/2024", "table": "A" }, "meta": { "cached": false, "endpoint": "tableOn", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nbp", "requestId": "req_2Xb9kQ…", "units": 1 } }
rateRange
/v1/nbp/rateRangeThe middle rates of one currency in table A between two days, oldest first. The range is at most 93 days.
Parameters
codestring required | Three-letter currency code, such as USD. e.g. USD |
startstring required | First day in YYYY-MM-DD form. e.g. 2024-01-02 |
endstring required | Last day in YYYY-MM-DD form. e.g. 2024-01-05 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
code | string |
currency | string |
items | DayRate[] |
effectiveDate | string |
mid | number (double) |
no | string |
curl "https://api.hoshime.com/v1/nbp/rateRange?code=USD&start=2024-01-02&end=2024-01-05" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nbp/rateRange?code=USD&start=2024-01-02&end=2024-01-05", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nbp/rateRange?code=USD&start=2024-01-02&end=2024-01-05", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "code": "USD", "currency": "dolar amerykański", "items": [ { "effectiveDate": "2024-01-02", "mid": 3.9432, "no": "001/A/NBP/2024" }, { "effectiveDate": "2024-01-03", "mid": 3.9909, "no": "002/A/NBP/2024" } ] }, "meta": { "cached": false, "endpoint": "rateRange", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nbp", "requestId": "req_2Xb9kQ…", "units": 1 } }
bidAsk
/v1/nbp/bidAskThe buy and sell rates of one currency in table C on a day, from 2002-01-02. Omit the date for the latest day.
Parameters
codestring required | Three-letter currency code, such as EUR. e.g. EUR |
datestring | Day in YYYY-MM-DD form. Omit it for the latest rates. e.g. 2024-01-02 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
ask | number (double) |
bid | number (double) |
code | string |
currency | string |
effectiveDate | string |
no | string |
curl "https://api.hoshime.com/v1/nbp/bidAsk?code=EUR&date=2024-01-02" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nbp/bidAsk?code=EUR&date=2024-01-02", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nbp/bidAsk?code=EUR&date=2024-01-02", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "ask": 4.3886, "bid": 4.3016, "code": "EUR", "currency": "euro", "effectiveDate": "2024-01-02", "no": "001/C/NBP/2024" }, "meta": { "cached": false, "endpoint": "bidAsk", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nbp", "requestId": "req_2Xb9kQ…", "units": 1 } }
goldRange
/v1/nbp/goldRangeThe price of one gram of gold in zloty for each day between two days, oldest first. The range is at most 93 days.
Parameters
startstring required | First day in YYYY-MM-DD form. e.g. 2024-01-02 |
endstring required | Last day in YYYY-MM-DD form. e.g. 2024-01-04 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
date | string |
price | string |
curl "https://api.hoshime.com/v1/nbp/goldRange?start=2024-01-02&end=2024-01-04" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nbp/goldRange?start=2024-01-02&end=2024-01-04", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nbp/goldRange?start=2024-01-02&end=2024-01-04", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "2024-01-02", "price": "262.94" }, { "date": "2024-01-03", "price": "262.1" } ], "meta": { "cached": false, "endpoint": "goldRange", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "nbp", "requestId": "req_2Xb9kQ…", "units": 1 } }