# NBP Poland Exchange Rates Scraper (`parseforge/nbp-poland-rates-scraper`) Actor

Collects official Polish exchange rates from Narodowy Bank Polski tables A, B, and C. Each row returns the currency code, name, and applicable mid, bid, or ask rate with the publication date.

- **URL**: https://apify.com/parseforge/nbp-poland-rates-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Automation, Integrations, Business
- **Stats:** 2 total users, 1 monthly users, 89.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### NBP Poland Exchange Rates Scraper

**Scrape official Polish exchange rates from NBP tables A, B, and C, up to a million rows per run.** Every rate includes the currency code, full name, mid, bid, and ask prices, plus the publication date. Export to CSV, JSON, Excel, or XML.

The Narodowy Bank Polski publishes daily exchange rates in three XML tables, but downloading and parsing them by hand is slow and error-prone. This actor reads the official NBP feeds directly, returning clean, structured rows for every currency in the table you choose. No API key, no registration, no manual downloads.

| Who uses it | What they scrape NBP for |
|---|---|
| Accountants and bookkeepers | Pull the official NBP mid rate for a specific day to value foreign-currency invoices. |
| Financial analysts | Gather historical rate series to model PLN trends against EUR, USD, or CHF. |
| E-commerce operators | Update product prices daily using the latest NBP average rates. |
| Developers building fintech apps | Feed a reliable, free PLN exchange rate source into dashboards or calculators. |

### What it does

This Actor collects Polish exchange rates from NBP tables A, B, or C and returns each currency as a flat row with its code, name, and applicable rates.

- 🏦 **Three NBP tables:** Table A for major average rates, Table B for minor average rates, and Table C for buy/sell prices.
- 📅 **Historical depth:** Fetch the last N daily publications, from today's table up to 255 past publications.
- ⚙️ **Rate cap:** Set a maximum number of rates to collect per run, keeping your dataset focused.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with NBP data

**🧾 Invoice currency conversion.**

An accountant runs the actor for Table A on the invoice date to get the official PLN mid rate for EUR, USD, or GBP.

**📈 Build a PLN exchange rate history.**

A financial analyst sets lastN to 255 and collects daily mid rates to chart long-term currency trends.

**🛒 Dynamic pricing in online stores.**

An e-commerce manager runs the actor daily for Table C to update buy/sell prices shown to customers.

**📊 Populate a fintech dashboard.**

A developer schedules the actor to feed the latest NBP rates into a company-wide currency widget.

### Why choose this scraper

| | What you get |
|---|---|
| **Official source** | Data comes directly from nbp.pl XML files, the same source banks use. |
| **No API key** | Reads the public feeds. No registration, no OAuth, no rate limits to manage. |
| **Structured output** | Every row is a flat object with currency code, name, mid rate, and bid/ask where applicable. |
| **Historical access** | Go back up to 255 publication days for trend analysis and backtesting. |

### How it compares

No other Store actor targets NBP the same way, so the honest comparison is with the alternatives teams actually weigh.

| | NBP Poland Exchange Rates Scraper | Build it in-house | By hand |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When NBP changes | Maintained for you | You fix it | You re-learn the page |
| Proxies, retries, anti-bot | Built in | Your problem | Browser only |
| Output | Fixed JSON schema, CSV/Excel export | Whatever you build | Copy-paste |
| Cost | Pay per result | Engineering time | Analyst hours |

### Configure the run

Choose the NBP table type and how many past publications to fetch. The actor reads the official XML feeds and returns every matching currency rate. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "maxItems": 10
}
```

A larger pull:

```json
{
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.0085 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.85 |
| 1,000 results | $8.50 |
| 10,000 results | $85.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [NBP Poland Exchange Rates Scraper](https://apify.com/parseforge/nbp-poland-rates-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to NBP through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/nbp-poland-rates-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that you selected a valid table (A, B, or C). If you set lastN, ensure the number is not larger than the available publication history. NBP does not publish on weekends or Polish public holidays.

**Why are some dates missing from my historical run?**

NBP only publishes tables on business days. Gaps on Saturdays, Sundays, and Polish public holidays are expected and correct.

**Why do I see only mid rates and no bid/ask?**

Bid and ask rates are only available in Table C. If you selected Table A or B, you will receive only the mid rate for each currency.

**The actor ran but returned fewer rates than I expected.**

Check your maxItems setting. If it is lower than the total number of currencies across the publications you requested, the actor stops once it reaches that limit.

**Can I get rates from before the last 255 publications?**

The actor is limited to the last 255 daily publications. For older data, you can download NBP archive files manually from nbp.pl or use the NBP API directly.

### FAQ

| Question | Answer |
|---|---|
| What is the difference between NBP Table A, B, and C? | Table A contains average exchange rates for major currencies. Table B covers average rates for less common currencies. Table C lists buy and sell rates for selected currencies. |
| How far back can I get historical rates? | The actor can fetch up to the last 255 daily publications. NBP publishes tables on business days, so the actual calendar span depends on weekends and holidays. |
| Does this actor require an NBP API key? | No. It reads the public XML files that NBP publishes on its website. No registration or authentication is needed. |
| What fields does each rate row contain? | Every row includes the currency code, currency name, and the applicable rates. Table A and B rows have a mid rate. Table C rows have bid and ask rates. |
| Can I get rates for a single specific date? | Yes. Leave the lastN field empty to fetch only the most recent publication. For a past date, set lastN to cover the number of publications back to that day. |
| Are the rates official NBP rates? | Yes. The data is parsed directly from the XML files hosted on nbp.pl, the official website of Narodowy Bank Polski. |
| What output formats are supported? | You can export your dataset to CSV, JSON, Excel, or XML from the Apify platform. |
| How often are the NBP tables updated? | NBP publishes new tables on each business day, typically between 11:45 and 12:15 Warsaw time. You can schedule the actor to run shortly after. |
| Can I limit how many rates I collect? | Yes. Use the maxItems field to cap the total number of exchange rates returned in a single run. |
| Does this cover all currencies NBP publishes? | It covers every currency in the table you select. Table A and B together cover over 30 currencies, while Table C covers a smaller set with buy/sell rates. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Narodowy Bank Polski. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `table` (type: `string`):

NBP exchange rate table. A and B are average rates, C is buy/sell.

## `lastN` (type: `integer`):

Fetch last N daily publications. Leave empty for current table only.

## `maxItems` (type: `integer`):

Maximum number of exchange rates to collect per run.

## Actor input object example

```json
{
  "table": "A",
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/nbp-poland-rates-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("parseforge/nbp-poland-rates-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxItems": 10
}' |
apify call parseforge/nbp-poland-rates-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/nbp-poland-rates-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7TqoKZXabduLnsAPM/builds/KtbxpOvOf97nbLPAP/openapi.json
