# Spain Cadastre Public Data (Referencia Catastral, no owners) (`innovito/catastro-publico`) Actor

Official Spanish Cadastre non-protected property data by referencia catastral: address, use, floor area, year and coordinates. Never requests or returns the owner, NIF or cadastral value (sin titular). Official free web services only.

- **URL**: https://apify.com/innovito/catastro-publico.md
- **Developed by:** [Asier Sanchez](https://apify.com/innovito) (community)
- **Categories:** Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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.

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

## Spain Cadastre Public Property Data (Referencia Catastral, no owners)

Get official **Spanish Cadastre** non-protected property data by **referencia catastral** as clean JSON or CSV rows.

The Actor calls the **official free Cadastre web services** (Consulta_DNPRC and, optionally, Consulta_CPMRC for coordinates). It returns address, use, floor area, year and coordinates. **It never requests or returns the owner, NIF or cadastral value** (sin titular).

Ideal for due diligence, valuation support and enrichment of property records without scraping listing portals.

### What you get

| Field | Description |
|---|---|
| `cadastralReference` | Official referencia catastral |
| `address`, `municipality`, `province`, `postalCode` | Tax address of the property (not an owner name) |
| `use`, `floorAreaM2`, `constructionYear`, `plotAreaM2` | Declared use, areas and year |
| `units` | Unit breakdown (dwelling, store, parking…) when present |
| `latitude`, `longitude`, `srs` | WGS84 coordinates when `includeCoordinates` is enabled |
| `mapUrl` | Official cadastre map link |
| `sourceAttribution` | Required credit line |

### Input example

```json
{
  "cadastralReferences": ["2749704YJ0624N0001DI"],
  "includeCoordinates": true
}
```

References may have 14, 18 or 20 characters. A 14-character plot reference can return every unit on that plot. Spaces are ignored.

### Output example

```json
{
  "cadastralReference": "2749704YJ0624N0001DI",
  "requestedReference": "2749704YJ0624N0001DI",
  "propertyType": "UR",
  "address": "CL GUAYANA-MOJONERA 3 46388 GODELLETA (VALENCIA)",
  "province": "VALENCIA",
  "municipality": "GODELLETA",
  "postalCode": "46388",
  "use": "Residencial",
  "floorAreaM2": 94,
  "participationCoefficient": 100,
  "constructionYear": 1976,
  "plotAreaM2": 839,
  "plotDescription": "Parcela construida sin división horizontal",
  "mapUrl": "https://www1.sedecatastro.gob.es/Cartografia/mapa.aspx?del=46&mun=138&refcat=2749704YJ0624N",
  "units": [
    {"use": "VIVIENDA", "type": "VIVIENDA UNIFAMILIAR", "floorAreaM2": 58, "stair": "1", "floor": "00", "door": "00"}
  ],
  "latitude": 39.4080401884542,
  "longitude": -0.645262634278451,
  "srs": "EPSG:4326",
  "sourceAttribution": "Fuente: Dirección General del Catastro, servicios web libres (datos catastrales no protegidos). https://www.catastro.hacienda.gob.es/",
  "scrapedAt": "2026-11-23T21:00:00+00:00"
}
```

This example uses a public documented cadastral reference. There is no owner or NIF in the output.

### Python example (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/catastro-publico").call(
    run_input={
        "cadastralReferences": ["2749704YJ0624N0001DI"],
        "includeCoordinates": True,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["cadastralReference"], item["municipality"], item.get("floorAreaM2"))
```

### Pricing

Pay-per-event: $2.00 per 1,000 cadastral records written to the dataset, plus $0.00005 per Actor start. You are not charged for platform compute.

### Data source and terms

- Official free services of the Dirección General del Catastro: Consulta_DNPRC (non-protected data) and Consulta_CPMRC (coordinates). Courtesy pause between requests.
- Credit the Dirección General del Catastro. Do not present this Actor as an official Cadastre product.
- Only **datos no protegidos**. Owner, NIF and cadastral value are never requested and any unexpected owner-like keys are dropped.

***

## Catastro público de España (referencia catastral, sin titular)

Consulta los **datos catastrales no protegidos** de un inmueble a partir de su **referencia catastral**, en filas JSON o CSV.

Usa los **servicios web libres oficiales** de la Dirección General del Catastro (Consulta_DNPRC y, si lo pides, Consulta_CPMRC para coordenadas). Devuelve dirección, uso, superficie, año y coordenadas. **Nunca pide ni devuelve el titular, el NIF ni el valor catastral** (sin titular).

Ideal para due diligence, apoyo a tasación y enriquecimiento de fichas inmobiliarias sin scrapear portales de anuncios.

### Qué devuelve

| Campo | Descripción |
|---|---|
| `cadastralReference` | Referencia catastral oficial |
| `address`, `municipality`, `province`, `postalCode` | Dirección fiscal del inmueble (no es el nombre del titular) |
| `use`, `floorAreaM2`, `constructionYear`, `plotAreaM2` | Uso, superficies y año |
| `units` | Desglose de unidades (vivienda, trastero, aparcamiento…) si consta |
| `latitude`, `longitude`, `srs` | Coordenadas WGS84 si `includeCoordinates` está activo |
| `mapUrl` | Mapa oficial del Catastro |
| `sourceAttribution` | Línea de atribución obligatoria |

### Ejemplo de entrada

```json
{
  "cadastralReferences": ["2749704YJ0624N0001DI"],
  "includeCoordinates": true
}
```

Las referencias pueden tener 14, 18 o 20 caracteres. Una referencia de finca de 14 caracteres puede devolver todas las unidades de esa parcela.

### Ejemplo de salida

```json
{
  "cadastralReference": "2749704YJ0624N0001DI",
  "address": "CL GUAYANA-MOJONERA 3 46388 GODELLETA (VALENCIA)",
  "municipality": "GODELLETA",
  "province": "VALENCIA",
  "use": "Residencial",
  "floorAreaM2": 94,
  "constructionYear": 1976,
  "latitude": 39.4080401884542,
  "longitude": -0.645262634278451,
  "sourceAttribution": "Fuente: Dirección General del Catastro, servicios web libres (datos catastrales no protegidos). https://www.catastro.hacienda.gob.es/"
}
```

Este ejemplo usa una referencia catastral pública documentada. En la salida no hay titular ni NIF.

### Ejemplo en Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/catastro-publico").call(
    run_input={
        "cadastralReferences": ["2749704YJ0624N0001DI"],
        "includeCoordinates": True,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["cadastralReference"], item["municipality"], item.get("floorAreaM2"))
```

### Precio

Pago por uso: 2,00 $ por cada 1.000 fichas catastrales escritas en el dataset, más 0,00005 $ por arranque. No se cobra el cómputo de la plataforma.

### Origen y condiciones

- Servicios web libres oficiales de la Dirección General del Catastro: Consulta_DNPRC (datos no protegidos) y Consulta_CPMRC (coordenadas). Hay una pausa de cortesía entre peticiones.
- Hay que citar a la Dirección General del Catastro. Este Actor no es un producto oficial del Catastro.
- Solo **datos no protegidos**. No se piden titular, NIF ni valor catastral, y cualquier clave inesperada de ese tipo se elimina.

# Actor input Schema

## `cadastralReferences` (type: `array`):

One or more official referencias catastrales (14, 18 or 20 characters). A 14-character finca reference may return every unit on that plot. Spaces are ignored. Public documented example: <code>2749704YJ0624N0001DI</code>. This Actor never requests the owner, NIF or cadastral value.

## `includeCoordinates` (type: `boolean`):

If enabled, also call the official coordinates service (EPSG:4326). One extra request per reference.

## `maxItems` (type: `integer`):

Stop after this many property records. 0 = no limit.

## Actor input object example

```json
{
  "includeCoordinates": true,
  "maxItems": 0
}
```

# Actor output Schema

## `parcels` (type: `string`):

Dataset of official Spanish Cadastre non-protected property records (one row per unit or plot). Never includes the owner, NIF or cadastral value.

## `runStats` (type: `string`):

RUN_STATS record: references requested, parcels parsed and pushed, not-found and error counts.

# 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("innovito/catastro-publico").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("innovito/catastro-publico").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 innovito/catastro-publico --silent --output-dataset

```

## MCP server setup

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

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/kn9OvTTn4npl7Vfyw/builds/21INa2KJz7L5uwcWa/openapi.json
