Skip to content

National Bank of Poland API

7 endpointsFinance & CryptoPLsocial:read7 real examples

Returns Polish zloty exchange rate tables, currency rates, bid and ask rates, and gold prices.

View as Markdown
GET/nbp/tablesThe latest exchange rate table of the National Bank of Poland, with the middle rate of each currency.
GET/nbp/rateThe recent middle rates of one currency in table A, newest first.
GET/nbp/goldThe price of one gram of gold in zloty on a day, or the latest price.
GET/nbp/tableOnA rate table of the National Bank of Poland on one day: table A or B, with the middle rate of each currency.
GET/nbp/rateRangeThe middle rates of one currency in table A between two days, oldest first. The range is at most 93 days.
GET/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.
GET/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.

tables

GET/v1/nbp/tables

The latest exchange rate table of the National Bank of Poland, with the middle rate of each currency.

scope social:read1 unitcached 1 h

Parameters

table
string
Table A holds the common currencies, table B the rest.
AB
default Ae.g. A
tunnel
string
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.
proxy
string
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.
profileId
string
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
effectiveDatestring
itemsRate[]
codestring
currencystring
midnumber (double)
nostring
tablestring
curl "https://api.hoshime.com/v1/nbp/tables?table=A" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/nbp/rate

The recent middle rates of one currency in table A, newest first.

scope social:read1 unitcached 1 h

Parameters

code
string
required
Three-letter currency code, such as USD.
e.g. USD
tunnel
string
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.
proxy
string
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.
profileId
string
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
codestring
currencystring
itemsDayRate[]
effectiveDatestring
midnumber (double)
nostring
curl "https://api.hoshime.com/v1/nbp/rate?code=USD" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/nbp/gold

The price of one gram of gold in zloty on a day, or the latest price.

scope social:read1 unitcached 1 h

Parameters

date
string
Day in YYYY-MM-DD form. Omit it for the latest price.
e.g. 2024-01-02
tunnel
string
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.
proxy
string
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.
profileId
string
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
datestring
pricestring
curl "https://api.hoshime.com/v1/nbp/gold?date=2024-01-02" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 24 h

Parameters

table
string
Table A holds the common currencies, table B the rest.
AB
default Ae.g. A
date
string
required
Day in YYYY-MM-DD form, from 2002-01-02.
e.g. 2024-01-02
tunnel
string
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.
proxy
string
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.
profileId
string
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
effectiveDatestring
itemsRate[]
codestring
currencystring
midnumber (double)
nostring
tablestring
curl "https://api.hoshime.com/v1/nbp/tableOn?table=A&date=2024-01-02" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/nbp/rateRange

The middle rates of one currency in table A between two days, oldest first. The range is at most 93 days.

scope social:read1 unitcached 1 h

Parameters

code
string
required
Three-letter currency code, such as USD.
e.g. USD
start
string
required
First day in YYYY-MM-DD form.
e.g. 2024-01-02
end
string
required
Last day in YYYY-MM-DD form.
e.g. 2024-01-05
tunnel
string
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.
proxy
string
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.
profileId
string
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
codestring
currencystring
itemsDayRate[]
effectiveDatestring
midnumber (double)
nostring
curl "https://api.hoshime.com/v1/nbp/rateRange?code=USD&start=2024-01-02&end=2024-01-05" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 1 h

Parameters

code
string
required
Three-letter currency code, such as EUR.
e.g. EUR
date
string
Day in YYYY-MM-DD form. Omit it for the latest rates.
e.g. 2024-01-02
tunnel
string
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.
proxy
string
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.
profileId
string
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
asknumber (double)
bidnumber (double)
codestring
currencystring
effectiveDatestring
nostring
curl "https://api.hoshime.com/v1/nbp/bidAsk?code=EUR&date=2024-01-02" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 1 hpaginated

Parameters

start
string
required
First day in YYYY-MM-DD form.
e.g. 2024-01-02
end
string
required
Last day in YYYY-MM-DD form.
e.g. 2024-01-04
tunnel
string
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.
proxy
string
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.
profileId
string
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
datestring
pricestring
curl "https://api.hoshime.com/v1/nbp/goldRange?start=2024-01-02&end=2024-01-04" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open