# Subito.it Scraper (`wyle/subito-scraper`) Actor

Fast, HTTP-only scraper for Subito.it. Extract ads, prices, locations, advertiser info, images, and descriptions without browser overhead.

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

## Pricing

from $2.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/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 Actor

A high-performance, HTTP-only Apify Actor designed to scrape listings, product prices, descriptions, advertiser details, images, and geographic locations from [Subito.it](https://www.subito.it).

***

### ⚡ Key Features

- **Blazing Fast HTTP-Only Scraping**: Uses internal structured APIs without headless browser overhead, consuming minimal memory and compute units.
- **Advanced Anti-Bot & WAF Resilience**: Emulates modern browser TLS fingerprints (Chrome/HTTP/2) to bypass Cloudflare/DataDome challenges.
- **Rich Data Extraction**:
  - Full title, body description, price, and currency
  - Detailed location breakdown (Region, Province/City, Town/Comune, ISTAT codes)
  - Full-resolution photo URLs (CDN hosted)
  - Advertiser information (User ID, Company vs Private seller)
  - Listing attributes (Condition, Shipping cost, Category taxonomy, Shippability via TuttoSubito)
- **Flexible Search & Filtering**:
  - Keyword searches
  - Direct Subito search/category URLs (`startUrls`)
  - Category and Region filters
  - Price range filters (`minPrice`, `maxPrice`)
  - Sorting options (`datedesc`, `priceasc`, `pricedesc`)
  - Shipping only filter (`onlyShippable`)
- **Apify Proxy Support**: Seamlessly integrates with Apify Residential and Datacenter proxies.

***

### 📥 Input Parameters

| Field | Type | Description | Default |
|---|---|---|---|
| `searchQueries` | Array of Strings | Keywords to search (e.g., `["iphone 15", "macbook pro"]`) | `["iphone 15"]` |
| `startUrls` | Array of Objects/Strings | Direct Subito search or category URLs | `[]` |
| `category` | String | Category filter slug (e.g., `telefonia`, `auto`, `informatica`) | `"all"` |
| `region` | String | Italian region (e.g., `lombardia`, `lazio`, `veneto`) | `"all"` |
| `minPrice` | Integer | Minimum price filter in € | `null` |
| `maxPrice` | Integer | Maximum price filter in € | `null` |
| `sortBy` | String | Order (`datedesc`, `priceasc`, `pricedesc`) | `"datedesc"` |
| `onlyShippable` | Boolean | Scrape only listings eligible for TuttoSubito shipping | `false` |
| `maxItems` | Integer | Maximum listings to collect per query/URL | `50` |
| `proxyConfiguration` | Object | Apify Proxy configuration | `{"useApifyProxy": false}` |

#### Example Input JSON:

```json
{
  "searchQueries": ["macbook air m2", "playstation 5"],
  "category": "informatica",
  "region": "lombardia",
  "minPrice": 300,
  "maxPrice": 900,
  "sortBy": "datedesc",
  "onlyShippable": true,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "groups": ["RESIDENTIAL"],
    "countryCode": "IT"
  }
}
```

***

### 📤 Output Data Format

The Actor pushes structured listing records to the Apify Default Dataset.

```json
{
  "id": "657932922",
  "urn": "id:ad:9de0b44e-6945-410f-ba1b-052bdaab69be:list:657932922",
  "title": "IPHONE 13 PRO MAX - 128GB",
  "description": "IPHONE 13 PRO MAX\nSpazio: 128GB\nBatteria: 84%...",
  "url": "https://www.subito.it/telefonia/iphone-13-pro-max-128gb-brescia-657932922.htm",
  "price": 499.0,
  "priceFormatted": "499 €",
  "currency": "EUR",
  "type": "In vendita",
  "typeKey": "s",
  "category": "Telefonia",
  "categoryId": "12",
  "categorySlug": "telefonia",
  "macroCategoryId": "9",
  "publishedAt": "2026-08-22T11:04:42.582+0200",
  "expiresAt": "2027-08-22T11:04:42.582+0200",
  "isShippable": true,
  "shippingCost": "10 €",
  "condition": "Ottimo - poco usato e ben conservato",
  "images": [
    "https://images.sbito.it/api/v1/sbt-ads-images-pro/images/47/47b5c4a2-3029-4679-9ffa-9a3aec20c8f1?rule=gallery-desktop-1x-auto",
    "https://images.sbito.it/api/v1/sbt-ads-images-pro/images/9a/9a47619b-ddd9-471d-8dc5-1e4233e906f3?rule=gallery-desktop-1x-auto"
  ],
  "location": {
    "region": "Lombardia",
    "regionId": "4",
    "regionSlug": "lombardia",
    "city": "Brescia",
    "cityCode": "BS",
    "town": "Brescia",
    "istat": "017029"
  },
  "advertiser": {
    "userId": "114023380",
    "name": "Mondo Moderno Store",
    "isCompany": true,
    "type": 2
  },
  "features": {
    "price": "499 €",
    "item_shipping_cost": "10 €",
    "item_condition": "Ottimo - poco usato e ben conservato",
    "item_shippable": "Sì",
    "phone_type": "Cellulari e Smartphone"
  }
}
```

# Actor input Schema

## `searchQueries` (type: `array`):

List of keywords/queries to search on Subito.it (e.g. \['iphone 15', 'macbook pro']).

## `startUrls` (type: `array`):

Direct Subito search or category URLs (e.g. https://www.subito.it/annunci-italia/vendita/usato/?q=iphone).

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

Filter listings by category.

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

Geographical region in Italy.

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

Minimum item price in Euros.

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

Maximum item price in Euros.

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

Order of the search results.

## `onlyShippable` (type: `boolean`):

If enabled, only listings available for shipping will be retrieved.

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

Maximum number of listings to scrape per search query or URL. Set to 0 for unlimited.

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

Select Apify Proxy (Residential recommended for high volume scraping) or provide custom proxies.

## Actor input object example

```json
{
  "searchQueries": [
    "iphone 15"
  ],
  "startUrls": [],
  "category": "all",
  "region": "all",
  "sortBy": "datedesc",
  "onlyShippable": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing scraped Subito.it listings.

# 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 = {
    "searchQueries": [
        "iphone 15"
    ],
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/subito-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 = {
    "searchQueries": ["iphone 15"],
    "startUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/subito-scraper").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 '{
  "searchQueries": [
    "iphone 15"
  ],
  "startUrls": []
}' |
apify call wyle/subito-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/3pMf98fZBa29tXYGJ/builds/ins4ZxGadnpR5HvSq/openapi.json
