# Italian Real Estate Agency Finder (`emastra/immobiliare-it-agencies`) Actor

Extract high-quality B2B leads from Immobiliare.it. Automatically harvest structured data on Italian real estate agencies, including contact info, addresses, and portfolios. Perfect for market analysis, sales prospecting, and CRM automation. Fast, reliable, and ready for lead generation.

- **URL**: https://apify.com/emastra/immobiliare-it-agencies.md
- **Developed by:** [Emiliano Mastragostino](https://apify.com/emastra) (community)
- **Categories:** Lead generation, Real estate, Automation
- **Stats:** 53 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$20.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

> 🇬🇧 For English version, scroll below.\
> 🇮🇹 Per la versione italiana, continua a leggere.

## Italian Real Estate Agency Finder

**Italian Real Estate Agency Finder** estrae dati di contatto strutturati delle agenzie immobiliari da [Immobiliare.it](https://www.immobiliare.it).

> ⚠️ **Importante:** Questo scraper estrae **solo le informazioni del profilo delle agenzie**, non gli annunci immobiliari.

### ⚡ Caratteristiche Principali

- **Analisi Intelligente degli URL:** Inserisci sia le pagine dei risultati di ricerca (es. filtrate per città) sia i link diretti ai profili delle agenzie.
- **Controllo dei Costi:** Imposta un limite massimo di record estratti per gestire al meglio il tuo budget di computazione.
- **Prestazioni Affidabili:** Utilizza proxy residenziali di default per prevenire i blocchi e garantire un'alta percentuale di successo.
- **Esportazione Pulita:** Scarica i dati istantaneamente in formati come JSON, CSV, Excel o XML.

### ⚙️ Configurazione Input

| Campo             | Tipo     | Richiesto | Descrizione                                                                                    |
| ----------------- | -------- | --------- | ---------------------------------------------------------------------------------------------- |
| `startUrls`       | `array`  | **Sì**    | Elenco di URL di Immobiliare.it relativi a ricerche di agenzie o a profili diretti di agenzie. |
| `maxTotalResults` | `number` | No        | Numero massimo di agenzie da estrarre. Imposta a `0` (default) per risultati illimitati.       |

#### Come ottenere `startUrls` validi:

1. **Pagine di Ricerca:** Vai su Immobiliare.it, clicca su **"Agenzie"**, applica i tuoi filtri (città, provincia, ecc.) e copia l'URL risultante dalla barra degli indirizzi del browser.
2. **Profili Diretti:** Vai direttamente alla pagina di una specifica agenzia e copia il suo URL.

### 📊 Dati Estratti

Lo scraper restituisce un set di dati strutturato contenente:

- Nome dell'agenzia e URL del profilo su Immobiliare.it
- Numero/i di telefono e URL del sito web
- Indirizzo completo (Via, Città, Provincia, CAP)
- Coordinate geografiche (Latitudine e Longitudine)
- Descrizione dell'agenzia e altri indicatori

### 🆓 Limite della Versione Gratuita

Puoi testare lo scraper gratuitamente per verificare la qualità dei dati prima di passare a un piano a pagamento.

- **Limite di Prova:** Massimo **10 agenzie** per singolo avvio (run).

### 🛠 Supporto & Contatti

- 📬 [Contatta lo Sviluppatore](https://apify.com/emastra)
- 🐞 [Segnala un Problema](https://console.apify.com/actors/7v2y30dg6Ih92H2Jb/issues)
- ✨ [Richiedi uno Scraper Personalizzato](https://apify.com/emastra)

***

<br>

> 🇮🇹 Italian version above.\
> 🇬🇧 English version below.

## Italian Real Estate Agency Finder

**Italian Real Estate Agency Finder** extracts structured contact data of real estate agencies from [Immobiliare.it](https://www.immobiliare.it).

> ⚠️ **Important:** This scraper extracts **agency profile information only**, not property listings.

### ⚡ Key Features

- **Smart URL Parsing:** Input either search result pages (e.g., filtered by city) or direct agency profile links.
- **Cost Control:** Set a hard limit on extracted records to manage your computing budget.
- **Reliable Performance:** Uses residential proxies by default to prevent blocking and ensure high success rates.
- **Clean Export:** Download data instantly as JSON, CSV, Excel, or XML.

### ⚙️ Configuration Input

| Field             | Type     | Required | Description                                                              |
| ----------------- | -------- | -------- | ------------------------------------------------------------------------ |
| `startUrls`       | `array`  | **Yes**  | List of Immobiliare.it agency search URLs or direct agency profile URLs. |
| `maxTotalResults` | `number` | No       | Maximum agencies to extract. Set to `0` (default) for unlimited.         |

#### How to get valid `startUrls`:

1. **Search Pages:** Go to Immobiliare.it, click **"Agenzie"**, apply your filters (city, province, etc.), and copy the resulting URL from your browser.
2. **Direct Profiles:** Navigate straight to a specific agency's page and copy its URL.

### 📊 Extracted Data Points

The scraper outputs a structured dataset containing:

- Agency Name & Immobiliare.it Profile URL
- Phone Number(s) & Website URL
- Full Address (Street, City, Province, Postal Code)
- Geolocation Coordinates (Latitude & Longitude)
- Agency description and additional indicators

### 🆓 Free Tier Limit

You can test the scraper for free to check the data quality before upgrading.

- **Trial Limit:** Maximum of **10 agencies** per run.

### 🛠 Support & Contact

- 📬 [Contact Developer](https://apify.com/emastra)
- 🐞 [Report an Issue](https://console.apify.com/actors/7v2y30dg6Ih92H2Jb/issues)
- ✨ [Request Custom Scraper](https://apify.com/emastra)

# Actor input Schema

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

List of Immobiliare.it URLs to scrape. Can include both search result pages (listing multiple agencies) and direct agency pages.

## `maxTotalResults` (type: `integer`):

Maximum number of agency records to collect in total. 0 means unlimited.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.immobiliare.it/agenzie-immobiliari/pomezia/",
    "https://www.immobiliare.it/agenzie-immobiliari/36206/lidense-roma/"
  ],
  "maxTotalResults": 0
}
```

# 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 = {
    "startUrls": [
        "https://www.immobiliare.it/agenzie-immobiliari/pomezia/",
        "https://www.immobiliare.it/agenzie-immobiliari/36206/lidense-roma/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("emastra/immobiliare-it-agencies").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 = { "startUrls": [
        "https://www.immobiliare.it/agenzie-immobiliari/pomezia/",
        "https://www.immobiliare.it/agenzie-immobiliari/36206/lidense-roma/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("emastra/immobiliare-it-agencies").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 '{
  "startUrls": [
    "https://www.immobiliare.it/agenzie-immobiliari/pomezia/",
    "https://www.immobiliare.it/agenzie-immobiliari/36206/lidense-roma/"
  ]
}' |
apify call emastra/immobiliare-it-agencies --silent --output-dataset

```

## MCP server setup

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

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/7v2y30dg6Ih92H2Jb/builds/NckXcDtIJZmljWwI1/openapi.json
