# Poland BZP Tenders Scraper (eZamowienia) (`badboxx_newlife/poland-bzp-tenders-scraper`) Actor

- **URL**: https://apify.com/badboxx_newlife/poland-bzp-tenders-scraper.md
- **Developed by:** [Francesco Correnti](https://apify.com/badboxx_newlife) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Poland BZP Tenders Scraper (eZamowienia)

Monitor Polish public tenders: bid teams and procurement-intelligence firms track new przetargi / zamówienia publiczne published in the BZP (Biuletyn Zamówień Publicznych, ezamowienia.gov.pl) by keyword, CPV code, notice type or date, as clean rows with buyer, NIP/REGON, voivodeship, value and deadline.

### Use case

- Bid teams: daily list of new contract notices in your CPV codes, with deadline and link.
- Market intel: which Polish buyers (gminy, hospitals, ministries) tender what, where and for how much.
- Lead lists: buyer NIP/REGON, city and voivodeship for CRM matching.

Live sample, pulled 2026-11-06 (`noticeTypes: ["ContractNotice"]`, from 2026-11-05), 12 rows in `sample.json`:

| noticeNumber | title | buyer | NIP | voivodeship | mainCpv | published | deadline | noticeUrl |
|---|---|---|---|---|---|---|---|---|
| 2026/BZP 00523249/01 | Kompleksowe utrzymanie czystości wewnątrz Hali Widowiskowo-S | Vistula-Park Świecie Sp. z o.o. | 5591717760 | kujawsko-pomorskie | 90910000-9 | 2026-11-05 | 2026-11-17 | https://ezamowienia.gov.pl/mo-client-board/bzp/notice-details/id/08df3af3-54bf-ce18-c1c5-d5000193c0d1 |
| 2026/BZP 00523251/01 | DOSTAWA TONERÓW I MATERIAŁÓW EKSPLOATACYJNYCH DO DRUKAREK -  | Samodzielny Publiczny Szpital Kliniczny im. Andrze | 9542270611 | śląskie | 30125110-5 | 2026-11-05 | 2026-11-16 | https://ezamowienia.gov.pl/mo-client-board/bzp/notice-details/id/08df3aff-497a-e73f-c1c5-d5000193c0d4 |
| 2026/BZP 00523252/01 | Sukcesywna dostawa artykułów żywnościowych dla Przedszkola P | Przedszkole Publiczne w Józefowie | 1181766142 | mazowieckie | 15800000-6 | 2026-11-05 | 2026-11-17 | https://ezamowienia.gov.pl/mo-client-board/bzp/notice-details/id/08df3aff-8057-24ae-c1c5-d5000193c0d5 |
| 2026/BZP 00523253/01 | Dzierżawa automatycznego analizatora do pełnej analizy moczu | SAMODZIELNY PUBLICZNY ZESPÓŁ ZAKŁADÓW OPIEKI ZDROW | 8661455641 | świętokrzyskie | 38434560-9 | 2026-11-05 | 2026-11-13 | https://ezamowienia.gov.pl/mo-client-board/bzp/notice-details/id/08df3b00-40c3-53a2-c1c5-d5000193c0d6 |
| 2026/BZP 00523259/01 | DOSTAWA LEKÓW 40 | Samodzielny Publiczny Szpital Kliniczny im. Andrze | 9542270611 | śląskie | 33690000-3 | 2026-11-05 | 2026-11-16 | https://ezamowienia.gov.pl/mo-client-board/bzp/notice-details/id/08df3b01-c41b-82ae-c1c5-d5000193c0de |

Text is kept as served (Polish). Empty values (`null`) are not published by the buyer.

### Input

| field | example | meaning |
|---|---|---|
| `keyword` | `"oprogramowanie"` | text searched in the tender title |
| `cpvCodes` | `["72000000"]` | CPV codes, 8 digits (matches sub-codes); one search per code |
| `noticeTypes` | `["ContractNotice"]` | default ContractNotice; also TenderResultNotice, CompetitionNotice, NoticeUpdateNotice...; one search per type |
| `dateFrom` / `dateTo` | `"2026-10-30"` | publication date range, `YYYY-MM-DD`, dates are UTC (as publicationDate); default last 7 days |
| `maxItems` | `100` | default 100, max 1000 |

Oldest first within the range; duplicates (same notice number) are dropped.

### Output

| field | meaning |
|---|---|
| `noticeNumber`, `bzpNumber` | BZP notice number (unique) and its base number |
| `title` | tender subject |
| `buyerName`, `buyerNip`, `buyerRegon` | buyer organisation, NIP and REGON when published |
| `buyerCity`, `buyerVoivodeship`, `buyerNuts` | city, voivodeship name, NUTS-2 code |
| `noticeType`, `orderType` | e.g. ContractNotice, Delivery/Services/Works |
| `cpvCodes` (array), `mainCpv` | CPV with check digit |
| `estimatedValue`, `currency` | order value excl. VAT, only when the notice states it |
| `publicationDate`, `deadline` | ISO timestamps (UTC) |
| `noticeUrl`, `scrapedAt` | ezamowienia.gov.pl notice page, scrape time |

### Pricing

Pay per event: $0.005 per run start + $0.002 per result. Example: 1000 notices = $0.005 + 1000 x $0.002 = $2.005. The run stops cleanly at your spending cap; nothing is pushed beyond `maxItems`.

### FAQ

**Do I need a login or key?** No, the actor uses the public JSON API the ezamowienia.gov.pl search page calls.
**Which notices?** BZP notices (national and below-EU-threshold tenders, plus above-threshold ones published in BZP). TED/EU is a separate actor.
**Are contact persons included?** No. Names, e-mails and phones of contact persons are never read or output; business data only.
**Why oldest first?** The API has no page number, so the actor pages by publication date upwards; set `dateFrom` close to now for the newest notices.
**Is the value always there?** No, only when the notice states it (`null` otherwise).

### Source and limits

Step 0 (`step0.md`, 2026-11-06): `GET https://ezamowienia.gov.pl/mo-board/api/v1/notice` works without proxy, browser or key. Unofficial API, can change; fast bursts may get 403, the actor makes few spaced requests; `keyword` matches the title only; max 1000 items per run. No proxy.

### Business data only

Buyer organisation, notice, CPV, value, dates and URLs. Contact persons, e-mails and phones are not output.

### Run / test

`python3 check.py` (offline against `fixtures/bzp.json`, real API responses; asserts query mapping, paging, dedupe, maxItems, PPE charge counts, prices, schema keys, no personal data). `python3 check.py --live` makes 1 real request (last result: `live.log`). Run: put input in `storage/key_value_stores/default/INPUT.json`, `node src/main.js`.

### Publishing

`publish.py --noruns` (needs `APIFY_TOKEN`) creates/updates the actor. Not run, so this is ready, not published.

# Actor input Schema

## `keyword` (type: `string`):

Text searched in the tender title (Polish). Example: oprogramowanie.

## `cpvCodes` (type: `array`):

CPV codes, 8 digits (a code matches its sub-codes). Example: 72000000.

## `noticeTypes` (type: `array`):

BZP notice types, e.g. ContractNotice, TenderResultNotice, CompetitionNotice, NoticeUpdateNotice.

## `dateFrom` (type: `string`):

Publication date on or after, YYYY-MM-DD (UTC). Empty = 7 days ago. Example: 2026-10-30.

## `dateTo` (type: `string`):

Publication date on or before, YYYY-MM-DD (UTC). Empty = today. Example: 2026-11-06.

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

Maximum notices returned; you pay per notice, so this caps cost. Example: 100.

## Actor input object example

```json
{
  "keyword": "oprogramowanie",
  "cpvCodes": [
    "72000000"
  ],
  "noticeTypes": [
    "ContractNotice"
  ],
  "dateFrom": "2026-10-30",
  "dateTo": "2026-11-06",
  "maxItems": 100
}
```

# Actor output Schema

## `notices` (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 = {
    "keyword": "oprogramowanie",
    "cpvCodes": [
        "72000000"
    ],
    "noticeTypes": [
        "ContractNotice"
    ],
    "dateFrom": "2026-10-30",
    "dateTo": "2026-11-06",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("badboxx_newlife/poland-bzp-tenders-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 = {
    "keyword": "oprogramowanie",
    "cpvCodes": ["72000000"],
    "noticeTypes": ["ContractNotice"],
    "dateFrom": "2026-10-30",
    "dateTo": "2026-11-06",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("badboxx_newlife/poland-bzp-tenders-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 '{
  "keyword": "oprogramowanie",
  "cpvCodes": [
    "72000000"
  ],
  "noticeTypes": [
    "ContractNotice"
  ],
  "dateFrom": "2026-10-30",
  "dateTo": "2026-11-06",
  "maxItems": 100
}' |
apify call badboxx_newlife/poland-bzp-tenders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,badboxx_newlife/poland-bzp-tenders-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/YmeM6ZrHEhqqHN9iR/builds/ysUbIEXhyD0MZhbfK/openapi.json
