---
id: "es_referenciacatastral"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["realestate"]
country: ["ES"]
langs: ["es"]
quality: 100
url: "http://registry.apicrafter.io/datatype/es_referenciacatastral"
---

# Spanish cadastral reference (referencia catastral) (`es_referenciacatastral`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Referencia catastral, the 20-character identifier that the Spanish Directorate General for Cadastre gives to a real estate property. It holds 14 characters for the parcel, 4 for the property within the parcel and 2 check letters; digits and letters, including Ñ, are used.

- Personal data (PII): no
- Categories: Real estate (realestate)
- Countries: Spain (ES)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[0-9A-ZÑ]{7} ?[0-9A-ZÑ]{7} ?[0-9A-ZÑ]{4} ?[A-Z]{2}$
```

## Examples

- `10118A004030320000PY` — Real-world value published online
- `9872023 VH5797S 0001 WX` — Real-world value published online
- `10118A0 0403032 0000 PY` — The first example in its printed form
- `10118A004030320000PY7` (invalid example) — One character too many

## Mappings

- stdnum: `es.referenciacatastral`

## Supported by tools

- `dataprep`
- `pythonstdnum`

## Translations

- es: Referencia catastral

## Sources

- wikipedia: <https://es.wikipedia.org/wiki/Catastro#Referencia_catastral>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.es.referenciacatastral.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_es_referenciacatastral.html>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/es_referenciacatastral.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/realestate/es_referenciacatastral.yaml>
