NBP Rate History
Daily NBP table A mid rate for one currency against PLN.
GET
/api/v1/fx/nbp/historyData source
- NBP Web API (exchange rates & gold)Narodowy Bank Polski
Query parameters
| Parameter | Description | Try value |
|---|---|---|
currencystring required | 3-letter code | |
lastnumber | Last N observations (1-255, default 30) | |
fromdate | Start date (max 367 days per request) | |
todate | End date, default today | |
apikeystring required | Your API key. Can also be sent as the X-API-Key header. | demo key used here |
Response envelope
Success: { data, meta: { sources, fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504.