# Subito Auto Scraper — Italian Car Classifieds (`noahadler/subito-auto`) Actor

Scrape Subito.it Auto car ads across Italy: title, price EUR, year, km, fuel, transmission, location, seller type and detail URL. HTTP + **NEXT\_DATA** parse — RESIDENTIAL Italy proxy recommended (DataDome).

- **URL**: https://apify.com/noahadler/subito-auto.md
- **Developed by:** [Noah Adler](https://apify.com/noahadler) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 car listings

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

## Subito Auto Scraper — Italian Car Classifieds

**Subito.it Auto** scraper for **Italian used cars**: title, price EUR, year, mileage, fuel, transmission, location, seller type, and detail URL — one clean Dataset row per listing.

Built for **auto dealers**, **pricing intel**, **lead gen (IT)**, and PPE-friendly exports. No browser automation — HTTP + Chrome TLS fingerprint + parse of embedded `__NEXT_DATA__` from search HTML.

> Subito Auto search pages ship ad payloads inside Next.js `__NEXT_DATA__` (`props.pageProps.initialState.items.originalList`, ~30 per page). **Italy residential proxy is recommended** (DataDome scripts are present; default input enables Apify RESIDENTIAL + country IT).

**Why this Actor:** Cars-only vertical · IT SEO (subito auto / auto usate) · No Playwright · Cheaper focus than generalist Subito scrapers · CSV / API / webhooks ready

***

### What this Actor does

| Step | Action |
|------|--------|
| 1 | Accept `query` and/or Auto `searchUrl`, plus `maxItems` |
| 2 | Build `https://www.subito.it/annunci-italia/vendita/auto/?q=…&o=…` |
| 3 | `GET` with `curl_cffi` (`chrome124`) + `Accept-Language: it-IT` |
| 4 | Parse `__NEXT_DATA__` → `initialState.items.originalList` |
| 5 | Map price / year / km / fuel / gearbox / location / seller |
| 6 | Paginate `o=0,30,60…` until `maxItems` or empty page |

***

### Input

| Field | Required | Description |
|-------|----------|-------------|
| `query` | Cond. | Search text (e.g. `fiat`, `golf`). Optional if `searchUrl` set; empty browses all Italy Auto |
| `searchUrl` | Cond. | Full Subito Auto search URL (`/vendita/auto/`) |
| `maxItems` | No | Cap (default 40, max 300) |
| `proxyConfiguration` | No | **Default on:** RESIDENTIAL, country IT |

#### Example

```json
{
  "query": "fiat",
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "IT"
  }
}
```

***

### Output example

```json
{
  "listingId": "661763325",
  "title": "FIAT PUNTO",
  "price": 4600,
  "currency": "EUR",
  "year": 2008,
  "mileage": 90000,
  "fuel": "Benzina",
  "transmission": "Manuale",
  "location": "Novi Ligure, AL, Piemonte",
  "sellerType": "private",
  "detailUrl": "https://www.subito.it/auto/fiat-punto-alessandria-661763325.htm",
  "imageUrl": null,
  "query": "fiat",
  "scrapedAt": "2026-09-22T21:00:00Z",
  "error": false,
  "errorMessage": null
}
```

***

### Features

| Capability | Detail |
|------------|--------|
| **Auto only** | `/vendita/auto/` — not a general Subito dump |
| **No browser** | `curl_cffi` impersonate `chrome124` (+ optional `browserforge`) |
| **Live `__NEXT_DATA__`** | Same payload the public search UI embeds |
| **Proxy-aware** | Default Apify **RESIDENTIAL** + **IT** (DataDome) |

***

### Limitations

- **Auto only:** other Subito categories are out of scope.
- **Search cards:** phone / full detail enrichment is out of v0.1.
- **Blocking:** DataDome may challenge datacenter IPs — keep **IT RESIDENTIAL** on for production.
- Respect Subito Terms of Service and applicable laws when scraping.

***

### Keywords

subito auto, subito.it auto usate, scraper subito auto, italian car classifieds, auto usate italia export, subito vendita auto api, fiat golf bmw subito, PPE subito auto, italy used car lead gen

# Actor input Schema

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

Free-text search as on Subito Auto (e.g. fiat, golf, BMW Serie 3). Optional if searchUrl is set. Empty = browse all Italy Auto.

## `searchUrl` (type: `string`):

Optional full www.subito.it Auto search URL override (/annunci-…/vendita/auto/…). When set, query from the URL is used; input query still stored as metadata if provided.

## `maxItems` (type: `integer`):

Maximum car ads to collect (1–300). ~30 ads per page.

## `proxyConfiguration` (type: `object`):

Subito uses DataDome. Default: Apify RESIDENTIAL, country Italy (IT). If apifyProxyCountry is empty, the Actor injects IT. Disable only for local smoke tests.

## Actor input object example

```json
{
  "query": "fiat",
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IT"
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

# 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 = {
    "query": "fiat"
};

// Run the Actor and wait for it to finish
const run = await client.actor("noahadler/subito-auto").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 = { "query": "fiat" }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,noahadler/subito-auto"
        }
    }
}
```

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/PnmQNXAcGQAcqyBIa/builds/0A9fWAX3w0nEy5e73/openapi.json
