getregdata
Home / Blog / Article
Article · 2026-11-01

How to Read a Polish Land Register Entry (Księga Wieczysta) and Pull It as Data

poland · real-estate · land-register · due-diligence · api · 12 min read

A Polish land register entry (księga wieczysta, KW) is split into four sections. Dział I describes the property, Dział II names the owner or perpetual usufructuary, Dział III records rights, claims and restrictions, and Dział IV lists mortgages. Each book has a number of the form WA4M/00160286/2: a four-character court code, an eight-digit register number and a check digit. You can read any book for free in the Ministry of Justice’s online viewer if you know the number. To pull many books as structured JSON, the EKW Land Registry Scraper on Apify takes a list of KW numbers and returns each section as a separate object.

This guide covers what the register is, how to read each section, how the number is built and checked, and how to automate lookups without misreading the results.

What the land register is

Polish land and mortgage registers are kept under the Act of 6 July 1982 on Land Registers and Mortgage (ustawa o księgach wieczystych i hipotece). The district courts (sądy rejonowe) keep them, in their land register divisions (wydziały ksiąg wieczystych), and the books are held electronically in the Ministry of Justice’s central database.

Two principles matter when you read one. First, the register is public: anyone who knows the KW number can read it without showing a legal interest. Second, the register carries public faith (rękojmia wiary publicznej). In general, a person who acquires a right from the registered owner in good faith is protected even if the entry turns out to be wrong, which is why banks, notaries and buyers rely on the KW and not on what the seller says. The exceptions are covered in the limits section below.

A KW is opened for a property (nieruchomość), not for a person or a company. A plot can have its own book or share one with other plots, and a separately owned flat gets a book of its own. Valuations, building permits, zoning and tax data are not in the land register; they live in other registers.

The four sections (Dział I-IV)

The online viewer and the official extracts both show the same structure. Dział I has two parts, so you will often see five headings on screen.

SectionPolish headingWhat it records
Dział I-OOznaczenie nieruchomościThe property itself: plot numbers and identifiers, cadastral precinct, location (voivodeship, municipality, town, district), street, land use, total area, and buildings or premises.
Dział I-SpSpis praw związanych z własnościąRights attached to ownership, for example a share in the common parts of a building or an easement that benefits this property.
Dział IIWłasność i użytkowanie wieczysteWho owns the property or holds perpetual usufruct (użytkowanie wieczyste), with ownership shares and the basis of acquisition. Owners can be individuals, companies or the State Treasury.
Dział IIIPrawa, roszczenia i ograniczeniaLimited rights in rem other than mortgages (easements, usufruct), personal rights and claims (for example a pre-emption right or a claim to transfer ownership), and restrictions on disposal, including enforcement (egzekucja) notes.
Dział IVHipotekaMortgages: amount, currency, type, and the creditor.

Every section also carries its legal basis: the document behind each entry (a notarial deed, a court decision, an administrative decision) and the application journal number.

Besides the entries, the page can show three kinds of text:

  1. “BRAK WPISÓW” means “no entries”. On Dział IV it means no mortgage is registered. On Dział III it means no registered restrictions.
  2. A wzmianka (note) is a short annotation saying an application has been filed and not yet decided, for example a new mortgage or a change of owner. The entry it announces is not in the book yet.
  3. Migration comments (komentarz do migracji) appear on books that were moved from paper to the electronic system. They carry text from the old book that did not fit the new structure.

Current, full or legacy view

The viewer offers three views of a book, and the choice changes what you read:

  • Aktualna - current content only. Deleted entries are hidden.
  • Zupełna - full content including deleted (struck-through) entries. Use it to see past owners or mortgages that have been removed.
  • Dotychczasowa - the current content in the older presentation format.

The KW number: court code, number, check digit

A KW number has three parts separated by slashes:

WA4M / 00160286 / 2
 |        |       |
 |        |       check digit (0-9)
 |        8-digit register number, zero-padded
 4-character court division code

The court code names the land register division that keeps the book. WA4M is the X Land Register Division of the District Court for Warszawa-Mokotów. Almost all codes follow the pattern of two letters, a digit and a letter (KR1P, PO1P, GD1G, WR1K), and the official list of divisions has about 350 of them. The letters hint at the city, but the list is the authority: look the code up rather than guessing the court from it.

The register number is an eight-digit serial within that division. Leading zeros are part of it.

The check digit is computed from the first twelve characters, so it catches a mistyped code or number. The method is public:

  1. Map each character to a value. Digits keep their value, X = 10, and letters run A=11, B=12, C=13 up to Z=33, skipping Q and V (so P=26, R=27, W=31, Y=32).
  2. Multiply the twelve values by the repeating weights 1, 3, 7, 1, 3, 7, and so on.
  3. Sum the products. The check digit is the sum modulo 10.

For WA4M00160286: W(31)x1 + A(11)x3 + 4x7 + M(23)x1 + 0x3 + 0x7 + 1x1 + 6x3 + 0x7 + 2x1 + 8x3 + 6x7 = 202, and 202 mod 10 = 2. That gives WA4M/00160286/2.

const MAP = Object.fromEntries([
  ...'0123456789'.split('').map((c, i) => [c, i]),
  ['X', 10],
  ...'ABCDEFGHIJKLMNOPRSTUWYZ'.split('').map((c, i) => [c, 11 + i]),
]);
function kwCheckDigit(code, number) {
  const s = (code + number.padStart(8, '0')).toUpperCase();
  const w = [1, 3, 7];
  return [...s].reduce((sum, ch, i) => sum + MAP[ch] * w[i % 3], 0) % 10;
}
kwCheckDigit('WA4M', '00160286'); // 2

Where to find the number

The free viewer only searches by KW number. It has no search by owner name or address. In practice you get the number from the seller or borrower, the notarial deed, a mortgage agreement, or an extract from the land and building records (ewidencja gruntów i budynków) kept by the county office (starostwo).

The manual way: the official viewer

For one property, the Ministry of Justice viewer at przegladarka-ekw.ms.gov.pl is free and enough:

  1. Choose the court code from the list, type the eight-digit number and the check digit.
  2. Search for the book and open its content.
  3. Pick a view (current or full) and open each section in turn.
  4. Print or save the page if you need a record of what you saw.

What you read in the viewer is informational. When you need a document with legal force, for a court or a notary for example, you order an official extract (odpis) through the Ministry’s e-services. That is a separate, paid service.

Past a handful of books the viewer gets slow. Each book is a separate manual lookup and each section a separate screen, so the text ends up copied into a spreadsheet by hand, and the viewer does not alert you when a book changes. The actor is built for that job.

The automated way: KW numbers in, sections out as JSON

The EKW Land Registry Scraper reads the same public register and returns one record per KW number. The registry page at /registries/poland/ekw-ksiegi-wieczyste-scraper/ lists the fields. You need an Apify account and nothing else.

Input

{
  "kwNumbers": ["WA4M/00160286/2", "WA4M/00160286"],
  "viewType": "aktualna",
  "sections": ["IO", "II", "III", "IV"],
  "includeRawHtml": false
}
ParameterMeaning
kwNumbersRequired. CODE/NUMBER/DIGIT or CODE/NUMBER. The check digit is calculated if you leave it out.
viewTypeaktualna (current, default), zupelna (full history) or dotychczasowa (legacy format).
sectionsAny of IO, ISp, II, III, IV. Default is all five.
includeRawHtmlAlso returns each section’s source markup, for your own parsing or archiving.

Output

A trimmed record for the example book. It is a Warsaw University of Technology campus plot, with the Dział II content replaced by placeholders:

{
  "kwNumber": "WA4M/00160286/2",
  "courtCode": "WA4M",
  "courtName": "SĄD REJONOWY DLA WARSZAWY-MOKOTOWA W WARSZAWIE, X WYDZIAŁ KSIĄG WIECZYSTYCH",
  "propertyType": "NIERUCHOMOŚĆ GRUNTOWA",
  "viewType": "aktualna",
  "dzialIO": {
    "available": true,
    "empty": false,
    "title": "DZIAŁ I-O - OZNACZENIE NIERUCHOMOŚCI",
    "entries": [
      { "label": "Położenie", "value": "MAZOWIECKIE, M. ST. WARSZAWA, WARSZAWA, ŚRÓDMIEŚCIE" },
      { "label": "Obszar całej nieruchomości", "value": "89438,00 M2" }
    ]
  },
  "dzialII": {
    "available": true,
    "empty": false,
    "title": "DZIAŁ II - WŁASNOŚĆ",
    "entries": [
      { "label": "[rubric]", "value": "[owner name] [PESEL redacted]" }
    ]
  },
  "success": true
}

A section with nothing registered in it looks like this:

"dzialIV": { "available": true, "empty": true, "rawText": "BRAK WPISÓW" }

How to read the key fields:

  • kwNumber, courtCode, courtName - the book as the register identifies it, with the check digit filled in.
  • propertyType - land (gruntowa), building (budynkowa) or premises (lokalowa).
  • dzialIO … dzialIV - one object per section. entries holds label/value pairs in the order the register prints them.
  • available - the section was read.
  • empty - the register itself printed BRAK WPISÓW for that section. available: true with empty: true on Dział IV is a real “no mortgage registered”, not a gap in the data.
  • success - always true on returned rows. If any requested section of a book could not be read, the whole book is held back from the dataset, is not charged, and is listed in the run’s ERRORS record so you can re-run it. A KW number that does not exist is reported as not found and is not charged either.

JavaScript

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('regdata/ekw-ksiegi-wieczyste-scraper').call({
  kwNumbers: ['WA4M/00160286/2'],
  sections: ['IO', 'III', 'IV'],
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const kw of items) {
  const mortgage = kw.dzialIV?.empty ? 'none registered' : `${kw.dzialIV?.entries?.length ?? 0} entries`;
  console.log(kw.kwNumber, kw.propertyType, 'Dział IV:', mortgage);
}

Python

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("regdata/ekw-ksiegi-wieczyste-scraper").call(
    run_input={"kwNumbers": ["WA4M/00160286/2"], "sections": ["IO", "III", "IV"]}
)

for kw in client.dataset(run["defaultDatasetId"]).iterate_items():
    restrictions = "none" if kw["dzialIII"]["empty"] else len(kw["dzialIII"]["entries"])
    print(kw["kwNumber"], "Dział III entries:", restrictions)

A worked workflow: watching a collateral portfolio

Say you lend against Polish real estate and hold 400 KW numbers as collateral. You want to know when anything is added to Dział III or Dział IV, such as an enforcement note, a new mortgage or a pending application.

  1. Save the list as an Apify task with sections: ["III", "IV"] and viewType: "aktualna". Leaving out Dział II keeps owner names and IDs out of your dataset if you do not need them.
  2. Schedule it weekly. Apify schedules run the task. Each run returns one row per book.
  3. Diff against last week. Store each book’s Dział III and IV entries (a hash of the label/value list is enough) and compare. The things to flag are new entries, a section that changes from empty: true to empty: false, and any entry whose text contains “wzmianka”.
  4. Route the changes. Send changed books to a webhook, Slack, e-mail or a sheet. Apify integrations connect to n8n, Make and Zapier. In n8n, use the official Apify community node, take the run’s dataset, and compare in a Code node.
  5. Re-run failures. Read the run’s ERRORS record and queue those KW numbers again the next day. Do not treat a missing row as “unchanged”.

The same pattern covers other jobs. Debt collectors can check what a debtor owns before enforcement and combine it with the KRZ insolvency register. Buyers can confirm before signing that the seller is the registered owner and that Dział III and IV hold what the seller disclosed. Analysts can pull Dział I-O for a list of plots to get areas and locations in one table.

Limits and gotchas

  • A wzmianka changes the reading. A note about a pending application removes the public-faith protection for that entry. A Dział IV with no entries and a pending note is not a clean book: a mortgage may be about to be entered. Read the notes, not just the empty flag.
  • Public faith has exceptions. It does not protect against rights that exist outside the register (for example some statutory easements and some public-law claims), and it does not cover free-of-charge acquisitions or buyers in bad faith. Treat the KW as the starting point for due diligence, not the whole of it.
  • The current view hides history. A mortgage that was deleted last month is gone from aktualna. Use zupelna when you need to know what was there before.
  • Typos give you another real book. The actor checks the court code against the official division list and recomputes the check digit. If you pass a digit that does not match, it uses the computed one. A typo in the eight-digit number can therefore still point to a valid book, just the wrong property. Check that dzialIO describes the property you expect.
  • No search by owner. Neither the register viewer nor the actor finds books by owner name or address. You need the KW numbers.
  • Not an official extract. The output reproduces what the register shows. Where a court, notary or bank needs an odpis with legal force, order one from the Ministry.
  • Older layouts. Some legacy or unusual books parse less cleanly. includeRawHtml keeps the source next to the parsed entries.

Dział II names owners, and for individuals the register often includes their PESEL (national ID number). The actor returns that content as the register shows it and does not filter PESEL out. When you run it, you are the data controller under GDPR. You need a lawful basis for the processing, such as a legitimate interest in credit or transaction due diligence, a contract, or a legal obligation. You also need to collect only what that purpose requires, store it securely and answer data-subject requests. The Polish data protection authority (UODO) has treated KW numbers linked to individuals’ property as personal data. Do not republish books or numbers openly. Use sections to skip Dział II when you only need mortgages or restrictions. For an earlier discussion of compliance use cases for this actor, see our EKW review response and compliance post.

Pricing

Pay per result: from $0.008 per property record plus $0.025 per run start, and you pay nothing for a book that could not be read in full or was not found. Apify Free-plan accounts get a preview allowance of 25 KW numbers per 30 days. Current prices are on the Store page.

FAQ

How many sections does a Polish land register have?

Four: Dział I (property designation, split into I-O and I-Sp), Dział II (ownership and perpetual usufruct), Dział III (rights, claims and restrictions) and Dział IV (mortgages). That is why tools often show five headings.

Is the Polish land register free to view?

Yes. Browsing a book in the Ministry of Justice viewer is free for anyone with the KW number. Official extracts (odpisy) are a separate paid service.

Can I find a księga wieczysta by address or owner name?

Not in the public viewer, which searches by KW number only. Get the number from the deed, the seller, a loan agreement or the land and building records at the county office.

What does “BRAK WPISÓW” mean in Dział IV?

It means no mortgage is registered in the book. Check for a wzmianka as well, because a pending application can add a mortgage that is not yet entered.

What if I don’t know the check digit?

Pass CODE/NUMBER and the actor computes it. You can also compute it yourself with the 1-3-7 weighting described above.

Does the output include PESEL numbers?

It can. Dział II often contains them for individual owners and they are not removed. Leave out Dział II if you do not need it, and process what you collect under a documented GDPR legal basis.


Turn this into working data. Browse the registries and use cases, or start free on Apify.