# Poland Real Estate Transaction Prices (RCN Register) (`trev0n/rcn-poland-transaction-prices-scraper`) Actor

Real sale prices of flats, houses, buildings and land in Poland from the official price register (RCN): price, deed date, area, price per m², primary/secondary market, address, district and GPS. Any city, county, district or map area. Monitor mode for new deals.

- **URL**: https://apify.com/trev0n/rcn-poland-transaction-prices-scraper.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 transaction records

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 Real Estate Transaction Prices (RCN)

🎯 **Real sale prices — not asking prices — for every flat, house, building and plot of land sold in Poland, straight from the official price register.**

Every notarised sale in Poland lands in the national register of real-estate prices and values (Rejestr Cen Nieruchomości, RCN). This scraper turns it into a clean table: **price, deed date, area, price per m², rooms, floor, primary or secondary market, seller and buyer type, address, district and GPS coordinates** — for any city, county, Warsaw or Kraków district, municipality, voivodeship, map rectangle or radius around a point.

### 🚀 What Does It Do?

This scraper automatically reads the official Polish price register and collects **structured, ready-to-use transaction data**. No manual map clicking, no paid valuation reports — just pick a place and a date range and hit Start.

💡 **Three ways to search:**

1. **📍 By place** — `Warszawa`, `Mokotów`, `Piaseczno`, `powiat krakowski`, `mazowieckie` or any TERYT code
2. **🗺️ By map area** — a point with a radius (e.g. 1 km around your building) or a rectangle
3. **🔗 By transaction ID** — re-check specific deals you already have

### 👥 Who Is This For?

| 🏢 Use Case                   | 💬 How It Helps                                                                            |
| ----------------------------- | ------------------------------------------------------------------------------------------ |
| 🏦 **Valuers & banks**        | Comparable sales for an appraisal in seconds: same district, same size, last 12 months     |
| 📈 **Real-estate investors**  | See what flats really sold for, street by street, before you make an offer                 |
| 🏗️ **Developers**             | Track primary-market prices of competing projects and the land deals around your next plot |
| 🧑‍💼 **Agents & brokers**       | Back up your pricing with hard data and win listings with a market report                  |
| 📊 **Analysts & journalists** | Build price indexes per city, district, market or flat size from the real register         |
| 🏡 **Buyers & sellers**       | Check whether an asking price on a portal is in line with what neighbours actually paid    |

### ✨ Features

- 🏛️ **Official source** — the national price register published by Poland's head office of geodesy and cartography
- 💰 **Real transaction prices** — gross price of the deal and of each unit, VAT where recorded
- 📐 **Price per m² done right** — share-aware (a 1/225 share of a garage hall is priced on its own share), multi-parcel deals summed, flagged when it comes from the deal price
- 🏢 **Flats, buildings and land** — units (flats, garages, offices, shops), houses and other buildings, land parcels with land use and zoning plan purpose
- 📍 **Every place in Poland** — 380 counties, all municipalities and all Warsaw districts by name; or a radius / rectangle on the map
- 🧭 **GPS for every record** — latitude, longitude and a map link; optional exact parcel or building outline
- 🏷️ **District names included** — Mokotów, Ursynów, Piaseczno - miasto… added to each record
- 🎛️ **Smart filters** — date range, primary/secondary market, sale type, seller and buyer type, unit use, building type, land use, price, area and price-per-m² ranges
- 👀 **Deal monitor** — scheduled runs output only new or corrected transactions, with Telegram, Slack, Discord or webhook alerts
- 🧹 **Clean by default** — free-market sales only (discounted council-flat sales left out unless you ask), and the land under a sold flat never counts as a land deal
- ⚡ **Fast & Scalable** — thousands of records in seconds; a whole city over several years in one run
- 🔁 **Deduplication** — every record has a stable ID, never repeated within a run
- 📤 **Export Anywhere** — Download results as JSON, CSV, Excel, or push to Google Sheets, Zapier, Make, or your CRM

### 🎛️ Filters & Options

| Option                                          | What It Does                                                                                                                                     |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| 📍 **Locations**                                | Cities, counties, municipalities, districts or voivodeships by name or TERYT code                                                                |
| 🎯 **Centre point & radius**                    | Only deals within a distance of a point (up to 50 km)                                                                                            |
| 🗺️ **Map area**                                 | Only deals inside a rectangle                                                                                                                    |
| 🏷️ **Property type**                            | Units (flats, garages, commercial units), buildings or land parcels                                                                              |
| 🏢 **Unit use**                                 | Residential, garage / parking, retail, office, other                                                                                             |
| 🏠 **Building type**                            | Residential, outbuilding, retail, office, industrial, warehouse and more                                                                         |
| 🌳 **Land use**                                 | Built-up, agricultural, forest, roads, other                                                                                                     |
| 🧱 **Include land/building rows of flat sales** | Also show the plot and building records the register adds to every flat sale                                                                     |
| 🆕 **Market**                                   | Primary (developer) or secondary (resale)                                                                                                        |
| 🧾 **Transaction type**                         | Free market, tender, without tender, discounted, bailiff sale, public purpose. **Default: free market only** — clear the field to get every type |
| 👤 **Seller / Buyer**                           | Individual, company, local government, State Treasury                                                                                            |
| 📅 **Deed date from / to**                      | Exact dates or a rolling window such as "12 months"                                                                                              |
| 💵 **Price range**                              | Minimum and maximum transaction price in PLN                                                                                                     |
| 📏 **Area range**                               | Usable area of units and buildings, parcel area of land                                                                                          |
| 📊 **Price per m² range**                       | Drop symbolic and family deals or focus on a price band                                                                                          |
| 🏘️ **Only with an address**                     | Skip records without a published street address                                                                                                  |
| 🔗 **Transaction IDs**                          | Look up specific deals                                                                                                                           |
| ↕️ **Order**                                    | Newest deeds first, oldest first or register order                                                                                               |
| 🔢 **Max Results**                              | Control how many records to extract per run (and per location)                                                                                   |
| 🗺️ **Parcel / building outline**                | Add the exact shape for GIS tools                                                                                                                |
| 🧰 **Compact output / drop empty fields**       | Slimmer tables                                                                                                                                   |
| 👀 **Monitor mode & alerts**                    | Only new or corrected deals, with notifications                                                                                                  |

### 📦 What You Get (Output Fields)

Every transaction record includes:

#### Deal

| Field                | Example                                |
| -------------------- | -------------------------------------- |
| deedDate             | `2026-05-25`                           |
| transactionPrice     | `1734446.38`                           |
| pricePerSqm          | `18611.94`                             |
| pricePerSqmBasis     | `objectPrice`                          |
| market               | `primary`                              |
| transactionType      | `freeMarket`                           |
| sellerType           | `company`                              |
| buyerType            | `individual`                           |
| share                | `1/1`                                  |
| objectsInTransaction | `1`                                    |
| deedReference        | `1544/2026`                            |
| notaryOffice         | `JERZY HORBAN`                         |
| transactionId        | `a05cb68a-b2cc-46de-aeb6-8122807ea169` |

#### Property

| Field         | Example                                           |
| ------------- | ------------------------------------------------- |
| propertyType  | `units`                                           |
| unitFunction  | `residential`                                     |
| rooms         | `5`                                               |
| floor         | `3`                                               |
| usableAreaSqm | `93.19`                                           |
| unitPrice     | `1734446.38`                                      |
| propertyKind  | `unitProperty`                                    |
| propertyRight | `unitOwnership`                                   |
| buildingType  | `residential` (buildings)                         |
| parcelAreaSqm | `883` (land)                                      |
| landUse       | `["builtUpUrbanised"]` (land)                     |
| zoning        | `["budownictwoMieszkanioweJednorodzinne"]` (land) |

#### Location

| Field         | Example                                              |
| ------------- | ---------------------------------------------------- |
| address       | `ulica Sycylijska 6, Warszawa`                       |
| city          | `Warszawa`                                           |
| street        | `ulica Sycylijska`                                   |
| houseNumber   | `6`                                                  |
| cadastralUnit | `Mokotów - dzielnica`                                |
| county        | `Warszawa`                                           |
| voivodeship   | `mazowieckie`                                        |
| teryt         | `1465`                                               |
| latitude      | `52.179879`                                          |
| longitude     | `21.0549109`                                         |
| mapUrl        | `https://www.google.com/maps?q=52.179879,21.0549109` |

### 📊 Example Output

```json
{
    "id": "units-a05cb68a-b2cc-46de-aeb6-8122807ea169-146505_8.0530.1085_BUD.50_LOK",
    "propertyType": "units",
    "transactionId": "a05cb68a-b2cc-46de-aeb6-8122807ea169",
    "transactionNumber": "637317",
    "deedDate": "2026-05-25",
    "transactionType": "freeMarket",
    "market": "primary",
    "sellerType": "company",
    "buyerType": "individual",
    "transactionPrice": 1734446.38,
    "transactionVat": null,
    "pricePerSqm": 18611.94,
    "pricePerSqmBasis": "objectPrice",
    "propertyKind": "unitProperty",
    "propertyRight": "unitOwnership",
    "share": "1/1",
    "shareFraction": 1,
    "pricedAreaSqm": 93.19,
    "propertyPrice": 1734446.38,
    "propertyVat": null,
    "propertyLandArea": null,
    "objectsInTransaction": 1,
    "propertyDescription": null,
    "unitId": "146505_8.0530.1085_BUD.50_LOK",
    "unitFunction": "residential",
    "rooms": 5,
    "floor": 3,
    "usableAreaSqm": 93.19,
    "ancillaryAreaSqm": null,
    "unitPrice": 1734446.38,
    "unitVat": null,
    "unitInfo": null,
    "address": "ulica Sycylijska 6, Warszawa",
    "city": "Warszawa",
    "street": "ulica Sycylijska",
    "houseNumber": "6",
    "allAddresses": [],
    "teryt": "1465",
    "county": "Warszawa",
    "voivodeship": "mazowieckie",
    "cadastralUnitCode": "146505_8",
    "cadastralUnit": "Mokotów - dzielnica",
    "latitude": 52.179879,
    "longitude": 21.0549109,
    "mapUrl": "https://www.google.com/maps?q=52.179879,21.0549109",
    "deedReference": "1544/2026",
    "notaryOffice": "JERZY HORBAN",
    "recordVersion": "2026-10-02T12:00:51Z",
    "registerNamespace": "PL.PZGiK.5346.RCN",
    "featureId": 53968853,
    "scrapedAt": "2026-10-20T18:51:10.914Z"
}
```

### 🧪 Example Inputs

📌 **Flats sold in Mokotów in Q1 2026, resale only:**

```json
{
    "locations": ["Mokotów"],
    "propertyType": "units",
    "unitFunctions": ["residential"],
    "market": "secondary",
    "dateFrom": "2026-01-01",
    "dateTo": "2026-03-31",
    "maxResults": 0
}
```

📌 **Comparable sales within 1 km of a building (flats 40–60 m², last 12 months):**

```json
{
    "latitude": "52.2297",
    "longitude": "21.0122",
    "radiusKm": 1,
    "propertyType": "units",
    "unitFunctions": ["residential"],
    "minArea": 40,
    "maxArea": 60,
    "dateFrom": "12 months",
    "maxResults": 0
}
```

📌 **Building plots sold around Piaseczno since 2025:**

```json
{ "locations": ["Piaseczno"], "propertyType": "land", "dateFrom": "2025-01-01", "minPricePerSqm": 50, "maxResults": 0 }
```

📌 **House sales in the Kraków county:**

```json
{
    "locations": ["powiat krakowski"],
    "propertyType": "buildings",
    "buildingTypes": ["residential"],
    "dateFrom": "12 months",
    "maxResults": 1000
}
```

📌 **Weekly monitor of new-build sales in Wrocław with a Telegram alert:**

```json
{
    "locations": ["Wrocław"],
    "propertyType": "units",
    "market": "primary",
    "dateFrom": "6 months",
    "maxResults": 0,
    "incrementalMode": true,
    "telegramBotToken": "123456:ABC…",
    "telegramChatId": "-1001234567890"
}
```

### 📋 Dataset Views

The Apify Console gives you **5 ready-made table views** to quickly browse your results:

| View                   | What It Shows                                                                  |
| ---------------------- | ------------------------------------------------------------------------------ |
| 📊 **Overview**        | Date, type, market, price, price per m², area, rooms, floor, address, district |
| 🧾 **Deal details**    | Sale type, seller and buyer, share, property right, deed and notary            |
| 📍 **Location**        | Address parts, district, county, voivodeship, codes, coordinates, map link     |
| 👀 **Monitor changes** | What is new or corrected since the last run                                    |
| 📋 **Full Details**    | Every single field — the complete dataset                                      |

### ❓ FAQ

**🤔 Are these real sale prices or asking prices?**
Real prices from notarial deeds, as recorded by each county's geodetic office. That is what makes this data so valuable compared with listing portals.

**🤔 How fresh is the data?**
Counties add deeds to the register a few weeks to a few months after signing, so the most recent months fill in gradually. For a monitor, use a rolling window such as "6 months" — late additions are then caught as new deals.

**🤔 Does it cover the whole of Poland?**
Yes — all 380 counties publish to the register. A small share of records (typically a few percent, more in some counties) is registered without a location on the map; those cannot be downloaded from the register, and the run summary tells you how many matched your search.

**🤔 What does the scraper leave out by default — and how do I get everything?**
Three defaults keep the prices comparable with the market:

- **Free-market sales only.** Discounted sales of council flats to tenants (often 50–90% off), tenders, bailiff sales and public-purpose acquisitions are skipped. To include them, pick the types you want in **Transaction type** — or clear the field to get all of them.
- **No land/building rows of flat sales.** In land and building searches, the plot and building records the register attaches to every flat sale are hidden, so you see real house and land deals. Switch on **Include land/building rows of flat sales** to keep them.
- **Newest deeds first.** Results are sorted by deed date, newest first, within each location you list. Change it in **Order**.

**🤔 Why are there building and land records for flat sales?**
When a flat is sold, the register also notes the building and the plot under it. These rows are left out of building and land searches by default so they show only real house and land deals — switch the option on if you want them.

**🤔 How is price per m² calculated?**
From the unit's own price over its usable area (land: parcel area). When only a deal total is known, it is the deal price over the summed area of the deal's objects and marked `transactionPrice`. Shares are taken into account. Built-up plots get no land price per m², because their price includes the house.

**🤔 Can I export the data?**
Yes — JSON, CSV, Excel, XML, HTML, RSS. You can also push data directly to Google Sheets, Zapier, Make, or any webhook/API endpoint.

**🤔 How often should I run this?**
For fresh data, run daily or weekly. You can schedule automatic runs on Apify with just a few clicks.

**🤔 Does it work with proxies?**
It does not need one — the register is an open public service. The scraper works with Apify's built-in proxy service if you ever want it.

### 🛠️ Need Custom Filters or Features?

**I'm happy to customize this scraper for your specific needs!** 🤝

Whether you need:

- 🎯 Additional filters (street, building age, zoning plan purpose, notary, price per room)
- 📊 Extra data fields or custom output formats — e.g. monthly price indexes per district
- 🔄 Integration with your CRM, Google Sheets, or database
- ⏰ Scheduled scraping with automatic deduplication
- 🌐 Scraping from other real-estate platforms alongside the price register (asking prices vs real prices)

👉 **Don't hesitate to reach out via private message** — I respond quickly and I'm always open to building exactly what you need. No request is too small or too specific!

### ⚖️ Legal & Ethical Use

This scraper collects **only publicly available information** from the official Polish price register, which the state publishes free of charge. It does not access private data or bypass any login, and buyers and sellers appear only as a type (individual, company), never by name. Please use the data responsibly and in compliance with applicable laws.

# Actor input Schema

## `locations` (type: `array`):

Cities, counties (powiaty), municipalities, Warsaw/Kraków districts or voivodeships — one per line, e.g. <code>Warszawa</code>, <code>Mokotów</code>, <code>Piaseczno</code>, <code>powiat krakowski</code>, <code>mazowieckie</code>. TERYT codes work too (<code>1465</code>, <code>146505_8</code>). Add <code>, voivodeship</code> to tell apart places with the same name (<code>Dąbrowa, opolskie</code>). Leave empty (with no map area) to search all of Poland.

## `latitude` (type: `string`):

Search around a point instead of (or within) the locations: latitude in degrees, e.g. <code>52.2297</code>. Use with longitude and radius.

## `longitude` (type: `string`):

Longitude of the centre point in degrees, e.g. <code>21.0122</code>.

## `radiusKm` (type: `number`):

Distance from the centre point, up to 50 km. Default 1 km.

## `boundingBox` (type: `string`):

A rectangle as <code>south,west,north,east</code> in degrees, e.g. <code>52.15,20.90,52.30,21.10</code>. Combines with locations and the radius.

## `propertyType` (type: `string`):

<b>Units</b> = flats, garages, offices and shops sold as separate units. <b>Buildings</b> = houses and other buildings sold with their land. <b>Land</b> = parcels (building plots, farmland, forest).

## `unitFunctions` (type: `array`):

Only these kinds of unit. Empty = all. Pick <b>Residential</b> to leave out garages and parking spaces.

## `buildingTypes` (type: `array`):

Only these kinds of building. Empty = all.

## `landUses` (type: `array`):

Only parcels with this land-register use. Empty = all.

## `includeApartmentSaleRows` (type: `boolean`):

When a flat is sold, the register also lists the building and the land plot under it (with the flat's price). They are left out of Buildings and Land by default so you see only real house and land deals. Turn on to include them.

## `market` (type: `string`):

Primary (from a developer) or secondary (resale).

## `transactionTypes` (type: `array`):

Kind of sale. Default: free-market sales only — discounted council-flat sales (up to 90% off) would distort prices. Empty = all.

## `sellerTypes` (type: `array`):

Who sold. Empty = anyone. Developers are companies.

## `buyerTypes` (type: `array`):

Who bought. Empty = anyone.

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

Sales signed on or after this date: <code>2025-01-01</code>, <code>01.01.2025</code> or a window such as <code>6 months</code>, <code>90 days</code>, <code>1 year</code>.

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

Sales signed on or before this date (same formats). Empty = up to today.

## `minPrice` (type: `integer`):

Lowest gross transaction price in złoty.

## `maxPrice` (type: `integer`):

Highest gross transaction price in złoty.

## `minArea` (type: `number`):

Smallest usable area (units, buildings) or parcel area (land) in m².

## `maxArea` (type: `number`):

Largest usable area (units, buildings) or parcel area (land) in m².

## `minPricePerSqm` (type: `integer`):

Lowest price per m² in złoty — handy for dropping symbolic and family deals.

## `maxPricePerSqm` (type: `integer`):

Highest price per m² in złoty.

## `onlyWithAddress` (type: `boolean`):

Skip records whose county did not publish the street address.

## `transactionIds` (type: `array`):

Look up specific transactions by their register ID (the <code>transactionId</code> field, a UUID). Other filters still apply.

## `sortBy` (type: `string`):

<b>Newest</b> deeds first (default), oldest first, or register order.

## `maxResults` (type: `integer`):

Stop after this many records in total. 0 = no limit (a whole city over several years can be hundreds of thousands).

## `maxResultsPerLocation` (type: `integer`):

Cap per county / area, so one big city does not use up the whole limit. 0 = no cap.

## `includeGeometry` (type: `boolean`):

Add the exact shape (GeoJSON, WGS84). Every record always has its centre latitude & longitude.

## `compact` (type: `boolean`):

Only the key fields: date, market, price, price per m², area, rooms, floor, address, district, coordinates.

## `excludeEmptyFields` (type: `boolean`):

Leave out fields with no value.

## `incrementalMode` (type: `boolean`):

Remember what earlier runs found and output only transactions that are new or corrected since then. Counties add deeds weeks after signing, so use a rolling window such as <code>6 months</code> in Deed date from and schedule it weekly.

## `stateKey` (type: `string`):

Name of the monitor memory. Leave empty to derive it from the search; set it to keep one memory while you tweak filters.

## `emitUnchanged` (type: `boolean`):

In monitor mode, output every transaction, tagged NEW / UPDATED / UNCHANGED.

## `emitExpired` (type: `boolean`):

In monitor mode, output transactions found before but not in this run (e.g. they left the rolling date window).

## `notifyOnlyChanges` (type: `boolean`):

Skip the alert when the run found nothing new.

## `notificationLimit` (type: `integer`):

How many transactions one alert lists.

## `includeRunSummary` (type: `boolean`):

Include the counts in the webhook payload.

## `webhookUrl` (type: `string`):

POST the new and changed transactions to this URL as JSON.

## `telegramBotToken` (type: `string`):

Bot token from @BotFather.

## `telegramChatId` (type: `string`):

Chat or channel to post to.

## `discordWebhookUrl` (type: `string`):

Post alerts to a Discord channel.

## `slackWebhookUrl` (type: `string`):

Post alerts to a Slack channel.

## `maxConcurrency` (type: `integer`):

How many pages are downloaded side by side.

## `proxyConfiguration` (type: `object`):

Not needed — the register is an open public service. Only turn it on if your runs get refused.

## Actor input object example

```json
{
  "locations": [
    "Warszawa"
  ],
  "propertyType": "units",
  "includeApartmentSaleRows": false,
  "market": "any",
  "transactionTypes": [
    "freeMarket"
  ],
  "dateFrom": "12 months",
  "onlyWithAddress": false,
  "sortBy": "newest",
  "maxResults": 100,
  "maxResultsPerLocation": 0,
  "includeGeometry": false,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": true,
  "notificationLimit": 10,
  "includeRunSummary": true,
  "maxConcurrency": 6,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

## `runSummary` (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 = {
    "locations": [
        "Warszawa"
    ],
    "dateFrom": "12 months"
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/rcn-poland-transaction-prices-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 = {
    "locations": ["Warszawa"],
    "dateFrom": "12 months",
}

# Run the Actor and wait for it to finish
run = client.actor("trev0n/rcn-poland-transaction-prices-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 '{
  "locations": [
    "Warszawa"
  ],
  "dateFrom": "12 months"
}' |
apify call trev0n/rcn-poland-transaction-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trev0n/rcn-poland-transaction-prices-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/ye04oRdaCTxtZkRVK/builds/SzZ1zq8ahc25YEL6z/openapi.json
