# Subito.it Scraper: auto, immobili (search, filters, alerts) (`datahamster/subito-it-listings`) Actor

Subito.it scraper for Italian classifieds (annunci, usato): search subito.it by keyword, category, region and price - auto, moto, immobili, elettronica - flat rows with price, condition, comune, provincia, coordinates, seller type, shipping and photos. Monitor mode alerts on new ads and price cuts.

- **URL**: https://apify.com/datahamster/subito-it-listings.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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.it Scraper: auto, immobili (search, filters, alerts)

A Subito.it scraper for Italy's largest classifieds site: search **subito.it** by keyword, category, region and price — auto, moto, immobili, elettronica, biciclette, everything in *annunci usato* — and get each ad as one flat row. Monitor mode on a saved Task returns only the ads that are new or changed price since your last run, with an optional webhook or Telegram summary.

### What you get — example output

One row per advertisement. Real values from the example dataset (query `bici`):

| Field | Example value | What it is |
|---|---|---|
| `id` | `subito-659437990` | Stable row key (`subito-` + Subito ad id) |
| `title` | `dedacciai temerario` | Advertisement headline |
| `price` / `priceLabel` | `500` / `500 €` | Numeric price in euros and the label Subito prints |
| `condition` | `Ottimo - poco usato e ben conservato` | Condition exactly as the seller selected it |
| `city` / `district` / `region` | `Alzate Brianza` / `Como` / `Lombardia` | Comune, provincia and regione (`lat` `45.767095`, `lon` `9.181678`) |
| `categoryPath` | `Biciclette` | Category the ad sits in (`categoryId` `41`) |
| `sellerType` | `private` | `private` or `business` — separate dealers from individuals |
| `deliveryAvailable` | `true` | Whether the seller ships (`params.item_shipping_cost` = `20 €`) |
| `params` | `{"item_condition": "Ottimo …", "bicycle_type": "Corsa"}` | Every Subito attribute: mileage, year, rooms, size, shipping … |

Full field list: `id`, `url`, `platform`, `country`, `title`, `description`, `price`, `currency`, `priceLabel`, `priceType`, `categoryId`, `categoryPath`, `macroCategoryId`, `adType` (In vendita / Cerco), `condition`, `city`, `district`, `region`, `lat`, `lon`, `images[]`, `sellerId`, `sellerName`, `sellerType`, `createdAt`, `validTo`, `deliveryAvailable`, `params{}`, `query`, `rank`, `source`, `scrapedAt`.

### Use cases

- **Car and bike dealers**: follow a make/model in one region and see every new ad and price cut the day it happens.
- **Price research**: pull a whole category with price, condition and attributes to benchmark what things actually fetch in Italy.
- **Resale hunting**: watch a keyword with a price ceiling and get alerted before the item is gone.

### How it works

The actor calls Subito's own public search API, so each ad arrives as structured data with coordinates and attributes rather than HTML. Subito sits behind Akamai, so requests go out through Apify's residential proxy; you do not configure anything, but Apify bills that traffic on top (about 0.1 MB per page of 30 ads). Each query is paginated separately, 30 ads per page, up to `maxPages` or `maxItems`. In `monitor` mode the run is compared against the previous run of the same Task and only new or re-priced ads are pushed.

### Input

| Field | Meaning | Default |
|---|---|---|
| `queries` | Free-text searches, e.g. `["bici"]`; each is paginated separately | `["bici"]` |
| `categoryId` | Subito numeric category key (`c=` in its filter URLs), e.g. `41` Biciclette, `2` Auto | — |
| `regionId` | Subito numeric region key (`r=`), e.g. `9` Lombardia | — |
| `priceFrom` / `priceTo` | Price range in whole euros, e.g. `100` / `1500` | — |
| `shippableOnly` | Keep only ads the seller ships | `false` |
| `sortBy` | `datedesc`, `priceasc`, `pricedesc`, `relevance` | `datedesc` |
| `maxPages` | Pages per query, 30 ads each | `5` |
| `maxItems` | Stop after this many ads | `20` |
| `mode` | `scrape`, or `monitor` for new/changed only | `scrape` |
| `webhookUrl`, `telegramBotToken`, `telegramChatId` | Where monitor-mode change summaries are sent | — |

### Pricing

| Event | Price |
|---|---|
| result | $0.001 per listing ($1 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.001 per new/changed listing |

Charged only for listings actually pushed — an empty run costs you nothing. Subito sits behind Akamai, so the actor uses residential proxy (Apify bills that traffic on top; ~0.1 MB per page of 30 listings).

### Why this actor

- Every Subito vertical from one input: auto, moto, immobili, elettronica, arredamento, biciclette.
- Comune, provincia, regione and coordinates on every search row, so rows map without geocoding.
- Shipping fields kept (`deliveryAvailable`, shipping type and cost), which matters when you buy remotely.
- Monitor mode with new-ad and price-drop alerts, delivered by webhook or Telegram.
- Akamai handling is built in — no proxy setup, no cookies, no Subito account.

### Limits

- Listing detail pages are not opened: seller phone and full photo sets are not included.
- Category / region keys are Subito's numeric ids (visible in the site's filter URLs as `c=` and `r=`).
- Residential traffic is billed by Apify on top of the per-result price.

### FAQ

**Can I monitor new listings for a search?** Yes. Save the input as a Task, set `mode: monitor` and schedule it — each run returns only ads that appeared or changed price since the previous run, and can POST a summary to `webhookUrl` or a Telegram chat.

**Can I scrape only one region or province?** Set `regionId` to the Subito region key from the site's own filter URL (`r=`); every row also carries `city`, `district` (provincia) and `region`, so you can filter further downstream.

**Do I need a Subito account or my own proxy?** No. The actor talks to Subito's public search API and routes through Apify's residential proxy automatically.

### Changelog

- 0.1: initial release — search, filters, monitor mode.

***

If this actor saved you time, please leave a review on its Store page — it is the main way other buyers find it. Bug reports and field requests are welcome in the **Issues** tab.

# Actor input Schema

## `queries` (type: `array`):

Free-text searches, one string per search phrase, each paginated separately. Example: \["bici", "bici corsa"]. Leave empty only if you pass categoryId.

## `categoryId` (type: `integer`):

Subito numeric category key, the c= value in a Subito filter URL. Examples: 41 (Biciclette), 2 (Auto), 10 (Appartamenti). Optional.

## `regionId` (type: `integer`):

Subito numeric region key, the r= value in a Subito filter URL. Examples: 3 (Liguria), 9 (Lombardia), 12 (Lazio). Optional.

## `priceFrom` (type: `integer`):

Minimum price in whole euros. Example: 100. Optional.

## `priceTo` (type: `integer`):

Maximum price in whole euros. Example: 1500. Optional.

## `shippableOnly` (type: `boolean`):

true = keep only ads the seller ships (Spedizione disponibile); false = all ads. Example: false.

## `sortBy` (type: `string`):

Result order: datedesc (newest first), priceasc (cheapest first), pricedesc, relevance. Example: "datedesc".

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

How many result pages to fetch per query, 30 ads per page. Example: 5.

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

Stop the run after this many ads; you are charged only for ads actually pushed. Example: 20.

## `mode` (type: `string`):

scrape = return all matching ads; monitor = return only ads that are new or changed price since the previous run of this saved Task. Example: "scrape".

## `monitorKey` (type: `string`):

Optional state key for monitor mode when the actor is started directly instead of from a saved Task; any stable string, e.g. "bici-liguria".

## `webhookUrl` (type: `string`):

Optional HTTPS URL that receives a POST with the monitor-mode change summary (JSON). Example: "https://hooks.example.com/subito".

## `telegramBotToken` (type: `string`):

Optional Telegram bot token used to send monitor-mode change summaries. Format: "123456789:AA...".

## `telegramChatId` (type: `string`):

Optional Telegram chat id that receives monitor-mode summaries. Example: "-1001234567890".

## Actor input object example

```json
{
  "queries": [
    "bici"
  ],
  "shippableOnly": false,
  "sortBy": "datedesc",
  "maxPages": 5,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN\_SUMMARY record (pushed, skipped, emptyReason)

# 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 = {
    "queries": [
        "bici"
    ],
    "maxItems": 20,
    "mode": "scrape"
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/subito-it-listings").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 = {
    "queries": ["bici"],
    "maxItems": 20,
    "mode": "scrape",
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/subito-it-listings").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 '{
  "queries": [
    "bici"
  ],
  "maxItems": 20,
  "mode": "scrape"
}' |
apify call datahamster/subito-it-listings --silent --output-dataset

```

## MCP server setup

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

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/evxy1Ley6b0mteIJ5/builds/fqsvBb4wt0jWZaJdc/openapi.json
