# Italy Property Listings Scraper (Casa.it, price/m2) (`bonpleincapital/casa-it-listings`) Actor

Scrapes public Casa.it listings in Italy (sale or rent, by city or URL): price, surface and computed price per m2. Export JSON, CSV, Excel.

License: personal use only; resale and redistribution prohibited.
Created with the help of artificial intelligence.

- **URL**: https://apify.com/bonpleincapital/casa-it-listings.md
- **Developed by:** [Bon Plein Capital](https://apify.com/bonpleincapital) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.36 / 1,000 listing returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Casa.it Italy Property Listings Scraper

**Casa.it Italy Property Listings Scraper** extracts Italy property listings from Casa.it public search pages and returns, for each ad, the asking price, the surface in m2 and the **computed price per m2**. It is built for investors, agents, analysts and proptech teams who want to compare Italian cities and neighbourhoods in a spreadsheet or through an API, without copying ads by hand. Export to JSON, CSV or Excel.

### What can this Actor do?

- Read Italy property listings for sale or for rent in any city available on Casa.it (Rome, Milan, Turin, Naples...).
- Compute the price per m2 for every listing, ready to average by city or zone.
- Accept your own public Casa.it search URL, with filters already applied.
- Download clean data as JSON, CSV or Excel, or call it from Make, Zapier, n8n and the Apify API.
- Try it free: Apify's free plan monthly credits cover a few hundred results.

### How to use it

1. Click **Try for free** and open the **Input** tab.
2. Enter a city (for example `roma`) and choose sale or rent, or paste a Casa.it search URL.
3. Set the maximum pages and number of results, then click **Start**.
4. Download the dataset from the **Output** tab.

### Input

```json
{
  "city": "roma",
  "operation": "sale",
  "maxPages": 1,
  "maxItems": 5
}
```

### Output

```json
{
  "title": "Appartamento via Roma",
  "url": "https://www.casa.it/immobili/123/",
  "price": 350000,
  "area": 85,
  "pricePerM2": 4117.65,
  "city": "roma",
  "operation": "vendita",
  "currency": "EUR"
}
```

Only listings showing both a price and a surface are returned, so every row has a price per m2.

### How much does it cost?

This Actor uses **pay per event** pricing: you pay for each listing returned, nothing for pages that return none. 1,000 listings cost the price of 1,000 `result` events shown in the **Pricing** tab.

### FAQ

#### Is it legal to use this Actor?

It reads only public listing pages, never logs in and does not bypass captchas or blocks. If the site refuses a request, the Actor stops. Listings may include professional contact details; if you process personal data, you must comply with the GDPR. You are responsible for lawful use of the results.

#### Why did I get fewer results than expected?

Casa.it may show few listings per page, or refuse automated requests. Increase the pages or try another city.

#### Can I use it through the API?

Yes, every run can be started and read through the Apify API and its Python and JavaScript clients.

#### What if something does not work?

Open an issue in the **Issues** tab with your input and the run link.

***

Created with the help of artificial intelligence.

# Changelog

This Actor's version history is a separate document: https://apify.com/bonpleincapital/casa-it-listings/changelog.md

# Actor input Schema

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

Italian city to search on Casa.it, for example roma, milano or torino.

## `operation` (type: `string`):

Search properties for sale or for rent.

## `startUrl` (type: `string`):

A public Casa.it search results URL. Overrides city and operation.

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

Number of result pages to read.

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

Stop after this many listings. Keep it low to test cheaply.

## Actor input object example

```json
{
  "city": "roma",
  "operation": "sale",
  "maxPages": 1,
  "maxItems": 5
}
```

# Actor output Schema

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

One dataset item per result, shown in the Overview view.

# 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 = {
    "city": "roma",
    "maxPages": 1,
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("bonpleincapital/casa-it-listings").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 = {
    "city": "roma",
    "maxPages": 1,
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("bonpleincapital/casa-it-listings").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 '{
  "city": "roma",
  "maxPages": 1,
  "maxItems": 5
}' |
apify call bonpleincapital/casa-it-listings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bonpleincapital/casa-it-listings"
        }
    }
}
```

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/thBr8kTh0YciYJWwl/builds/GGeBTyDcrcbz1dkSo/openapi.json
