# Estrai aste immobili Demanio — Immobili dello Stato in vendita (`promptica/italy-state-property-sales`) Actor

Aste immobili dell'Agenzia del Demanio: immobili dello Stato in vendita con prezzo base, scadenza offerte, luogo, superficie e bandi. Filtri e monitor.

- **URL**: https://apify.com/promptica/italy-state-property-sales.md
- **Developed by:** [Lorenzo Talamucci](https://apify.com/promptica) (community)
- **Categories:** Real estate, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

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

## Estrai aste immobili Demanio — Immobili dello Stato in vendita

Estrai le **aste immobili dell'Agenzia del Demanio** in Excel, CSV o JSON: gli immobili dello Stato in vendita con prezzo base, scadenza per le offerte, data di apertura delle buste, regione, provincia, comune, indirizzo, superficie e link pubblici a bando e allegati. Filtra per zona, prezzo e categoria e ricevi ogni giorno solo i lotti nuovi o cambiati.

L'actor legge il portale ufficiale delle vendite del Demanio, scheda per scheda, e restituisce un record pulito per ogni lotto. Al 28 settembre 2026 il portale contava 72 bandi di vendita, uno dei quali con 64 lotti.

### Come trovare gli immobili del Demanio in vendita nella tua regione

1. Apri la scheda **Input** e incolla uno degli esempi qui sotto (vista JSON).
2. Premi **Start**.
3. Scarica il risultato da **Storage → Dataset** in Excel, CSV o JSON, oppure leggilo via API.

**Lotti in Veneto con prezzo base tra 4.000 e 50.000 euro, solo aste ancora aperte:**

```json
{"region": "VENETO", "minPrice": 4000, "maxPrice": 50000, "activeOnly": true, "maxResults": 200}
```

**Tutti i lotti di un bando, senza link ai documenti:**

```json
{"noticeId": "6168", "includeDocuments": false, "maxResults": 64, "maxPages": 100}
```

**Monitor giornaliero delle aste aperte in tutta Italia:**

```json
{"mode": "monitor", "monitorNome": "demanio-aste-aperte", "activeOnly": true, "maxResults": 500}
```

#### Campi di input

| Campo | Cosa fa |
|---|---|
| `region`, `province`, `city` | Regione, provincia (nome per esteso) e comune; corrispondenza esatta, maiuscole indifferenti |
| `category` | Destinazione del lotto come sul portale (es. `Agricola`) |
| `minPrice`, `maxPrice` | Limiti del prezzo base in euro; `0` disattiva il limite |
| `activeOnly` | Esclude i lotti aggiudicati e quelli con termine offerte scaduto (data di Roma) |
| `noticeId` | Codice numerico del bando |
| `propertyId` | Codice numerico dell'immobile; alternativo a `noticeId` |
| `includeDocuments` | Aggiunge i link pubblici a bando e allegati (default `true`); i PDF non vengono scaricati |
| `maxResults` | Lotti restituiti, da 1 a 5.000 (default 10) |
| `maxPages` | Pagine del portale lette al massimo, da 1 a 2.000 (default 200) |
| `mode` | `snapshot` restituisce tutto; `monitor` solo lotti nuovi o cambiati |
| `monitorNome` | Nome della memoria del monitor (default `demanio-sales-monitor`) |
| `proxyConfiguration` | Proxy Apify facoltativo; di default accesso diretto |

### Quali dati ottieni per ogni lotto

| Campo | Significato |
|---|---|
| `id`, `lotNumber` | Codice immobile e numero del lotto |
| `basePrice`, `currency` | Prezzo base d'asta, in euro |
| `price` | Prezzo di aggiudicazione, `null` finché non c'è |
| `offerDeadline` | Termine per presentare le offerte |
| `auctionDate` | Apertura delle buste ed esame delle offerte |
| `timeZone` | Sempre `Europe/Rome`: date e ore sono ora locale |
| `region`, `province`, `city`, `address` | Ubicazione |
| `category`, `propertyType` | Destinazione e tipologia (es. Agricola, Area) |
| `surfaceSqm` | Superficie in metri quadri |
| `documents` | Link pubblici: `notice` (bando) e `attachment` (allegati) |
| `sourceUrl`, `source`, `attribution`, `license`, `retrievedAt` | Scheda ufficiale, fonte, base del riuso, ora di lettura |
| `changeType` | Solo in modalità monitor: `new` o `changed` |

Record reale da una run del 28 settembre 2026 (allegati accorciati):

```json
{
  "id": "20691",
  "country": "IT",
  "source": "Agenzia del Demanio",
  "attribution": "Fonte: Agenzia del Demanio",
  "license": "Open by default — art. 52(2), D.Lgs. 82/2005 (CAD); personal data excluded",
  "lotNumber": "LOTTO 1",
  "price": null,
  "basePrice": 4600,
  "currency": "EUR",
  "auctionDate": "2026-10-12T10:00:00",
  "offerDeadline": "2026-10-09T12:00:00",
  "timeZone": "Europe/Rome",
  "region": "VENETO",
  "province": "VENEZIA",
  "city": "CAVALLINO-TREPORTI",
  "address": "Via Adige n. 39 - Ca' Savio",
  "category": "Agricola",
  "propertyType": "Area",
  "surfaceSqm": 1138,
  "documents": [
    {"type": "attachment", "url": "https://venditaimmobili.agenziademanio.it/AsteDemanio/download.php?d_tipo=D&id-download=52821"},
    {"type": "notice", "url": "https://venditaimmobili.agenziademanio.it/AsteDemanio/download.php?d_tipo=d1&id-download=6168"}
  ],
  "sourceUrl": "https://venditaimmobili.agenziademanio.it/AsteDemanio/sito.php/immobile?id-immobile=20691",
  "retrievedAt": "2026-09-28T20:12:58.738Z"
}
```

### Come ricevere ogni mattina le nuove aste del Demanio (monitor)

Con `"mode": "monitor"` l'actor ricorda i lotti già consegnati. La prima run restituisce tutti i lotti che corrispondono ai filtri (`changeType: "new"`); le successive solo quelli nuovi o cambiati, per esempio con prezzo, scadenza o esito diversi (`changeType: "changed"`). I lotti invariati non tornano e non si pagano.

1. Salva l'input come **Task** con un `monitorNome` tuo e usa sempre lo stesso.
2. In **Schedules** aggiungi il Task con fuso `Europe/Rome` e cron `0 7 * * *` (ogni giorno alle 7:00).
3. Collega il dataset a email, Slack, Google Sheets o a un webhook dalla scheda **Integrations**: l'actor non manda notifiche da solo.

Stessi filtri a ogni run; se li cambi, cambia `monitorNome`. Una run alla volta per monitor. I lotti che spariscono dal portale non vengono segnalati come venduti.

### A chi servono le aste del Demanio

- **Investitori immobiliari**: lista giornaliera di immobili pubblici in vendita, filtrata per zona e budget.
- **Agenzie e consulenti**: segnalare ai clienti le occasioni prima della scadenza delle offerte.
- **Sviluppatori e rigenerazione urbana**: aree, terreni ed ex edifici pubblici per territorio e superficie.
- **Studi legali e legaltech**: archivio strutturato di bandi e allegati, con link alla fonte.
- **Pipeline RAG e LLM**: metadati immobiliari senza dati personali.

Per le aste dei tribunali c'è [Aste giudiziarie PVP](https://apify.com/promptica/aste-giudiziarie-pvp).

### Quanto costa

| Evento | Prezzo |
|---|---|
| Avvio della run (1 GB di memoria) | $0,05 |
| Risultati nel dataset | $5 ogni 1.000 lotti ($0,005 l'uno) |

Esempio: 200 lotti costano $0,05 + $1 = **$1,05**. Il costo di avvio sale se aumenti la memoria oltre 1 GB. Nel monitor paghi solo i lotti nuovi o cambiati.

### Da dove vengono i dati (fonte e licenza)

Fonte: Agenzia del Demanio — Vendita immobili (venditaimmobili.agenziademanio.it). Il portale pubblica i dati senza una licenza espressa: il riuso si basa sull'art. 52, comma 2, del Codice dell'amministrazione digitale (www.normattiva.it), che considera aperti i dati pubblicati dalla PA senza licenza, esclusi i dati personali. Ogni record riporta «Fonte: Agenzia del Demanio».

### Limiti

- Solo campi immobiliari: niente descrizioni libere, nomi, referenti, email, telefoni o testo dei PDF.
- I documenti sono link: i PDF non vengono scaricati né letti.
- Non è una perizia né una valutazione, e l'actor non presenta offerte.
- Di default include anche bandi scaduti; usa `activeOnly` per le sole aste aperte.
- Controlla `scanComplete`, `limitReached` e `partial` nel record `OUTPUT`: con input non valido o fonte giù la run finisce senza errori, con il motivo.

### Domande frequenti

**Come si partecipa a un'asta del Demanio?** Segui le istruzioni del bando nel link `notice`: l'actor trova i lotti, la partecipazione si fa presso l'Agenzia.

**Che differenza c'è tra `offerDeadline` e `auctionDate`?** Il primo è il termine per le offerte, il secondo il giorno di apertura delle buste.

**Ci sono anche le aste dell'Agenzia delle Entrate-Riscossione?** No: quella fonte vieta la riproduzione senza autorizzazione scritta.

### Changelog

- **1.0 — 29 set 2026**: prima pubblicazione.

***

### English — Italian state property auctions (Agenzia del Demanio) to CSV

Export **Italian government property auctions** from the Agenzia del Demanio sales portal to Excel, CSV or JSON: base price, offer deadline, bid-opening date, region, province, city, address, surface area and public links to notices and attachments.

#### How to use it

```json
{"region": "VENETO", "minPrice": 4000, "maxPrice": 50000, "activeOnly": true, "maxResults": 200}
```

```json
{"mode": "monitor", "monitorNome": "demanio-open-auctions", "activeOnly": true, "maxResults": 500}
```

`region`, `province` (full name), `city` and `category` are exact, case-insensitive matches. `minPrice`/`maxPrice` bound the base price (0 disables). `activeOnly` drops awarded lots and expired deadlines. `noticeId` or `propertyId` target one notice or property. `includeDocuments` adds public document links. `maxResults` is 1–5,000, `maxPages` 1–2,000.

#### What data you get

`id`, `lotNumber`, `basePrice`, `price` (award price or null), `currency`, `offerDeadline`, `auctionDate`, `timeZone`, `region`, `province`, `city`, `address`, `category`, `propertyType`, `surfaceSqm`, `documents`, `sourceUrl` and attribution. Monitor rows add `changeType`.

#### Monitoring

Use `"mode": "monitor"` with your own `monitorNome` and a daily schedule (`0 7 * * *`, `Europe/Rome`). Only new or changed lots are returned and charged. Connect the dataset to your own alert channel.

#### Pricing

| Event | Price |
|---|---|
| Run start (1 GB memory) | $0.05 |
| Dataset results | $5 per 1,000 lots ($0.005 each) |

#### Source, licence and limits

Agenzia del Demanio, reused under Italy's open-by-default rule (art. 52(2) CAD), personal data excluded. Property fields and document links only; no PDF text, not a valuation. Check `OUTPUT` for `partial` and `limitReached`.

#### FAQ

**Does it place bids?** No, it only lists lots; bidding follows the official notice.

### Altri dati pubblici italiani / More Italian public data

Italy Public Data by Promptica — altri dataset / other datasets:

- [Italy Public Procurement — ANAC CIG](https://apify.com/promptica/anac-appalti-italia) — Estrae i bandi di gara pubblici italiani (CIG) dagli open data ufficiali ANAC, inclusi gli affidamenti sotto soglia UE che TED non copre. Filtra per CPV, provincia, importo, stazione appaltante, oggetto e settore. Dati 100% pubblici.
- [Estrai aste giudiziarie PVP — Perizie e monitor](https://apify.com/promptica/aste-giudiziarie-pvp) — Aste giudiziarie PVP: estrai immobili, prezzi, date, tribunali e link alle perizie dal portale ufficiale. Filtri e monitor delle aste nuove o cambiate.
- [EPREL — EU Energy Label Database (etichette energetiche UE)](https://apify.com/promptica/eprel-etichette-energetiche) — Estrae dati pubblici dal registro EPREL della Commissione Europea sulle etichette energetiche: classe, consumi, parametri tecnici, produttore. Utile per e-commerce compliance (Reg. UE 2017/1369).
- [Italy & Spain Fuel Prices Scraper — MIMIT / MITECO](https://apify.com/promptica/europe-fuel-prices-italy-spain) — Official station-level fuel prices, location and brand filters, radius search and persistent price-change monitoring for Italy and Spain.
- [Gazzetta Ufficiale RAG — Leggi, Decreti e Concorsi (Italia)](https://apify.com/promptica/gazzetta-ufficiale-rag) — Estrae atti normativi e concorsi pubblici dalla Gazzetta Ufficiale italiana (gazzettaufficiale.it) come record Markdown strutturati, pronti per pipeline RAG. Filtra per serie, tipo atto, data, e parola chiave. Dati 100% pubblici, nessuna chiave API.
- [inPA Concorsi Pubblici — Portale del reclutamento](https://apify.com/promptica/inpa-concorsi-pubblici) — Estrae i concorsi pubblici e gli avvisi di selezione della PA italiana dal portale ufficiale inPA. Filtra per ente, parola chiave, numero minimo di posti e data. Dati 100% pubblici.
- [Italy Administrative Court Rulings Scraper — OpenGA](https://apify.com/promptica/italy-administrative-court-rulings-openga) — Official Italian administrative court CSV metadata: Consiglio di Stato, CGARS and TAR, licensed CC BY 4.0, filters and persistent monitoring.
- [Estrai fornitori MePA e Consip — Elenco ufficiale imprese PA](https://apify.com/promptica/italy-consip-suppliers) — Fornitori MePA e Consip: imprese abilitate e aggiudicatarie della PA con partita IVA, sede, aggiudicazioni e contratti attivi. Open data ufficiali.
- [Italy Constitutional Court Decisions — Official Open Data](https://apify.com/promptica/italy-constitutional-court-decisions) — Italian Constitutional Court decisions and official summaries since 1956, with full text, filters and persistent monitoring. CC BY-SA 3.0 attribution included.
- [Estrai PEC enti pubblici — Indice IPA: comuni ed enti (AgID)](https://apify.com/promptica/italy-ipa-public-bodies) — PEC degli enti pubblici italiani dall'Indice IPA di AgID: comuni, enti e stazioni appaltanti con codice fiscale, indirizzo, sito e email istituzionali.
- [Scarica elenco farmacie italiane — Anagrafe Ministero Salute](https://apify.com/promptica/italy-pharmacies) — Elenco farmacie italiane dall'anagrafe ufficiale del Ministero della Salute: nome, partita IVA, indirizzo, comune e provincia. Filtri, storico e monitor.
- [TED Gare d'Appalto EU](https://apify.com/promptica/ted-gare-eu) — Estrae bandi di gara pubblici europei dal portale ufficiale TED (Tenders Electronic Daily, Gazzetta Ufficiale UE). Dati 100% pubblici via API ufficiale TED. Filtra per codice CPV, paese, parole chiave e data.

# Actor input Schema

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

Maximum emitted lots

## `maxPages` (type: `integer`):

Maximum HTTP pages scanned

## `minPrice` (type: `number`):

Base price EUR; zero disables this bound

## `maxPrice` (type: `number`):

Base price EUR; zero disables this bound

## `region` (type: `string`):

Exact match, case insensitive

## `province` (type: `string`):

Exact match, case insensitive

## `city` (type: `string`):

Exact match, case insensitive

## `category` (type: `string`):

Exact match, case insensitive

## `noticeId` (type: `string`):

Official numeric ID

## `propertyId` (type: `string`):

Official numeric ID

## `monitorNome` (type: `string`):

Named key-value store; keep same filters for repeat runs

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

Monitor emits only new or changed lots

## `includeDocuments` (type: `boolean`):

Public links only, never PDF text; premium document event per emitted link

## `activeOnly` (type: `boolean`):

Exclude awarded lots and lots with a past offer deadline (Rome date)

## `proxyConfiguration` (type: `object`):

Optional; local prefill uses direct access. Configure proxy for cloud if required.

## Actor input object example

```json
{
  "maxResults": 10,
  "maxPages": 200,
  "minPrice": 0,
  "maxPrice": 0,
  "monitorNome": "demanio-sales-monitor",
  "mode": "snapshot",
  "includeDocuments": true,
  "activeOnly": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `diagnostics` (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("promptica/italy-state-property-sales").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("promptica/italy-state-property-sales").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 promptica/italy-state-property-sales --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,promptica/italy-state-property-sales"
        }
    }
}
```

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/Wlor5AgVKUvdJeJDX/builds/hb9IeHd0cEdSUC8Xz/openapi.json
