# Subito.it Scraper - Italian Classifieds & Marketplace Data (`evpp/subito-it`) Actor

Extract Subito.it classifieds as clean JSON: prices, locations, photos, vehicle and property attributes, seller details, timestamps, and listing URLs.

- **URL**: https://apify.com/evpp/subito-it.md
- **Developed by:** [Evp Labs](https://apify.com/evpp) (community)
- **Categories:** E-commerce, Real estate, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.22 / 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/actors/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.it Scraper - Italian Classifieds & Marketplace Data

Extract classified ads from **Subito.it**, Italy's largest online marketplace (~6M+ live ads): titles, prices, locations, photos, seller type and full category-specific attributes such as car mileage/year or property square meters/rooms.

The Actor reads the structured `__NEXT_DATA__` JSON embedded in every Subito.it search page. No browser rendering, no login, no proxy required - it is fast, cheap and stable.

### What you can scrape

- **Marketplace monitoring** - track new used items (phones, consoles, furniture) across Italy as they are posted.
- **Car dealer intelligence** - collect auto/moto ads with mileage, registration year, fuel and gearbox attributes.
- **Property feeds** - collect sale/rent listings with square meters, rooms and energy class attributes.
- **Price research** - follow asking-price trends per category, region or keyword over time.
- **Aggregation** - feed classifieds data into your own index, CRM or alerting pipeline.

### Quick start input

Target source: `subito.it`. Paste this JSON into the Actor input tab for a fast first run, or use it as the body of the Apify API run call:

```json
{
    "searchQuery": "iphone",
    "category": "",
    "region": "",
    "sort": "",
    "maxItems": 10
}
```

The default input is intentionally small. Raise `maxItems` only after validating the first listing records.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQuery` | string | `iphone` | Optional keyword search (the `q` parameter). Leave empty to browse the latest ads in a category. |
| `category` | string | *(empty = `usato`)* | Category slug: `motori`, `immobili`, `telefonia`, `auto`, `moto-e-scooter`, `elettronica`, ... Empty scrapes the mixed `usato` section. |
| `region` | string | *(empty = all Italy)* | Region slug: `lombardia`, `lazio`, `sicilia`, `veneto`, ... Maps to `annunci-<region>` URLs. |
| `minPrice` | integer | - | Minimum price in EUR (`ps` filter). |
| `maxPrice` | integer | - | Maximum price in EUR (`pe` filter). |
| `sort` | string | *(site default)* | `relevance`, `datedesc` (newest), `priceasc`, `pricedesc`. |
| `maxItems` | integer | `15` | Maximum ads to collect (about 30 per results page). |
| `proxyConfiguration` | object | disabled | Optional Apify proxy. Not needed normally - enable only for very large runs. |

#### Example input

```json
{
    "searchQuery": "iphone",
    "category": "telefonia",
    "region": "lombardia",
    "maxPrice": 800,
    "sort": "datedesc",
    "maxItems": 100
}
```

### Output

One flat JSON item is produced per listing. Download the dataset as JSON, CSV, Excel, or HTML, or consume it through the Apify API.

#### Field reference

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Numeric Subito.it ad ID (from the ad URL) |
| `title` | string | Ad title (subject) |
| `url` | string | Canonical URL of the ad on subito.it |
| `price` | number | Numeric asking price (absent when the ad has no fixed price) |
| `priceCurrency` | string | Currency of the price, always EUR on Subito.it (present only when price is set) |
| `priceLabel` | string | Price as displayed on the site |
| `category` | string | Subito.it category label of the ad |
| `categorySlug` | string | URL-friendly category identifier (usable as the category input) |
| `listingType` | string | Ad type label, e.g. In vendita (for sale) or In affitto (for rent) |
| `region` | string | Italian region where the item is located |
| `city` | string | Province/city label of the ad location |
| `town` | string | Municipality (comune) of the ad location |
| `publishedAt` | string | Publication timestamp of the ad (ISO-like, site local time) |
| `imageUrl` | string | CDN base URL of the first ad photo |
| `imagesCount` | integer | Number of photos attached to the ad |
| `description` | string | Ad description trimmed to about 400 characters |
| `condition` | string | Item condition label when provided (Nuovo, Ottimo, Buono, ...) |
| `shippingAvailable` | boolean | Whether the seller offers shipping (TuttoSubito / spedizione) |
| `sellerName` | string | Display name of the advertiser when shown |
| `sellerType` | string | private or business advertiser |
| `sellerId` | string | Internal Subito.it advertiser user ID |

#### Real sample output (latest live dataset)

```json
{
    "id": "670751227",
    "title": "Iphone usato",
    "url": "https://www.subito.it/telefonia/iphone-usato-varese-670751227.htm",
    "price": 600,
    "priceCurrency": "EUR",
    "priceLabel": "600 €",
    "category": "Telefonia",
    "categorySlug": "telefonia",
    "listingType": "In vendita",
    "region": "Lombardia",
    "city": "Varese",
    "town": "Gallarate",
    "publishedAt": "2026-12-04T13:51:24",
    "imageUrl": "https://images.sbito.it/api/v1/sbt-ads-images-pro/images/80/80b2c925-1eba-44f0-a46f-aa8ab81c1e6d",
    "imagesCount": 5,
    "description": "Iphone 16 pro max 256gb",
    "condition": "Buono - usato ma ben conservato",
    "shippingAvailable": false,
    "sellerType": "private",
    "sellerId": "123672545",
    "param_phone_type": "Cellulari e Smartphone"
}
```

### How it works

1. Builds a Subito.it search URL from `searchQuery`, `category`, `region`, price bounds and `sort` - e.g. `https://www.subito.it/annunci-lombardia/vendita/telefonia/?q=iphone&pe=800`.
2. Fetches result pages with a plain HTTP client (CheerioCrawler) at up to 10 concurrent requests.
3. Parses the embedded `__NEXT_DATA__` JSON - the same payload the site's own frontend consumes - and pushes one clean flat item per ad.
4. Paginates automatically (about 30 ads per page) until `maxItems` is reached.

### Use with AI agents (MCP), n8n, Make, and Python

- **AI agents / MCP:** add `https://mcp.apify.com/?tools=evpp/subito-it` to your MCP client, then ask the agent to scrape Subito.it data or export the latest dataset.
- **n8n / Make / Zapier:** run Actor `evpp/subito-it` with the quick-start input, then map dataset items into Google Sheets, a CRM, a webhook, or a monitoring workflow.
- **Python:** install the client with `pip install apify-client` and run:

```python
import json
from apify_client import ApifyClient

client = ApifyClient()
run_input = json.loads('''{"searchQuery":"iphone","category":"","region":"","sort":"","maxItems":10}''')
run = client.actor("evpp/subito-it").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[0])
```

The same dataset is available as JSON, CSV, Excel, XML, RSS, and HTML through the Apify API.

### Cost

The Actor runs on HTTP requests only - no browser, so a single run costs almost nothing in compute. Scraping **1,000 ads** (about 34 pages) typically finishes in **1-2 minutes** on 256-512 MB of memory. With pay-per-event pricing of **$1.75 per 1,000 ads**, cost is linear and predictable.

### Limits & notes

- Prices are asking prices in EUR. Ads "on request" (price on demand) have no `price` field.
- `description` is trimmed to ~400 characters per item for compact PPE items.
- Subito.it caps deep pagination; for very large harvests split by region or category.
- Please respect Subito.it's terms of service - this Actor reads publicly available listing pages only.

### FAQ

**Do I need a proxy?** No - listing pages are fetched directly and the default works. Enable a proxy only if you run very large jobs.

**How fresh is the data?** Real-time: every run fetches live pages, and `sort: "datedesc"` surfaces the newest ads first.

**Why `param_*` fields?** Subito.it stores different attributes per category (mileage for cars, mq for flats). Instead of hardcoding a few, the Actor exports all of them flat so nothing is lost.

**Can I get ads for a specific city?** Use `region` for a region-level filter and read `city`/`town` in the output, or put the city name in `searchQuery`.

#### How much does a run cost?

The Actor uses the pay-per-event price shown on its Apify Store page. Start with the small quick-start input, verify the returned listing records, then raise `maxItems` only when the data matches your use case.

# Actor input Schema

## `searchQuery` (type: `string`):

Optional keyword searched on Subito.it (the q parameter, e.g. iphone, vespa, bilocale). Leave empty to browse the latest ads in the chosen category.

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

Subito.it category slug to scrape, e.g. motori, immobili, telefonia or a subcategory like auto or moto-e-scooter. Leave empty to scrape 'usato', the mixed second-hand section with the freshest ads.

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

Italian region slug restricting results geographically, e.g. lombardia, lazio, sicilia. Leave empty for all of Italy (annunci-italia).

## `minPrice` (type: `integer`):

Only show ads priced at or above this amount in EUR (Subito.it 'ps' filter). Leave empty for no lower bound.

## `maxPrice` (type: `integer`):

Only show ads priced at or below this amount in EUR (Subito.it 'pe' filter). Leave empty for no upper bound.

## `sort` (type: `string`):

How results are ordered. Leave empty for the site default (relevance for searches, newest first for browsing).

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

Maximum number of ads to push to the dataset. Subito.it returns about 30 ads per page; the Actor stops as soon as this many items are collected.

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

Proxy settings for outbound requests. Not needed for this Actor: Subito.it listing pages are fetched directly. Keep disabled unless you hit rate limits on very large runs.

## Actor input object example

```json
{
  "searchQuery": "iphone",
  "category": "",
  "region": "",
  "sort": "",
  "maxItems": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped Subito.it ads

# 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 = {
    "searchQuery": "iphone",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("evpp/subito-it").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 = {
    "searchQuery": "iphone",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("evpp/subito-it").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 '{
  "searchQuery": "iphone",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call evpp/subito-it --silent --output-dataset

```

## MCP server setup

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

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/H68cKJPIfzJzIpPWm/builds/DfH93zvnp0SfJEF5g/openapi.json
