# Immobiliare.it Agency Leads Scraper (`emastra/immobiliare-it-agencies`)

Immobiliare.it Agency Leads Scraper extracts structured data on Italian real estate agencies for B2B lead generation, market analysis, and CRM automation. Get agency details, contacts, and location data efficiently and reliably.

- **URL**: https://beta-securitybyobscurity.apify.com/emastra/immobiliare-it-agencies.md
- **Developed by:** [Emiliano Mastragostino](https://beta-securitybyobscurity.apify.com/emastra) (community)
- **Categories:** Lead generation, Real estate, Automation
- **Stats:** 16 total users, 8 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 results

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for dataset items the Actor outputs.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-result

# README

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

## Scraper Immobiliare.it Agenzie: Ottimizza la Tua Lead Generation nel Settore Immobiliare

Hai bisogno di **dati affidabili e strutturati** sulle agenzie immobiliari italiane per la tua **lead generation B2B**, **analisi di mercato** o **automazione CRM**?\
Lo **Scraper Immobiliare.it Agenzie** è la soluzione definitiva per estrarre in modo efficiente e preciso informazioni sulle agenzie immobiliari italiane che operano attraverso [Immobiliare.it](https://www.immobiliare.it).

Progettato per **professionisti del marketing**, **aziende di servizi B2B**, **sviluppatori** e **analisti**, questo strumento ti permette di costruire un **database di contatti mirato e aggiornato**, essenziale per campagne di vendita, marketing e ricerca di mercato nel settore immobiliare.

**Nota bene**:
*Questo Scraper non estrae informazioni sugli annunci degli immobili, ma sulle agenzie immobiliari. Lo scraper supporta solamente URLs relativi alle agenzie*.<br>
*Leggi le istruzioni nella sezione "**Come Ottenere gli URL da Fornire**" (più in basso) per maggiori informazioni sugli URL*.

### 🏢 Caratteristiche Principali per il Tuo Successo

- **Estrazione Flessibile**\
  Inserisci una lista di **URL di ricerca** (agenzie) o **profili agenzia diretti**: lo scraper riconoscerà automaticamente la tipologia e procederà di conseguenza.

- **Lead Generation Potenziata**\
  Raccogli dati preziosi per alimentare il tuo CRM, costruire liste di contatti per cold outreach o automatizzare campagne di marketing personalizzate.

- **Scalabilità Controllata**\
  Imposta un **numero massimo di agenzie da estrarre** per gestire il volume di dati e ottimizzare i costi di elaborazione.

- **Affidabilità Anti-Blocco**\
  Grazie all'utilizzo di default di proxy residenziali, il tuo scraping sarà stabile e privo di interruzioni, garantendo un’estrazione continua e senza problemi.

- **Dati Strutturati e Pronti all’Uso**\
  Esporta i risultati in formati standard e facilmente integrabili come **JSON**, **CSV**, **Excel**, **XML** e altri, per un’analisi immediata o un ulteriore data enrichment.

### 🚀 Come Funziona: Input di Configurazione

Configurare lo *Scraper Immobiliare.it Agenzie* è semplice e intuitivo. Definisci i tuoi parametri per avviare l’estrazione:

| Campo             | Tipo       | Descrizione                                                                                                                      |
| ----------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `startUrls`       | `string[]` | Elenco di URL di Immobiliare.it relativi alle **agenzie**. Può contenere sia URL di ricerca che URL diretti di profili agenzia.  |
| `maxTotalResults` | `number`   | *(Opzionale)* Il numero massimo totale di agenzie da estrarre. Imposta `0` (default) per estrarre tutti i risultati disponibili. |

### 🔗 Come Ottenere gli URL da Fornire

- **startUrls - URL di ricerca**: Dalla homepage di Immobiliare.it, clicca su "Agenzie", imposta i filtri che ti interessano (es. città, provincia), avvia la ricerca e copia l'URL dalla barra degli indirizzi. Lo scraper rileverà automaticamente che si tratta di una pagina lista.

- **startUrls - URL agenzia diretta**: Accedi direttamente alla pagina di una singola agenzia su Immobiliare.it e copia l’URL dalla barra degli indirizzi. Lo scraper raccoglierà i dati completi di quella specifica agenzia.

### 📊 Output Dati: Informazioni Dettagliate per le Tue Esigenze

Lo Scraper produce un **output strutturato** contenente una vasta gamma di informazioni su ciascuna agenzia immobiliare. I dati includono:

- Nome dell’agenzia
- Sito web
- Numeri di telefono
- Indirizzo completo (via, numero civico, CAP, città, provincia)
- Link al profilo dell’agenzia su Immobiliare.it
- Coordinate geografiche (latitudine e longitudine)
- Eventuali altri link (se presenti nella pagina)
- Altri dettagli descrittivi visibili nella pagina agenzia

Questi dati sono **immediatamente utili** per:

- Strategie di lead generation
- Creazione di database B2B
- Analisi di mercato immobiliare
- Data enrichment

### 🛠 Supporto e Contatti

Hai bisogno di supporto o personalizzazioni?

- 📬 [Contact the developer](https://apify.com/emastra)
- 🐞 [Report a bug or issue](https://console.apify.com/actors/7v2y30dg6Ih92H2Jb/issues)
- ✨ [Suggest a feature or custom scraper](https://apify.com/emastra)

### Inizia Ora!

**Scraper Immobiliare.it Agenzie** — Il tuo alleato strategico per costruire una pipeline di contatti nel settore immobiliare italiano.

***

<br>

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

## Immobiliare.it Agency Scraper: Optimize Your Lead Generation in the Real Estate Sector

Do you need **reliable and structured data** on Italian real estate agencies for your **B2B lead generation**, **market analysis**, or **CRM automation**?\
The **Immobiliare.it Agencies Scraper** is the ultimate solution to efficiently and accurately extract information on Italian real estate agencies operating through [Immobiliare.it](https://www.immobiliare.it).

Designed for **marketing professionals**, **B2B service companies**, **developers**, and **analysts**, this tool allows you to build a **targeted and up-to-date contact database**, essential for sales campaigns, marketing, and market research in the real estate sector.

**Please note**:\
*This scraper does not extract property listings, only real estate agency information. The scraper only supports URLs related to agencies*.<br>
*Read the "**How to Get the URLs to Provide**" section (below) for more information on valid URLs*.

### 🏢 Key Features for Your Success

- **Flexible Extraction**\
  Enter a list of **search URLs** (agencies) or **direct agency profiles**: the scraper will automatically recognize the type and proceed accordingly.

- **Enhanced Lead Generation**\
  Collect valuable data to feed your CRM, build contact lists for cold outreach, or automate personalized marketing campaigns.

- **Controlled Scalability**\
  Set a **maximum number of agencies to extract** to manage data volume and optimize processing costs.

- **Anti-Block Reliability**\
  With default use of residential proxies, your scraping will be stable and uninterrupted, ensuring smooth and continuous data extraction.

- **Structured, Ready-to-Use Data**\
  Export results in standard, easily integrable formats like **JSON**, **CSV**, **Excel**, **XML**, and more, for immediate analysis or further data enrichment.

### 🚀 How It Works: Configuration Input

Setting up the *Immobiliare.it Agencies Scraper* is simple and intuitive. Define your parameters to start the extraction:

| Field             | Type       | Description                                                                                                          |
| ----------------- | ---------- | -------------------------------------------------------------------------------------------------------------------- |
| `startUrls`       | `string[]` | List of Immobiliare.it URLs related to **agencies**. It can include both search URLs and direct agency profile URLs. |
| `maxTotalResults` | `number`   | *(Optional)* Maximum total number of agencies to extract. Set to `0` (default) to extract all available results.     |

### 🔗 How to Get the URLs to Provide

- **startUrls - Search URLs**: From the Immobiliare.it homepage, click on "Agenzie", set your desired filters (e.g., city, province), run the search, and copy the URL from the address bar. The scraper will automatically detect it as a listing page.

- **startUrls - Direct agency URLs**: Go directly to a specific agency’s page on Immobiliare.it and copy the URL from the address bar. The scraper will collect full data from that particular agency.

### 📊 Data Output: Structured Information for Your Needs

The scraper produces a **structured output** containing a wide range of information for each real estate agency. Data includes:

- Agency name
- Website URL
- Phone number(s)
- Full address (street, street number, postal code, city, province)
- Link to the agency’s Immobiliare.it profile
- Geographic coordinates (latitude and longitude)
- Any other available external links
- Descriptive details found on the agency page

These data points are **immediately useful** for:

- Real estate lead generation strategies
- Building B2B contact databases
- Real estate market analysis
- Data enrichment pipelines

### 🛠 Support & Contact

Need support or a custom solution?

- 📬 [Contact the developer](https://apify.com/emastra)
- 🐞 [Report a bug or issue](https://console.apify.com/actors/7v2y30dg6Ih92H2Jb/issues)
- ✨ [Request a feature or custom scraper](https://apify.com/emastra)

### Start now!

**Immobiliare.it Agencies Scraper** — Your strategic ally for building a high-value contact pipeline in the Italian real estate sector.

# 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=emastra/immobiliare-it-agencies",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Immobiliare.it Agency Leads Scraper",
        "description": "Immobiliare.it Agency Leads Scraper extracts structured data on Italian real estate agencies for B2B lead generation, market analysis, and CRM automation. Get agency details, contacts, and location data efficiently and reliably.",
        "version": "1.0",
        "x-build-id": "9YPnxhcIM6bGLgrKX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/emastra~immobiliare-it-agencies/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-emastra-immobiliare-it-agencies",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/emastra~immobiliare-it-agencies/runs": {
            "post": {
                "operationId": "runs-sync-emastra-immobiliare-it-agencies",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/emastra~immobiliare-it-agencies/run-sync": {
            "post": {
                "operationId": "run-sync-emastra-immobiliare-it-agencies",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "List of Immobiliare.it URLs to scrape. Can include both search result pages (listing multiple agencies) and direct agency pages.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxTotalResults": {
                        "title": "Maximum Total Results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of agency records to collect in total. 0 means unlimited.",
                        "default": 0
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
