# Subito.it Universal Scraper (Fast & Detailed) (`harry.automazione/subito-scraper`) Actor

Scrapes classified listings from Subito.it (Motors, Real Estate, Marketplace, Jobs) in real-time. Supports advanced geographical validation, filters, automatic pagination, and extracts full details (metri quadri, vani, bagni, chilometri, cambio, anno) into Excel/CSV/JSON.

- **URL**: https://apify.com/harry.automazione/subito-scraper.md
- **Developed by:** [Harry.automazione](https://apify.com/harry.automazione) (community)
- **Categories:** Real estate, E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🚀 Subito.it Universal Scraper (Fast, Detailed & 100% Reliable)

An advanced, ultra-fast, and professional cloud-based web scraper for **Subito.it** (Italy's leading marketplace for Motors, Real Estate, Jobs, Electronics, Home, and more).

Questo è lo scraper definitivo e pronto all'uso per estrarre annunci da **Subito.it** in tempo reale, ottimizzato specificamente per investitori immobiliari, concessionari auto, commercianti e reseller che necessitano di dati strutturati ed esportabili in **Excel, CSV o JSON**.

---

### 🌟 Key Features / Caratteristiche Principali

*   **Deep Feature Extraction (Estrazione Dati Avanzata)**:
    Unlike basic scrapers, this Actor dynamically extracts all category-specific technical details:
    *   *Real Estate (Immobili)*: Surface area (mq), number of rooms (locali), bathrooms (bagni), floor (piano), heating (riscaldamento), building state (stato), energy class, and outdoor spaces (balcone/giardino).
    *   *Motors (Veicoli)*: Mileage (Km), registration year (anno), fuel type (carburante), transmission (cambio), emission class (Euro), horsepower (HP), and engine power (kW).
*   **Geographical Validation (Prevenzione Errori 404)**:
    Features a built-in Italian administrative validation layer that automatically resolves and normalizes Region, Province, and Comune queries to match Subito's strict URL routing, preventing 404 crawler crashes.
*   **Cloudflare Bypass & Proxy Integration**:
    Utilizes optimized TLS fingerprinting and browser header emulation (`got-scraping`) to navigate seamlessly. Integrated with Apify's proxy configuration (residential Italian proxies are highly recommended).
*   **Zero-Coding Excel/CSV Exports**:
    Outputs clean, structured flat data, ready to be immediately imported into Excel or Google Sheets for market analysis and price calculations.

---

### ⚙️ Input Configuration / Configurazione Input

The Actor accepts the following input parameters:

| Field / Campo | Type | Description / Descrizione | Default |
| :--- | :--- | :--- | :--- |
| **`category`** | `string` | The Subito category slug (e.g., `appartamenti`, `auto`, `telefonia`, `offerte-lavoro`). | `appartamenti` |
| **`region`** | `string` | The Italian region (e.g., `Lombardia`, `Sicilia`). Leave empty for all Italy. | `""` |
| **`province`** | `string` | The province name or abbreviation (e.g., `MI`, `Milano`, `RG`, `Ragusa`). | `""` |
| **`comune`** | `string` | The specific municipality name (e.g., `Ragusa`, `Milano`). | `""` |
| **`query`** | `string` | Search keyword or phrase (e.g., `bilocale`, `Toyota`, `iPhone`). | `""` |
| **`priceMin`** | `integer`| Minimum listing price in Euros. | `null` |
| **`priceMax`** | `integer`| Maximum listing price in Euros. | `null` |
| **`maxPages`** | `integer`| Maximum number of search result pages to crawl (30 ads/page). | `5` |
| **`extraFilters`**| `object` | JSON object containing additional category-specific filters (e.g. `{"szs": 80}`). | `{}` |
| **`proxyConfig`** | `object` | Apify proxy configuration widget settings. | `{"useApifyProxy": true}` |

#### Input Example (JSON)
```json
{
  "category": "appartamenti",
  "region": "Sicilia",
  "province": "RG",
  "comune": "Ragusa",
  "query": "bilocale",
  "priceMin": 30000,
  "priceMax": 120000,
  "maxPages": 3,
  "extraFilters": {
    "szs": "50",
    "btrs": "1"
  },
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "IT"
  }
}
````

***

### 📊 Output Dataset Example (JSON)

Every listing extracted is fully anonymized to comply with GDPR and privacy standards. Faked mock details are shown below to illustrate the output schema:

```json
{
  "id": "123456789",
  "urn": "id:ad:123456789:list:987654321",
  "title": "Bilocale Ristrutturato in Centro Storico",
  "description": "Splendido appartamento finemente ristrutturato composto da ingresso, soggiorno con cucina a vista, camera matrimoniale e bagno. Ottimo per investimento o giovani coppie.",
  "date": "2026-05-27 10:15:30",
  "price": 85000,
  "url": "https://www.subito.it/appartamenti/bilocale-ristrutturato-in-centro-storico-ragusa-123456789.htm",
  "category": {
    "id": "7",
    "name": "Appartamenti",
    "slug": "appartamenti"
  },
  "location": {
    "comune": "Ragusa",
    "provincia": "Ragusa",
    "regione": "Sicilia",
    "shortProvincia": "RG"
  },
  "images": [
    "https://images.sbito.it/api/v1/sbt-ads-images-pro/images/sample-image-1.jpg",
    "https://images.sbito.it/api/v1/sbt-ads-images-pro/images/sample-image-2.jpg"
  ],
  "features": {
    "Superficie": "65 mq",
    "Locali": "2",
    "Piano": "2",
    "Bagni": "1",
    "Stato": "Ottimo / Ristrutturato",
    "Riscaldamento": "Autonomo",
    "Classe energetica": "C",
    "Balcone": "Sì",
    "Aria condizionata": "Sì",
    "Arredato": "Sì",
    "Ascensore": "No"
  },
  "advertiser": {
    "name": "Mario Rossi",
    "type": "private",
    "userId": "9876543",
    "company": false
  }
}
```

***

### 🔒 Privacy & GDPR Compliance

This Actor extracts publicly available listings data.

- **Anonymization**: All listing details, images, and user accounts exposed in the dataset represent public classified information posted by the respective users on the source website.
- **Compliance**: Users of this Actor are solely responsible for ensuring that their data processing activities comply with local privacy regulations (GDPR) and the source platform's Terms of Service.

### 🚀 Proxy Requirements

Subito.it actively blocks cloud datacenter IP addresses. To ensure consistent success rates and prevent `403 Forbidden` errors:

- **Always enable Apify Proxy**.
- **Use Residential Proxy Groups**.
- **Target Italy (`IT`)** as the exit country to match local user behavior.

# Actor input Schema

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

Lo slug della categoria di Subito.it. Esempi: 'appartamenti', 'auto', 'telefonia', 'offerte-lavoro', 'arredamento-casalinghi'.

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

La regione italiana in cui cercare (es. 'Sicilia', 'Lombardia', 'Lazio'). Lascia vuoto per tutta Italia.

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

La sigla o il nome della provincia (es. 'RG', 'Ragusa', 'MI', 'Milano').

## `comune` (type: `string`):

Il nome del comune specifico (es. 'Ragusa', 'Milano', 'Sesto San Giovanni').

## `query` (type: `string`):

Termine o frase da cercare all'interno degli annunci (es. 'Toyota', 'bilocale', 'iphone').

## `priceMin` (type: `integer`):

Prezzo minimo degli annunci.

## `priceMax` (type: `integer`):

Prezzo massimo degli annunci.

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

Il numero massimo di pagine di risultati da raschiare (ogni pagina contiene fino a 30 annunci).

## `extraFilters` (type: `object`):

Inserisci un oggetto JSON con filtri extra specifici della categoria se necessario (es: { "szs": 80, "btrs": 1 } per appartamenti di minimo 80mq con minimo 1 bagno).

## `proxyConfig` (type: `object`):

ATTENZIONE: Per evitare il blocco 403 da parte di Cloudflare, abilita e seleziona i proxy residenziali italiani di Apify.

## Actor input object example

```json
{
  "category": "appartamenti",
  "maxPages": 5,
  "extraFilters": {},
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IT"
  }
}
```

# Actor output Schema

## `viewResults` (type: `string`):

Click to view the extracted listings in a clean interactive web table.

## `excelReport` (type: `string`):

Download the complete dataset formatted as an Excel spreadsheet.

## `csvReport` (type: `string`):

Download the complete dataset in CSV format (perfect for import into other tools).

# 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("harry.automazione/subito-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("harry.automazione/subito-scraper").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 '{}' |
apify call harry.automazione/subito-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=harry.automazione/subito-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Subito.it Universal Scraper (Fast & Detailed)",
        "description": "Scrapes classified listings from Subito.it (Motors, Real Estate, Marketplace, Jobs) in real-time. Supports advanced geographical validation, filters, automatic pagination, and extracts full details (metri quadri, vani, bagni, chilometri, cambio, anno) into Excel/CSV/JSON.",
        "version": "1.0",
        "x-build-id": "BhtOWHVtgqkkfA2M8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/harry.automazione~subito-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-harry.automazione-subito-scraper",
                "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/harry.automazione~subito-scraper/runs": {
            "post": {
                "operationId": "runs-sync-harry.automazione-subito-scraper",
                "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/harry.automazione~subito-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-harry.automazione-subito-scraper",
                "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": [
                    "category"
                ],
                "properties": {
                    "category": {
                        "title": "Sotto-categoria (Category Slug)",
                        "type": "string",
                        "description": "Lo slug della categoria di Subito.it. Esempi: 'appartamenti', 'auto', 'telefonia', 'offerte-lavoro', 'arredamento-casalinghi'.",
                        "default": "appartamenti"
                    },
                    "region": {
                        "title": "Regione",
                        "type": "string",
                        "description": "La regione italiana in cui cercare (es. 'Sicilia', 'Lombardia', 'Lazio'). Lascia vuoto per tutta Italia."
                    },
                    "province": {
                        "title": "Provincia",
                        "type": "string",
                        "description": "La sigla o il nome della provincia (es. 'RG', 'Ragusa', 'MI', 'Milano')."
                    },
                    "comune": {
                        "title": "Comune",
                        "type": "string",
                        "description": "Il nome del comune specifico (es. 'Ragusa', 'Milano', 'Sesto San Giovanni')."
                    },
                    "query": {
                        "title": "Parola chiave (Keyword)",
                        "type": "string",
                        "description": "Termine o frase da cercare all'interno degli annunci (es. 'Toyota', 'bilocale', 'iphone')."
                    },
                    "priceMin": {
                        "title": "Prezzo minimo (€)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Prezzo minimo degli annunci."
                    },
                    "priceMax": {
                        "title": "Prezzo massimo (€)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Prezzo massimo degli annunci."
                    },
                    "maxPages": {
                        "title": "Numero massimo di pagine",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Il numero massimo di pagine di risultati da raschiare (ogni pagina contiene fino a 30 annunci).",
                        "default": 5
                    },
                    "extraFilters": {
                        "title": "Filtri specifici avanzati (JSON)",
                        "type": "object",
                        "description": "Inserisci un oggetto JSON con filtri extra specifici della categoria se necessario (es: { \"szs\": 80, \"btrs\": 1 } per appartamenti di minimo 80mq con minimo 1 bagno).",
                        "default": {}
                    },
                    "proxyConfig": {
                        "title": "Configurazione Proxy",
                        "type": "object",
                        "description": "ATTENZIONE: Per evitare il blocco 403 da parte di Cloudflare, abilita e seleziona i proxy residenziali italiani di Apify.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "IT"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
