# RCN Prices — Polish real-estate transaction prices (`lukas863/rcn-prices`) Actor

Real sale prices of flats, garages, premises, houses and land in Poland from the official RCN register (GUGiK). Pick a county, gmina or district and dates.

- **URL**: https://apify.com/lukas863/rcn-prices.md
- **Developed by:** [Łukasz Kucharski](https://apify.com/lukas863) (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 returneds

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

### What does RCN Prices do?

**RCN Prices** returns real transaction prices of **flats, garages, other premises, houses and land in Poland** for one county (powiat), municipality (gmina) or city district and a date range you choose. It reads the official Polish real-estate price register, **RCN (Rejestr Cen Nieruchomości)**, published by GUGiK and the county offices, and turns it into a clean table: one row per flat (or garage, or other premises unit), or one row per house / land transaction, with the deed date, location, price, area and price per m².

Pick a county such as Kraków or Warszawa, optionally a date range, and run it. You get a dataset you can download as CSV, Excel or JSON, or read through the Apify API.

### Po polsku

**RCN Prices** pobiera **ceny transakcyjne nieruchomości** z oficjalnego **Rejestru Cen Nieruchomości (RCN)** prowadzonego przez GUGiK i starostwa — prawdziwe ceny z aktów notarialnych, nie ceny ofertowe.

- **Typy:** mieszkania, garaże, lokale użytkowe, domy (budynki z gruntem) i działki niezabudowane.
- **Obszar:** powiat, gmina albo dzielnica (Warszawa, Kraków, Łódź) i dowolny zakres dat (do 24 miesięcy).
- **Wynik:** tabela z datą, ceną, powierzchnią, ceną za m², adresem do poziomu budynku i współrzędnymi; pobierzesz ją jako CSV, Excel lub JSON.
- **Cena:** $2 za 1 000 zwróconych transakcji (płacisz tylko za wiersze, które dostajesz).
- **Prywatność:** bez numerów lokali i działek, pięter, danych notariusza i stron transakcji; powierzchnie zaokrąglone.

Jak zacząć: wybierz **powiat** w zakładce Input, opcjonalnie typ nieruchomości, gminę i daty, kliknij **Start**.

### Why use RCN Prices?

Asking prices on listing portals are not sale prices. RCN holds the prices from notarial deeds, but the public service speaks WFS/GML, uses Polish codes, and mixes flats with garages, shares and multi-unit deals. This Actor does that work for you:

- **Real sale prices**, not listings, straight from the official register.
- **Price per m² you can trust**: when it cannot be computed reliably the value is left empty and a flag tells you why.
- **Ready-to-use location**: town, street, building number and WGS84 latitude/longitude.
- **Fresh on every run**: the register is queried live, nothing is cached.

Typical users: property investors and buyers checking a neighbourhood, valuers and analysts building comparables, journalists and researchers studying housing prices, and developers feeding price data into their own apps.

### How to use RCN Prices

1. Open the Actor's **Input** tab.
2. Choose the **County (powiat)**. Cities with county rights (e.g. Kraków, Warszawa, Wrocław) are separate entries.
3. Pick the **Property type**: flats (default), garages, other premises, houses with land, or undeveloped land.
4. Optionally narrow it with **Municipality or city district** — one gmina of that county, or a district (dzielnica / delegatura) of Warszawa, Kraków or Łódź.
5. Optionally set **Date from** and **Date to**. Leave them empty for the last 12 months.
6. Click **Start** and open the **Output** tab when the run finishes.

### Input

| Field          | Required | Description                                                                                                                                                                                                         |
| -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `county`       | yes      | 4-digit TERYT county code, e.g. `"1261"` for Kraków, `"1465"` for Warszawa. Choose it from the list in the form.                                                                                                    |
| `propertyType` | no       | `flat` (default), `garage`, `otherPremises`, `house` or `land`. Flats, garages and other premises: one row per unit. Houses (and other buildings sold with land) and undeveloped land: one row per transaction.     |
| `municipality` | no       | 7-digit TERC code of a gmina (e.g. `"1206113"` Skawina) or a city district (e.g. `"1465058"` Mokotów) inside the chosen county. Empty = whole county. A code outside the county stops the run with a clear message. |
| `dateFrom`     | no       | Start of the deed-date range. Absolute (`2026-01-01`) or relative to today (`12 months`, `30 days`, `1 year`). Default `12 months`.                                                                                 |
| `dateTo`       | no       | End of the deed-date range, same formats. Default today.                                                                                                                                                            |

For Warszawa, Kraków and Łódź, choosing the city gmina returns the whole city; choosing a district narrows it to that district.

The range may be at most **24 months**. For a longer period, run the Actor several times with consecutive ranges.

```json
{
    "county": "1261",
    "dateFrom": "2026-01-01",
    "dateTo": "2026-06-30"
}
```

### Output

One dataset row per flat, garage or other premises unit, or one row per house / land transaction. Example (a flat):

```json
{
    "transactionId": "44FF131A-8125-3972-E063-0C0A1EAC47F8",
    "propertyType": "flat",
    "countyTeryt": "1261",
    "countyName": "Kraków",
    "municipalityTeryt": "1261011",
    "municipalityName": "Kraków",
    "districtTeryt": "1261049",
    "districtName": "Kraków-Podgórze",
    "date": "2025-11-27",
    "transactionType": "wolnyRynek",
    "market": "rynekWtorny",
    "transactionPrice": 750000,
    "price": 750000,
    "priceSource": "property",
    "areaM2": 40,
    "pricePerM2": 17908,
    "pricePerM2Flag": null,
    "town": "KRAKÓW",
    "street": "SZPAKOWA",
    "buildingNumber": "10",
    "latitude": 50.01161,
    "longitude": 19.9782,
    "premisesFunction": "mieszkalna",
    "buildingType": null,
    "buildingAreaM2": null,
    "landAreaM2": null,
    "landUse": null,
    "zoning": null,
    "parcelCount": null,
    "pricePerM2Land": null
}
```

| Field                                   | Description                                                                                                                                                          |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `transactionId`                         | RCN transaction identifier. Every unit sold in the same deal shares it.                                                                                              |
| `countyTeryt`                           | 4-digit TERYT code of the county.                                                                                                                                    |
| `countyName`                            | County name.                                                                                                                                                         |
| `municipalityTeryt`, `municipalityName` | Gmina (7-digit TERC code and name), taken from the RCN unit identifier. In Warszawa, Kraków and Łódź the gmina is the whole city.                                    |
| `districtTeryt`, `districtName`         | Warszawa dzielnica or Kraków / Łódź delegatura; empty elsewhere.                                                                                                     |
| `date`                                  | Deed date, `YYYY-MM-DD`.                                                                                                                                             |
| `transactionType`                       | RCN transaction type as published, e.g. `wolnyRynek` (open-market sale). Filter on it if you only want market sales.                                                 |
| `market`                                | `rynekPierwotny` (primary, from a developer) or `rynekWtorny` (secondary).                                                                                           |
| `transactionPrice`                      | Gross price of the whole transaction, PLN. Can cover several flats, garages or other premises.                                                                       |
| `price`                                 | Gross price attributed to this row, PLN: the unit's price, or the whole transaction price for houses and land.                                                       |
| `priceSource`                           | `unit` when the register gives the unit's own price; `property` when it is taken from a single-unit transaction's property price; `transaction` for houses and land. |
| `areaM2`                                | Flats, garages, other premises: usable area rounded to the nearest 5 m² (minimum 5). Empty for houses and land.                                                      |
| `pricePerM2`                            | `price` divided by the exact usable area from the register, rounded to whole PLN. Empty when not reliable.                                                           |
| `pricePerM2Flag`                        | Why `pricePerM2` is empty (see below); empty when it is set.                                                                                                         |
| `town`, `street`, `buildingNumber`      | Building-level address from the register. A building number that may include a flat number is cut to the building part.                                              |
| `latitude`, `longitude`                 | WGS84 coordinates: the RCN point of the unit; for houses and land the centre of the first building or parcel, rounded to ~100 m.                                     |
| `propertyType`                          | `flat`, `garage`, `otherPremises`, `house` or `land` — the type chosen for the run.                                                                                  |
| `premisesFunction`                      | Premises function from the register (e.g. `garaz`, `handlowoUslugowa`, `biurowa`); empty for houses and land.                                                        |
| `buildingType`, `buildingAreaM2`        | Houses: building type(s) and summed usable area rounded to 5 m² (often empty in the register).                                                                       |
| `landAreaM2`, `parcelCount`             | Houses and land: summed parcel area rounded to 10 m², and the number of parcels in the transaction.                                                                  |
| `landUse`, `zoning`                     | Houses and land: parcel land use and local-plan zoning as published (several values joined with `;`).                                                                |
| `pricePerM2Land`                        | Houses: transaction price divided by the land area.                                                                                                                  |

Fields that the register leaves empty are `null`. The **Overview** table in the Output tab shows the most useful columns; all fields are in the full dataset export.

#### How the price is chosen (flats, garages, other premises)

- If the register gives a price for the flat itself, that price is used (`priceSource: "unit"`).
- Otherwise, if the transaction contains only this one flat, the price of the whole property is used (`priceSource: "property"`).
- Otherwise `price` is empty.

#### Price per m² flags

| Flag                        | Meaning                                                                                                            |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `missingArea`               | No usable area: for the unit, the buildings of a house, or the parcels of a land deal.                             |
| `multiUnitWithoutUnitPrice` | Several units were sold for one combined price and the register has no separate price for this flat.               |
| `missingPrice`              | No price is available for the row.                                                                                 |
| `partialShare`              | Only a share was sold (e.g. 1/2), so dividing the price by the whole area would mislead.                           |
| `mixedDeal`                 | Houses only: the transaction also includes undeveloped land, so the price covers more than the house and its plot. |

#### Garages and other premises

Garages (`propertyType: "garage"`) and other premises (`"otherPremises"`: retail, office and other units) follow the same rules as flats: one row per unit, the same price rule and the same flags. Note that most parking spaces in underground garages are sold as a **share** of one large garage unit (e.g. 1/120), so many garage rows carry `partialShare` and no price per m² — the price itself is still there.

#### Houses and land

For `propertyType: "house"` (houses and other buildings sold with their land) and `"land"` (undeveloped land), the Actor returns **one row per transaction**, because the register gives one price for the whole deal, which often covers several parcels or a building with its parcels.

- `price` is the whole transaction price (`priceSource: "transaction"`).
- **Houses:** `pricePerM2` = price ÷ the buildings' usable area. The register often has no usable area for houses; then the row is flagged `missingArea`, and `pricePerM2Land` (price ÷ land area) is still given.
- **Land:** `pricePerM2` = price ÷ the summed parcel area.
- `landUse` and `zoning` are the parcel land use and local-plan zoning as published; `buildingType` is the building type; `parcelCount` is the number of parcels in the deal.
- Location is the building address (or parcel address if any) and the approximate centre (rounded to about 100 m) of the first building or parcel.
- House and land runs read two larger RCN layers, so they take longer than flat runs.

### Pricing

You pay **$2 per 1,000 results** ($0.002 per returned transaction), plus Apify's small automatic fee for starting the Actor. You pay only for rows you get in the dataset; an empty result costs only the start fee.

Rows are returned **newest first** (by deed date). If you set a **maximum cost per run**, the Actor stops when the limit is reached and you get the newest transactions that fit within it. The run still finishes successfully, and its status message says so, e.g. `Returned 2500 of 12800 transactions — the maximum cost per run was reached. Raise the limit to get the rest.`

Example costs for 12 months of data:

| Run                               | Rows (approx.) | Cost (approx.) |
| --------------------------------- | -------------- | -------------- |
| Kraków, flats                     | 12,800         | $25.60         |
| Warszawa, flats                   | 17,400         | $34.80         |
| Kraków county (krakowski), houses | 1,180          | $2.36          |
| Kraków county (krakowski), land   | 2,180          | $4.36          |

The row count depends on how much the county office has published, so the actual cost of a run can differ.

### Privacy

The Actor deliberately leaves out details that could identify a specific property or deed:

- the area of flats, premises and buildings is rounded to 5 m², and land area to 10 m²;
- for houses and land, the location is rounded to about 100 m (3 decimal places), so it never points at a single parcel;
- **never returned**: floor, unit number or unit ID, parcel number or parcel ID, building ID, notary office or name, deed number, buyer and seller types, number of rooms.

Because floor and unit number are removed, rows from one multi-unit deal (for example several flats bought from a developer in one building) can look identical. They are separate flats, not duplicates.

### Data source and limitations

- Source: the official RCN WFS service, `https://mapy.geoportal.gov.pl/wss/service/rcn`, maintained by GUGiK with data supplied by the county offices (starostwa powiatowe and city offices).
- The service is queried live on every run, so results are as fresh as the register itself.
- **Completeness and delay vary by county.** Each county office publishes on its own schedule. Some are current within weeks; others lag by months. For example, on 22 November 2026 Kraków already had recent transactions while Warszawa had almost none for July to October 2026. An empty or thin result for recent months usually means the county has not published them yet.
- One property type per run: flats, garages, other premises (one row per unit), or houses and undeveloped land (one row per transaction). A garage sold together with a flat stays part of that deal: the flat then gets no property-level price, and the garage appears in garage runs.
- A transaction that mixes premises (e.g. a flat) with a house or land is reported with the premises types, not as a house or land row.
- All transaction types are returned as published. Use `transactionType` and `market` to filter.
- The values are what the register contains. Data-entry errors made by the source office are not corrected.
- Source attribution: data from Rejestr Cen Nieruchomości (RCN), Główny Urząd Geodezji i Kartografii and county offices, retrieved live and processed (coarsened, aggregated) by this Actor.

### FAQ

**How much data does one run return?**
A large city over 12 months returns roughly 10,000 to 15,000 flats; a rural county a few hundred. House and land runs return about 1,000 to 3,000 transactions for a large county. A 12-month run takes about a minute.

**How much does a run cost?**
$0.002 per returned transaction plus the start fee, so a 12-month Kraków run is about $25.60. To pay less, shorten the date range or set a maximum cost per run; you then get the newest transactions that fit. See *Pricing*.

**Can I get several counties at once?**
One run covers one county. Run the Actor once per county, for example through the API or a scheduled task.

**Why is `pricePerM2` empty for some rows?**
Because it could not be computed reliably. The `pricePerM2Flag` column tells you the reason.

**Why are there no rows for the last few months?**
The county office has probably not published those transactions in RCN yet. See *Data source and limitations*.

**Can I get more than 24 months?**
Split the period into ranges of up to 24 months and run the Actor once for each.

**What does "The RCN service (GUGiK) is temporarily unavailable" mean?**
The public RCN service had an outage: it returned an error page instead of data. The Actor retries each request for about a minute before giving up. Nothing was returned, so you were charged only the small start fee. Please try again later.

**Where can I report a problem?**
Use the **Issues** tab of this Actor and include the county and date range you used.

# Actor input Schema

## `county` (type: `string`):

County to fetch transactions for, including cities with county rights. Values are 4-digit TERYT codes from the official GUS TERC register.

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

One property type per run. Flats, garages and other premises return one row per unit; houses (and other buildings sold with land) and undeveloped land return one row per transaction with summed, rounded areas. House and land runs read two more RCN layers and take longer.

## `municipality` (type: `string`):

Optional. Narrows the county to one gmina, or to one district (dzielnica or delegatura) of Warszawa, Kraków or Łódź (RCN does not code Poznań and Wrocław flats by delegatura). The area must lie in the chosen county; for cities with districts, the city gmina returns the whole city. Leave empty to get the whole county. Values are 7-digit TERYT codes from the official GUS TERC register.

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

Start of the transaction date range (inclusive). Absolute date YYYY-MM-DD, or a relative value "N days|weeks|months|years" meaning N units before today (e.g. "12 months"). The range may span at most 24 months.

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

End of the transaction date range (inclusive). Absolute date YYYY-MM-DD, or a relative value "N days|weeks|months|years" meaning N units before today (e.g. "12 months"). "0 days" means today.

## Actor input object example

```json
{
  "county": "1261",
  "propertyType": "flat",
  "dateFrom": "12 months",
  "dateTo": "0 days"
}
```

# 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 = {
    "county": "1261"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lukas863/rcn-prices").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 = { "county": "1261" }

# Run the Actor and wait for it to finish
run = client.actor("lukas863/rcn-prices").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 '{
  "county": "1261"
}' |
apify call lukas863/rcn-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lukas863/rcn-prices"
        }
    }
}
```

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/Tb7l9mB6cLRpRkIb8/builds/wu88gaeH7RsIgXLVL/openapi.json
