# automobile.it Scraper (`dadhalfdev/automobile-it-scraper`) Actor

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

- **URL**: https://apify.com/dadhalfdev/automobile-it-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

## 🚗 automobile.it Scraper

Want to find the perfect used car or analyze the Italian automotive market? This scraper makes it super easy!

Paste an **`input_url`** from your browser once you've already filtered on automobile.it, **or** use **structured filters** (make, model, region, city, 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 [automobile.it](https://www.automobile.it/) with pricing, specs, and location as CSV or JSON.

### 💡 Perfect for...

- **Car Buyers:** Monitor the market for the best deals on your dream car in Italy.
- **Dealerships:** Keep an eye on competitors' pricing and inventory to stay competitive.
- **Market Research:** Analyze trends in the Italian used car market (average prices, popular models, mileage vs. price).
- **Data Analysts:** Download clean, structured data for visualizations, dashboards, or predictive pricing models.
- **🤖 AI Agents:** Power your autonomous agents with real-time car listings. Perfect for OpenClaw workflows and bots tracking specific vehicles.
- **📚 RAG Systems:** Feed detailed car specifications and pricing into Retrieval-Augmented Generation pipelines to answer complex queries about the automotive market.
- **🔗 AI Workflows:** Integrate seamlessly with LangChain, AutoGPT, CrewAI, and other AI frameworks that need structured automotive data.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste an automobile.it 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, Italian region/city, price, mileage, year, fuel, gearbox, and body type — no URL crafting required.
- ⚙️ **Rich Listings:** Extracts price, year, mileage, fuel type, gearbox, power, location, dealer, and images out of the box.
- 🔎 **Optional Deep Dive:** Turn on `enrich_details` for description, colour, doors, seats, accessories, consumption, and dealer phone/address.
- ⏱️ **Sorting Options:** Traverse results from most relevant to lowest price, mileage, newest ads, or newest registration year.
- 🇮🇹 **Built for Italy:** Covers all Italian regions and cities from automobile.it (Usate, KM 0, Nuove).

### 📦 What's inside the data?

For every single car listing, you will get:

- **Core Details:** `id`, `title`, `url`, `image`, `photo_count`, `short_description`
- **Location:** `location` (city and province)
- **Technical Specs:** `make`, `model`, `fuel_type`, `gearbox`, `mileage`, `year`, `power`, `engine_capacity`, `registration`, `channel`
- **Pricing & Seller:** `price`, `seller_type`, `dealer_name`
- **With enrich\_details:** `description`, `color`, `doors`, `seats`, `body_type`, `accessories`, `emission_class`, `co2`, `consumption_combined`, `dealer_phone`, `dealer_address`, `dealer_url`, `images`

### 🛠️ Sort options

You can tell the scraper what order to read the listings in using the `sort_by` parameter:

- **Most Relevant** – Site default ranking
- **Lowest / Highest Price**
- **Most Recent / Oldest First**
- **Lowest KM**
- **Newest Year**

### 🚀 Quick start

**Option A — Input URL**

1. Open [automobile.it](https://www.automobile.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`, max price `10000`).
3. Optionally pick a region or city, choose `sort_by`, and set `max_cars` (up to 2000).
4. *(Optional)* Enable `enrich_details` for full ad-page specs.
5. Click **Start** and export CSV, Excel, or JSON when done.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters)**

```json
{
  "make": "fiat",
  "model": "Panda",
  "city": "Milano",
  "price_max": 10000,
  "energy": "gpl",
  "sort_by": "Lowest Price",
  "max_cars": 100
}
```

**Input Example (URL override)**

```json
{
  "input_url": "https://www.automobile.it/fiat-panda",
  "max_cars": 100
}
```

**Output Example**

```json
{
  "id": "180506605",
  "title": "Fiat Panda 1.2 EasyPower Lounge",
  "url": "https://www.automobile.it/uboldo-fiat-panda-1-2-easypower-lounge/180506605",
  "image": "https://media-ys.automobile.it/api/v1/am-ad/images/0de85d1a9925df515d7d95bc194a5ef2?rule=ad-568.jpeg",
  "price": 4950,
  "year": 2018,
  "mileage": 290000,
  "fuel_type": "GPL",
  "gearbox": "Manuale",
  "power": "69 CV (51 KW)",
  "engine_capacity": "1242 cc",
  "location": "Uboldo (VA)",
  "photo_count": 16,
  "make": "FIAT",
  "model": "Panda",
  "channel": "Usato",
  "seller_type": "Professional",
  "dealer_name": "A.F. AUTO DI ALI WEHBE",
  "registration": "Maggio 2018"
}
```

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste an automobile.it search URL; overrides all filters below when set. Leave empty to use filters (better for AI agents). |
| `make` | string enum | No | any | Car brand slug, fetched live from automobile.it's makes API (e.g. `fiat`, `bmw`, `mercedes_benz`, `alfa_romeo`). Empty = all brands. |
| `model` | string | No | — | Free-text model name (e.g. `Panda`, `Golf`, `Serie 3`). **Only used when `make` is set**; not a dropdown. |
| `region` | string enum | No | `""` (all Italy) | Italian region (e.g. `Lombardia`, `Lazio`, `Veneto`). |
| `city` | string | No | — | City name (e.g. `Milano`, `Roma`, `Torino`). **Takes priority over `region`** when both are set. |
| `channel` | string enum | No | `usate` | Listing channel: `usate` (used), `km0`, `nuove` (new), `noleggio` (rental), or empty for all ads. |
| `body_type` | string enum | No | any | Body style: `berlina`, `city_car`, `station_wagon`, `monovolume`, `suv`, `cabrio`, `auto_sportiva`, `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 | — | First-registration year range. |
| `energy` | string enum | No | any | Fuel type: `benzina`, `diesel`, `gpl`, `metano`, `elettrica` (electric), `ibrida_benzina`, `ibrida_diesel`, `idrogeno` (hydrogen), `etanolo` (ethanol). |
| `gearbox` | string enum | No | any | Transmission: `manuale`, `automatico`, `semiautomatico`. |
| `sort_by` | string enum | No | `Most Relevant` | Result order (see sort options above). |
| `max_cars` | integer | Yes | `50` | Maximum listings to return (`1`–`2000`). |
| `enrich_details` | boolean | No | `false` | If `true`, open each ad page for richer specs and dealer contact fields. Slower. |
| `listing_urls` | string\[] | No | — | Optional direct ad URLs. If set **without** other search filters, only these URLs are scraped. |

#### Notes

- `input_url` always wins over filters when provided.
- Each run returns at most **`max_cars`** listings (`1`–`2000`).
- Prices are always entered and returned in **euros**.
- `make` is a dropdown fetched from automobile.it's live makes API, so it always stays in sync with the site's brand list.

# Actor input Schema

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

Paste an automobile.it search results URL (e.g. https://www.automobile.it/bmw-serie\_3) 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 automobile.it (fetched from automobile.it's live makes API). Leave empty to search 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.

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

Italian region. Empty = nationwide. City takes priority over region when both are set. Ignored when input\_url is set.

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

Optional city (e.g. Milano, Roma, Torino). Prefer this over region for tighter geo filters. Ignored when input\_url is set.

## `channel` (type: `string`):

Listing channel. Default is used cars. Ignored when input\_url is set.

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

Vehicle body style. 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 first-registration year. Ignored when input\_url is set.

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

Maximum first-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.

## `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 description, colour, doors, seats, accessories, dealer phone/address (slower).

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

Optional direct ad URLs (https://www.automobile.it/.../ID). If set without search filters, only these URLs are scraped.

## Actor input object example

```json
{
  "make": "",
  "region": "",
  "channel": "usate",
  "body_type": "",
  "energy": "",
  "gearbox": "",
  "sort_by": "Most Relevant",
  "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/automobile-it-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/automobile-it-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/automobile-it-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RUc9BxXJ3rMZhkTIC/builds/MJOprZvVGHeFowXOb/openapi.json
