# Subito Auto Scraper (`dadhalfdev/subito-auto-scraper`) Actor

Scrape used cars from subito.it (Auto category) with structured filters (make, model, region, price, fuel). Returns price, mileage, year, location, and listing URL.

- **URL**: https://apify.com/dadhalfdev/subito-auto-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Auto Scraper

Want to find used cars on [Subito.it](https://www.subito.it/) or analyze the Italian private + dealer market? This scraper makes it super easy!

Paste an **`input_url`** from your browser once you've already filtered on Subito, **or** use **structured filters** (make, model, region, price, fuel type, etc.) — structured filters work better for AI agents. When `input_url` is set it overrides the filters. Either way, you get up to 2000 car listings from the **Auto section only**, with pricing, specs, and location as CSV or JSON.

### 💡 Perfect for...

- **Car Buyers:** Monitor deals from private sellers and dealers across Italy.
- **Dealerships:** Track competitor inventory and pricing on Subito.
- **Market Research:** Analyze Italian used-car supply by brand, region, mileage, and fuel.
- **Data Analysts:** Export clean structured data for dashboards and pricing models.
- **🤖 AI Agents:** Power bots and OpenClaw workflows with real-time Subito Auto listings.
- **📚 RAG Systems:** Feed vehicle specs and prices into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a Subito Auto search URL (`input_url`) if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Structured Filters:** Search by make, model, region, city, condition, body type, price, mileage, year, fuel, gearbox, and seller type — no URL crafting.
- 🚗 **Auto Only:** Scoped to Subito Auto — ignores immobili, elettronica, etc.
- ⚙️ **Rich Listings:** Price, year, mileage, fuel, gearbox, body, location, and images.
- 🔎 **Optional Deep Dive:** Turn on `enrich_details` for extra fields from each ad page (usually unnecessary).
- ⏱️ **Sorting Options:** Newest, relevance, price, year, mileage, power, or length.
- 🇮🇹 **Built for Italy:** All 20 regions with a live make dropdown fetched from Subito's brands API.

### 📦 What's inside the data?

For every single car listing, you will get:

- **Core Details:** `id`, `title`, `url`, `image`, `photo_count`, `description`, `published_at`
- **Location:** `location`, `region`, `province`, `town`
- **Technical Specs:** `make`, `model`, `version`, `fuel_type`, `gearbox`, `mileage`, `year`, `body_type`, `doors`, `seats`, `color`, `power`, `emission_class`, `condition`
- **Pricing & Seller:** `price`, `seller_type`, `seller_name`
- **Extras:** `neopatentati` when present

### 🛠️ Sort options

Use the `sort_by` parameter:

- **Most Recent** – Newest listings first
- **Most Relevant** – Subito relevance ranking
- **Lowest / Highest Price**
- **Newest / Oldest Year**
- **Lowest / Highest KM**
- **Lowest / Highest Power**
- **Shortest / Longest Length**

### 🚀 Quick start

**Option A — Input URL**

1. Open [Subito Auto](https://www.subito.it/), apply filters in the browser, copy the results URL.
2. Paste it into `input_url`.
3. Set `max_cars` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Set filters (e.g. make `FIAT`, model `Panda`), optional region/city, price / mileage / year / fuel.
3. Choose `sort_by` and `max_cars` (up to 2000).
4. Click **Start** and export CSV, Excel, or JSON when done.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters)**

```json
{
  "make": "FIAT",
  "model": "Panda",
  "region": "Lombardia",
  "price_max": 10000,
  "energy": "Benzina",
  "sort_by": "Lowest Price",
  "max_cars": 100
}
```

**Input Example (URL override)**

```json
{
  "input_url": "https://www.subito.it/annunci-lombardia/vendita/auto/?q=bmw",
  "max_cars": 100
}
```

**Output Example**

```json
{
  "id": "654772709",
  "title": "Panda anno 2010",
  "url": "https://www.subito.it/auto/panda-anno-2010-napoli-654772709.htm",
  "image": "https://images.sbito.it/api/v1/sbt-ads-images-pro/images/70/…?rule=gallery-800-w",
  "price": 3000,
  "year": 2010,
  "mileage": 163000,
  "fuel_type": "Benzina",
  "gearbox": "Manuale",
  "body_type": "Utilitaria",
  "location": "Giugliano in Campania, Napoli, Campania",
  "make": "FIAT",
  "model": "Panda",
  "seller_type": "Private"
}
```

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste a Subito Auto search URL; overrides all filters below when set. Leave empty to use filters (better for AI agents). |
| `make` | string enum | No | any | Brand as on Subito, fetched live from Subito's brands API (e.g. `FIAT`, `BMW`, `ALFA ROMEO`). Empty = all brands. |
| `model` | string | No | — | Free-text model name (e.g. `Panda`). **Only used when `make` is set**; not a dropdown. |
| `query` | string | No | — | Free-text keywords. |
| `region` | string enum | No | `""` (all Italy) | Italian region (e.g. `Lombardia`, `Lazio`, `Campania`). Empty = nationwide. |
| `city` | string | No | — | City or province text. |
| `condition` | string enum | No | any | `Usato`, `Km0`, `Nuovo`. |
| `body_type` | string enum | No | any | Utilitaria, Berlina, Station Wagon, Monovolume, SUV/Fuoristrada, Cabrio, Coupé, City Car, Altro. |
| `price_min` / `price_max` | integer | No | — | Price range in **euros**. |
| `mileage_min` / `mileage_max` | integer | No | — | Mileage range in km. |
| `year_min` / `year_max` | integer | No | — | Registration year range. |
| `energy` | string enum | No | any | Fuel type as shown on Subito (Benzina, Diesel, Gpl, Elettrica, Ibrida, …). |
| `gearbox` | string enum | No | any | Manuale, Automatico, Sequenziale, Altro. |
| `seller_type` | string enum | No | any | `Privato` or `Azienda`. |
| `sort_by` | string enum | No | `Most Recent` | See sort options above. |
| `max_cars` | integer | Yes | `50` | How many listings to return (`1`–`2000`). |
| `enrich_details` | boolean | No | `false` | Fetch each ad page for extra fields (slower; rarely needed). |
| `listing_urls` | string\[] | No | — | Direct ad URLs. If provided **without** search filters, only these are scraped. |

#### Notes on filters

- `input_url` always wins over filters when provided.
- This Actor only scrapes **cars** (Subito Auto). Motori accessories, moto, immobili, etc. are out of scope.
- Each run returns at most **`max_cars`** listings (`1`–`2000`).
- Prefer official Subito brand names when filtering by make.

# Actor input Schema

## `input_url` (type: `string`):

Paste a Subito Auto search URL to use instead of the filters below — overrides all structured filters when set. Leave empty to use the filters below (better for AI agents).

## `make` (type: `string`):

Car brand as on Subito (fetched from Subito's live brands API). Leave empty for all brands. Ignored when input\_url is set.

## `model` (type: `string`):

Optional model (e.g. Panda, Golf, Serie 3). Free text — only used when `make` is also set; ignored otherwise. Ignored when input\_url is set.

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

Optional free-text keywords (e.g. neopatentati, hybrid). Ignored when input\_url is set.

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

Italian region. Empty = nationwide. Ignored when input\_url is set.

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

Optional city or province name (e.g. Milano, Roma). Ignored when input\_url is set.

## `condition` (type: `string`):

Vehicle condition filter. Ignored when input\_url is set.

## `body_type` (type: `string`):

Body style filter. Ignored when input\_url is set.

## `price_min` (type: `integer`):

Minimum price in euros. Ignored when input\_url is set.

## `price_max` (type: `integer`):

Maximum price in euros. Ignored when input\_url is set.

## `mileage_min` (type: `integer`):

Minimum mileage in km. Ignored when input\_url is set.

## `mileage_max` (type: `integer`):

Maximum mileage in km. Ignored when input\_url is set.

## `year_min` (type: `integer`):

Minimum registration year. Ignored when input\_url is set.

## `year_max` (type: `integer`):

Maximum registration year. Ignored when input\_url is set.

## `energy` (type: `string`):

Fuel type. Ignored when input\_url is set.

## `gearbox` (type: `string`):

Transmission. Ignored when input\_url is set.

## `seller_type` (type: `string`):

Private or dealer seller. Ignored when input\_url is set.

## `sort_by` (type: `string`):

How to order the results.

## `max_cars` (type: `integer`):

Maximum listings to return per run (1–2000).

## `enrich_details` (type: `boolean`):

If true, open each ad page for extra fields (usually unnecessary — search results already include rich vehicle data).

## `listing_urls` (type: `array`):

Optional direct ad URLs. If set without search filters, only these are scraped.

## Actor input object example

```json
{
  "make": "",
  "region": "",
  "condition": "",
  "body_type": "",
  "energy": "",
  "gearbox": "",
  "seller_type": "",
  "sort_by": "Most Recent",
  "max_cars": 50,
  "enrich_details": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped listings using the dataset 'overview' view.

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

All scraped listings from the default dataset without view transformation.

# 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("dadhalfdev/subito-auto-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("dadhalfdev/subito-auto-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 dadhalfdev/subito-auto-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/o4m88dSvaiKgMCLYD/builds/2DpzL9LHGKfWJ1yhT/openapi.json
