# Slovenia Cadastral Parcels & Buildings - GURS KN (`j0401/si-cadastral-parcels`) Actor

Slovenia's national real-estate cadastre (GURS): 5.8M parcels, 1.17M buildings. Parcel area, building-parcel flag, cadastral income, building type, year built, utilities, floors and address. Look up by cadastral municipality, parcel number or EID; filter by area and year built. CC BY 4.0.

- **URL**: https://apify.com/j0401/si-cadastral-parcels.md
- **Developed by:** [Wenhao Yang](https://apify.com/j0401) (community)
- **Categories:** Real estate, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 cadastral records

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?

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

## Slovenia Cadastral Parcels & Buildings - GURS KN

Slovenia publishes its entire real-estate register - the **Kataster nepreminin** - as open geodata. This actor turns it into records you can query: **~5.84 million parcels**, **~1.17 million buildings**, **~580,000 addresses** and **~1.32 million** links between parcels and the buildings standing on them, across **2,698 cadastral municipalities** (counted on the live service 2026-11-23; the register grows every day, which is why these are approximations).

**Built for:** property researchers sizing land by municipality, analysts joining Slovenian parcels to their own datasets, site-selection teams who need building stock (type, year, floors, utilities) rather than a map, and anyone who wants a parcel's area and cadastral income in a row instead of a shapefile.

### What you get

One record per parcel, building, address, link or municipality. Every record carries the same key set - keys that do not apply to the layer you asked for are present and empty, so the shape never changes between layers.

- **parcels** - `eidParcel`, `parcelNumber`, `municipalityCode`, `municipalityName`, `areaM2`, `isBuildingParcel`, `hasRestriction`, `cadastralIncome`, `adminStatusCode` / `adminStatusSl`, `areaMethodCode` / `areaMethodSl`, `centroidE`, `centroidN`
- **buildings** - `eidBuilding`, `buildingNumber`, `floors`, `dwellings`, `businessPremises`, `grossFloorAreaM2`, `buildingTypeCode` / `buildingTypeSl`, `yearBuilt`, `yearRoofRenovation`, `yearFacadeRenovation`, `electricity`, `gas`, `water`, `sewer`, `registrationStatusCode` / `registrationStatusSl`
- **addresses** - `eidBuilding`, `addressText` (e.g. `Ilirska Bistrica, Veliko Brdo 6`)
- **links** - `eidParcel`, `eidBuilding`, `parcelNumber`, `buildingNumber`, `linkAreaM2` (the area the building occupies on that parcel)
- **municipalities** - `municipalityCode`, `municipalityName`

Two optional joins, each one round trip the caller would otherwise write:

- `includeBuildings: true` on a parcel query fills **`buildingEids`** - the buildings registered on each parcel.
- `includeAddress: true` on a building query fills **`addressTexts`** - the address text published for each building.

If nothing matches, the run still succeeds and emits a single diagnostic row (`_meta: true`, `stopReason: "empty-result"`) rather than an empty dataset. A run truncated by the charge limit, `maxResults` or the internal time budget emits a `_meta` row saying which. **`_meta` rows are not charged.**

### Examples

**The parcel behind a known number in Ljubljana:**

```json
{ "layer": "parcels", "municipality": "LJUBLJANA", "parcelNumber": "1", "maxResults": 10 }
```

**Every building in one cadastral municipality, with its address:**

```json
{ "layer": "buildings", "municipality": "2551", "includeAddress": true, "maxResults": 200 }
```

**What sits on a parcel:**

```json
{ "layer": "parcels", "municipality": "2551", "parcelNumber": "1292", "includeBuildings": true }
```

**How big a municipality is, in four numbers:**

```json
{ "mode": "summary", "municipality": "2551" }
```

**Buildings raised before 1900, over 100 m:**

```json
{ "layer": "buildings", "builtTo": 1900, "minAreaM2": 100 }
```

### Low cost

**From $0.014 per record, down to $0.0035 at Gold.**

Each parcel, building, address, link or municipality row is one metered record. A `summary` run costs one record, not one per underlying parcel. **`_meta` diagnostic rows are not charged.**

To hard-cap a run, set `maxTotalChargeUsd` in the run options: the actor stops when the limit is reached and emits a `_meta` row saying so. `maxResults` caps records per run (0 = up to 5,000).

### Why this is not a thin wrapper

The register is a WFS feature service, not a search API. Pointing a client at it gets you XML with a different feature type per layer, polygons that dominate the payload, no way to join a parcel to its buildings, and a front end that **turns away the stock `python-requests` and `curl` user agents with HTTP 407** (measuring that took a while: it is not authentication, and a declared bot identity is accepted). This actor absorbs all four.

**1. One record shape across five layers.** Parcels expose 47 columns, buildings 129, addresses 8. We publish one key set for every layer, empty where the layer has nothing to say, so a pipeline written against `parcels` keeps working when you switch to `buildings`.

**2. Joins the service cannot do.** `includeBuildings` resolves a parcel to its buildings through the parcel-building relation table; `includeAddress` resolves a building to its address text. Both are batched into `IN` queries rather than one request per row.

**3. Geometry dropped, centroid kept.** Parcel and building polygons are by far the largest part of every feature. We keep the published centroid (`E_CEN` / `N_CEN`, D96/TM) and discard the shapes.

**4. Filters chosen by measurement, not by what the service allows.** `GRAD_PARC='Da'` looks like an obvious filter and times out; free-text `LIKE` on the address column is refused with HTTP 403 on every attempt. Neither is offered as a filter - both are exposed as output fields instead, and asking for them raises a clear error rather than hanging.

It also **fails loudly instead of quietly**: every run re-counts the register's primary layers (parcels, buildings, addresses) against a floor and refuses to answer if the register has collapsed or the service is degraded.

### Data source

**GURS - Geodetska uprava Republike Slovenije**, the Surveying and Mapping Authority of Slovenia, via its public WFS service `ipi.eprostor.gov.si`. No API key and no account.

**Licence: CC BY 4.0** (Priznanje avtorstva). The national open-data portal records this dataset as *"Podatki so dostopni pod Creative Commons - Attribution 4.0 International (CC BY 4.0) licenco"* under the *Sploni pogoji uporabe geodetskih podatkov*. Commercial reuse and redistribution are permitted; **attribution: Geodetska uprava Republike Slovenije (GURS)**.

This actor is not affiliated with or endorsed by GURS.

### Limitations

- **No owner or title-holder data.** The register carries ownership layers (`OSEBE_H`, `LASTNISTVO_PRAVNIH_OSEB`); they contain personal names and addresses and are deliberately **not** exposed by this actor.
- **No transaction prices.** This is the cadastral register, not the property-market register. It says what a parcel is and what stands on it, not what it sold for.
- **Labels are Slovenian.** The service publishes `*_NAZIV_SL` (and sometimes IT/HU) columns; the `*_NAZIV_EN` columns exist in its schema but are empty on every row we sampled. Records carry the numeric code **and** the Slovenian label rather than a machine translation.
- **Municipality names match upper-case.** The register stores them as `1731 LJUBLJANA MESTO`; `municipality: "Ljubljana"` and `municipality: "LJUBLJANA"` are not the same query, and the actor upper-cases your input for you. A KO_ID number is always exact.
- **`parcelNumber` is not unique on its own.** Parcel 1292 exists in many municipalities - combine it with `municipality`.
- **Address search is not available.** The address text is only reachable by building identifier; the service refuses `LIKE` queries on that column.
- **Centroids are in D96/TM**, the Slovenian national grid, not WGS84.
- **Utilities are true / false / blank.** `electricity`, `gas`, `water` and `sewer` follow the register's own code list: 1 = connected (true), 2 = not connected (false), **0 = no record upstream (blank)**. Gas is the one to watch - most buildings carry no gas record at all, so a blank there means "not recorded", not "no connection".
- **`municipalityName` is the register's `NAZIV` as published.** On the parcel, building and link layers that string is prefixed with the KO_ID (`2551 VELIKO BRDO`), which is why `municipalityCode` carries the same number separately; on the municipalities layer it is the bare name (`LJUBLJANA MESTO`).
- **The two lookups disclose their own completeness.** If a run's time budget runs out while `includeBuildings` / `includeAddress` is still working, the dataset gets an extra `_meta` row (`stopReason: "join-incomplete"`); a blank `buildingEids` / `addressTexts` then means "not looked up" rather than "none on record". The `_meta` rows are not charged.
- **`minAreaM2` / `maxAreaM2` are not the same quantity on every layer** - the parcel's own area on `parcels` and `links`, the gross floor area on `buildings`. They do not apply to `addresses` or `municipalities`, and asking for them there is an error rather than a silent no-op.
- **Deep pulls are large.** A whole municipality can be thousands of parcels. Widen `maxResults` deliberately, and page with `municipality` rather than one unbounded run.

# Actor input Schema

## `layer` (type: `string`):

parcels = land parcels (default). buildings = registered buildings. addresses = building addresses. links = the parcel-to-building relation with the area each building occupies. municipalities = the 2,698 cadastral municipalities.

## `mode` (type: `string`):

rows = one record per parcel/building/address (default). summary = counts of parcels, buildings, addresses and links for one cadastral municipality (requires `municipality`).

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

Cadastral municipality as a KO_ID number (e.g. 1731) or part of its name (e.g. LJUBLJANA). Names are matched upper-case: the register stores them as '1731 LJUBLJANA MESTO'.

## `parcelNumber` (type: `string`):

Parcel number inside the municipality (ST_PARCELE), e.g. 1292 or 1440/7. Not unique on its own - combine with `municipality`.

## `buildingNumber` (type: `string`):

Building number inside the municipality (ST_STAVBE). Applies to layer=buildings, addresses and links.

## `eid` (type: `string`):

Exact identifier: parcel EID for layer=parcels, building EID for buildings / addresses / links.

## `minAreaM2` (type: `integer`):

Minimum area in square metres: the parcel area (POVRSINA) on layer=parcels and links, the gross floor area (BRUTO_TLORISNA_POVRSINA) on layer=buildings. Not available on addresses / municipalities. Blank = no lower bound.

## `maxAreaM2` (type: `integer`):

Maximum area in square metres, same quantity as minAreaM2 for the layer you chose. Blank = no upper bound.

## `builtFrom` (type: `integer`):

Earliest year of construction (only layer=buildings).

## `builtTo` (type: `integer`):

Latest year of construction (only layer=buildings).

## `includeBuildings` (type: `boolean`):

For layer=parcels: add `buildingEids`, a comma-separated list of the buildings registered on the parcel.

## `includeAddress` (type: `boolean`):

For layer=buildings: add `addressTexts`, the address text published for the building.

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

Cap the records pushed (0 = up to 5,000 per run). Each record is metered individually.

## Actor input object example

```json
{
  "layer": "parcels",
  "mode": "rows",
  "municipality": "",
  "parcelNumber": "",
  "buildingNumber": "",
  "eid": "",
  "includeBuildings": false,
  "includeAddress": false,
  "maxResults": 50
}
```

# Actor output Schema

## `recordsUrl` (type: `string`):

Cadastral parcels, buildings, addresses, links or municipalities - as JSON

## `datasetUrl` (type: `string`):

No description

## `runUrl` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("j0401/si-cadastral-parcels").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("j0401/si-cadastral-parcels").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 '{}' |
apify call j0401/si-cadastral-parcels --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,j0401/si-cadastral-parcels"
        }
    }
}
```

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/ZPvWRvbPwvCi5Tywg/builds/f2ptLR2wykpVKCKSF/openapi.json
