# Immobiliare Scraper (`datahamster/immobiliare-scraper`) Actor

Immobiliare scraper for immobiliare.it: Italian homes for sale or rent by city, price, size and rooms, or paste a search URL. Price, price per m², surface, rooms, floor, coordinates, agency trade name, price cuts. Monitor mode alerts on new listings and price drops. No agent names or phones.

- **URL**: https://apify.com/datahamster/immobiliare-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Immobiliare Scraper

Get Italian property listings from immobiliare.it, for sale and for rent, as one flat row per listing: price in EUR, price per m², surface, rooms, bathrooms, floor, condition, heating, features, street, zone, city, province, region, coordinates, photo count and first image, the advertising agency, and immobiliare.it's own price-cut data (previous price, drop %, date). Type a city and the filters, or paste any immobiliare.it search URL. No account, no cookies.

**Try it:** the prefilled example returns 20 rows in about 30 seconds and costs about $0.022. Results cost $1.00 per 1,000.

Coverage: 25 listings per result page, up to 80 pages per search. With `includeDetails` each listing page adds energy class, created and updated dates and the full description.

**Why this one** (compared with the immobiliare.it actor with the most users in the last 30 days, checked 2026-11-12):

- **Search without building a URL.** `locations` + `contract` + `propertyType` + `minPrice`/`maxPrice` + `minSize`/`maxSize` + `minRooms`/`maxRooms` + `privateOnly`: type "Torino", apartments, 100,000-300,000 EUR, 60-120 m², 2-4 rooms and the run applies exactly that (immobiliare.it's echo of the applied filters is saved in `IMMOBILIARE_STATS.appliedFilters`). memo23's input accepts start URLs only. Pasted URLs work here too.
- **Price-drop alerts in the same dataset, with a threshold and a push.** Monitor mode returns new listings and listings whose price fell, `minPriceDropPercent` ignores small cuts, and every run can POST a summary to your webhook or Telegram chat. memo23 writes price changes to a separate named dataset and has no webhook, Telegram or threshold input; its monitoring needs a paid Apify plan.
- **Numbers ready for a spreadsheet.** `price`, `pricePerSqm` (computed from price and surface), `surfaceSqm`, `rooms`, `bathrooms` and `latitude`/`longitude` are numbers on one flat row; `previousPrice`, `priceDropPercent` and `priceDropDate` come from immobiliare.it's "prezzo ribassato" badge. `onlyPriceReduced: true` keeps only those.
- **No agent names or phone numbers.** Rows carry the agency (trade name, page, id). The agent person, phone numbers, and private sellers' names are never read; descriptions are cut where the advertiser's contact block starts ("Per informazioni contattare...", "Recapiti:", `descriptionTruncated: true`), and phones, e-mails and names after "Referente", "Sig.ra" and similar are removed. A sole-trader agency's public trade name can contain its owner's name (for example "... di Mario Rossi"); it is kept as the business name.
- **Price.** $1.00 per 1,000 listings and no start fee. memo23 charges $0.70 per 1,000 plus $0.005 per run start, so it is cheaper on large runs; for a 20-row check both cost about $0.02.

### What you get

```json
[
  {
    "id": "134658739",
    "url": "https://www.immobiliare.it/annunci/134658739/",
    "title": "Trilocale piazza Guglielmo Oberdan, Porta Venezia, Milano",
    "contract": "sale",
    "propertyType": "Trilocale",
    "category": "Residenziale",
    "price": 430000,
    "currency": "EUR",
    "priceLabel": "€ 430.000",
    "pricePerSqm": 5058.82,
    "previousPrice": null,
    "surfaceSqm": 85,
    "rooms": 3,
    "bedrooms": 2,
    "bathrooms": 2,
    "floor": "1",
    "floorLabel": "1°, con ascensore",
    "elevator": true,
    "condition": "Ottimo / Ristrutturato",
    "heating": "Autonomo",
    "features": ["fibra ottica", "videocitofono", "porta blindata", "arredato"],
    "address": "Piazza Guglielmo Oberdan",
    "city": "Milano",
    "province": "Milano",
    "region": "Lombardia",
    "macrozone": "Porta Venezia, Indipendenza",
    "microzone": "Porta Venezia",
    "latitude": 45.4749,
    "longitude": 9.2048,
    "photosCount": 21,
    "imageUrl": "https://pwm.im-cdn.it/image/2055095473/xxl.jpg",
    "advertiserType": "agency",
    "agencyName": "TEMPOCASA Milano Repubblica Vittorio Veneto",
    "agencyUrl": "https://www.immobiliare.it/agenzie-immobiliari/246845/tempocasa-milano-repubblica-vittorio-veneto/",
    "adTier": "supervetrina"
  },
  {
    "id": "126830951",
    "url": "https://www.immobiliare.it/annunci/126830951/",
    "title": "Ufficio - Studio via San Martino 11, Quadronno - Crocetta, Milano",
    "contract": "rent",
    "propertyType": "Ufficio - Studio",
    "price": 2400,
    "pricePeriod": "month",
    "priceLabel": "€ 2.400/mese",
    "pricePerSqm": 22.86,
    "previousPrice": 2600,
    "priceDropPercent": 7.7,
    "priceDropDate": "2026-11-12",
    "surfaceSqm": 105,
    "rooms": 4,
    "city": "Milano",
    "latitude": 45.4532,
    "longitude": 9.1892,
    "advertiserType": "agency",
    "agencyName": "A360Immobiliare"
  }
]
```

(two rows from the smoke runs of 2026-11-12, shortened; the first comes from the prefilled run)

`description` stops where the advertiser's contact block starts (`descriptionTruncated: true` when it was cut). `price` is EUR; for rentals it is per month (`pricePeriod: "month"`). New-build projects (`isProject: true`) carry the lowest unit price in `price`, the highest in `priceMax` and the number of units in `projectUnits`. `advertiserType` is `agency`, `constructor` (builder) or `private`; private sellers have no name, URL or id. With `includeDetails: true` rows also get `energyClass` (or `energyStatus` such as "In attesa di certificazione"), `energyIndex`, `heatingType`, `createdAt`, `updatedAt`, `buildingYear`, `totalFloors`, `availability`, `kitchen`, `condominiumFees`, `reference`, the full `description` and `detailsFetched: true`.

### Use cases

- **Price-drop alerts.** A monitor task on your city and filters, scheduled daily: each run returns new listings and the ones whose asking price fell, with a webhook or Telegram message.
- **Investor deal sourcing.** `onlyPriceReduced` lists what immobiliare.it marks as reduced, with the old price and the drop %.
- **Market snapshots.** Compare EUR per m² by zone (`macrozone`, `microzone`) and property type, or map listings by coordinates.
- **Agency benchmarking.** Count listings per agency in a city.

### Try it

Hit **Start**: the prefilled input reads the newest 20 homes for sale in Milano. Change `locations`, `contract`, `propertyType` and the price, size and room filters, or paste your own search URL into `startUrls` to keep every filter you set on immobiliare.it (districts, map areas, energy class, features).

**Monitor mode.** Save the input as a task and set:

```json
{
  "mode": "monitor",
  "monitorStateId": "torino-apartments",
  "locations": ["Torino"],
  "propertyType": "apartments",
  "maxPrice": 250000,
  "maxPagesPerSearch": 4,
  "minPriceDropPercent": 3,
  "maxItems": 200,
  "webhookUrl": "https://your-endpoint.example.com/hook"
}
```

Put the task on a schedule (Apify, Schedules, cron `0 7 * * *` for daily).

- **How it reads:** newest first (also with `privateOnly`), `maxPagesPerSearch` pages on every run (25 listings each), so the prices of every listing in that depth are checked each time. With `includeDetails`, only new listings are opened; the baseline run and known listings are read from the search page only.
- **What is returned:** `changeType: "new"` for a listing not seen before; `changeType: "changed"` with `changedFields: ["price"]` and the `previous` price when the price fell (`priceChangeAlerts: "any"` also reports rises, `"off"` reports new listings only). A listing older than the ones the monitor has seen that slides into view (for example after a filter edge moves) is recorded silently, not reported as new.
- **The first run of a search is the baseline:** it records what it reads and returns nothing (one monitor-check, no rows; `emptyReason: "baseline"`). A changed filter or depth starts a new baseline for that search. Verified 2026-11-12: Como villas, baseline of 50 listings, the next run returned 0 rows (`no_new_items`).
- **Stuck runs:** a run that crashes holds its lease until its timeout; later runs of the same task end as `overlapping_run` without charging. Wait for the timeout or use a new `monitorStateId`.

### Input

| Field | Meaning | Default |
|---|---|---|
| `locations` | Italian cities, e.g. Milano, Reggio Emilia, L'Aquila; "Milano provincia" for a province | `Milano` (prefill) |
| `contract` | `sale` or `rent` | `sale` |
| `propertyType` | homes, apartments, penthouses, villas, detached-houses, lofts, farmhouses, land, offices, shops, warehouses, industrial | `homes` |
| `minPrice`, `maxPrice` | EUR (monthly for rent) | any |
| `minSize`, `maxSize` | m² | any |
| `minRooms`, `maxRooms` | locali, 1-5 (5 = 5 or more) | any |
| `privateOnly` | only private sellers | `false` |
| `sort` | newest, relevance, price_asc, price_desc (Cities only; pasted URLs keep their own sort) | `newest` |
| `startUrls` | immobiliare.it search or listing URLs, filters kept | empty |
| `onlyPriceReduced` | only listings marked as reduced | `false` |
| `includeDetails` | add listing page fields (one request per listing) | `false` |
| `maxPagesPerSearch` | 1-80, 25 listings each | 10 |
| `maxItems` | stop after this many rows (monitor: new/changed rows), shared between searches | 100 |
| `mode`, `monitorStateId`, `priceChangeAlerts`, `minPriceDropPercent`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | monitor mode and alerts | `scrape` |

### Pricing

| Event | Price |
|---|---|
| result | $0.001 per listing ($1.00 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.001 per new or changed listing in monitor mode |

Apify Store discounts: SILVER -10%, GOLD and higher -20%. You pay only for pushed rows; a listing found by two searches is charged once. Apify platform usage is billed by Apify on top: immobiliare.it answers bots with a captcha, so the actor reads it through Apify's Web Unblocker, about $0.002 of usage per result page of 25 listings (measured: 80 listings from 2 searches cost $0.0072 of usage) and about $0.002 per listing page with `includeDetails`.

**Found it useful?** A short review on the Store page helps other people find this actor.

### Related actors

- [Fotocasa Scraper](https://apify.com/datahamster/fotocasa-scraper) for Spain.
- [Subito.it Scraper](https://apify.com/datahamster/subito-it-listings) for Italian classifieds.
- [Rightmove Scraper](https://apify.com/datahamster/rightmove-scraper) for the UK.
- [Immowelt.de Scraper](https://apify.com/datahamster/immowelt-listings) for Germany.

### Limits

- immobiliare.it serves 25 listings per page; this actor reads up to 80 pages (2,000 listings) per search. Split a large city by zone URLs or price ranges for more.
- Search pages have no energy class or listing dates; turn on `includeDetails` for them.
- Auction pages (aste), new-build project sub-units, and agency directories are not covered; auction listings that appear inside a normal search are returned like any other listing.
- City names are turned into immobiliare.it's URL form (`Reggio Emilia` → `reggio-emilia`). A name the site does not know is listed in `IMMOBILIARE_STATS.notFound`; paste the search URL from the site instead.

### FAQ

**Do I need an immobiliare.it account?** No. The actor reads public search and listing pages.

**Why did my search return nothing?** `RUN_SUMMARY` in the run's key-value store has `emptyReason`; `IMMOBILIARE_STATS` lists `notFound`, `walledInputs`, `resultCounts`, `appliedFilters` and why each search stopped. In monitor mode the first run is a baseline.

**Do you collect agents' or sellers' personal details?** No. Rows hold the listing and the advertising agency or builder (a business). Agent names, photos and phone numbers, and private sellers' details, are not read; phone numbers, e-mail addresses and names introduced by "Referente", "Sig.", "Geom." and similar are removed from titles and descriptions. `agencyName` is the agency's public trade name, which for a sole-trader agency can include the owner's name.

### Changelog

- 0.1: initial release: cities with contract, type, price, size, rooms and private-seller filters, search and listing URLs, price per m², price-cut fields and filter, listing page details, monitor mode for new listings and price drops with webhook and Telegram alerts.

# Actor input Schema

## `locations` (type: `array`):

Italian cities (comuni), one per line, e.g. "Milano", "Roma", "Reggio Emilia", "L'Aquila". "Milano provincia" reads the whole province. Each is a separate search with the filters below. An unknown name is listed in IMMOBILIARE_STATS.notFound. For a district (quartiere) paste its search URL instead.

## `contract` (type: `string`):

For the Cities searches. Pasted URLs keep their own contract. Example: rent.

## `propertyType` (type: `string`):

For the Cities searches. Example: apartments.

## `minPrice` (type: `integer`):

Sale price, or monthly rent for rentals. Example: 100000.

## `maxPrice` (type: `integer`):

Example: 300000.

## `minSize` (type: `integer`):

Example: 60.

## `maxSize` (type: `integer`):

Example: 120.

## `minRooms` (type: `integer`):

Italian 'locali': bedrooms plus living room. 5 = 5 or more. Example: 2.

## `maxRooms` (type: `integer`):

Example: 4.

## `privateOnly` (type: `boolean`):

true = only listings by private owners (immobiliare.it's "da privati" filter, sort kept). Owners' names and phone numbers are never returned. Example: false.

## `sort` (type: `string`):

For the Cities searches; pasted URLs keep the sort they carry. Monitor mode always reads newest first. Example: newest.

## `startUrls` (type: `array`):

Optional. Search URLs copied from immobiliare.it with any filters set on the site (districts, map areas, features, energy class, ...), e.g. https://www.immobiliare.it/vendita-case/milano/?prezzoMassimo=300000, or listing pages https://www.immobiliare.it/annunci/<id>/. Every filter in the URL is kept.

## `onlyPriceReduced` (type: `boolean`):

true = return only listings immobiliare.it marks as reduced ("prezzo ribassato"), each with previousPrice, priceDropPercent and priceDropDate. Example: false.

## `includeDetails` (type: `boolean`):

true = also read each listing's own page: energy class, created and updated dates, full description (phones and e-mails removed), building year, total floors, condominium fees, availability. One extra request per listing, so slower and about $0.002 more Apify usage per listing.

## `maxPagesPerSearch` (type: `integer`):

Result pages to read per search, 25 listings each. Example: 10 = up to 250 listings. Monitor mode reads all of them on every run (about $0.002 Apify usage per page).

## `priceChangeAlerts` (type: `string`):

Monitor mode only. drops = a known listing is returned again when its price falls below the last price you were told about (rises are ignored); any = every price change; off = new listings only.

## `minPriceDropPercent` (type: `integer`):

Monitor mode with price drops: report a drop only when it is at least this many percent below the last reported price. Example: 5.

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

Stop after this many results (you are charged only for pushed items)

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

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "locations": [
    "Milano"
  ],
  "contract": "sale",
  "propertyType": "homes",
  "privateOnly": false,
  "sort": "newest",
  "startUrls": [],
  "onlyPriceReduced": false,
  "includeDetails": false,
  "maxPagesPerSearch": 1,
  "priceChangeAlerts": "drops",
  "minPriceDropPercent": 0,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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 = {
    "locations": [
        "Milano"
    ],
    "maxPagesPerSearch": 1,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/immobiliare-scraper").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 = {
    "locations": ["Milano"],
    "maxPagesPerSearch": 1,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/immobiliare-scraper").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 '{
  "locations": [
    "Milano"
  ],
  "maxPagesPerSearch": 1,
  "maxItems": 20
}' |
apify call datahamster/immobiliare-scraper --silent --output-dataset

```

## MCP server setup

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

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/vBsLa2QZdp9sgcAiR/builds/HTDsTbVi1ndoPAida/openapi.json
