Scraper APISubito.it
subito.search
The classified listings on a Subito.it search page: title, price, condition, place, category, details, photos and whether a shop sells it.
- Id
subito.search- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/subito.search/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
query | string | What to search for, e.g. iphone 13. Leave out to list a category.Limit: at most 120 characters. |
region | string | The region as Subito writes it in its addresses: italia (all of Italy), lombardia, lazio, emilia-romagna, valle-d-aosta, ...Default: "italia". |
category | string | The category as Subito writes it in its addresses, e.g. usato (every category of goods), telefonia, auto, appartamenti, informatica, arredamento-casalinghi.Limit: at most 60 characters. Default: "usato". |
kind | "for_sale" | "to_rent" | "wanted" | "holiday_rental" | Listings for sale, to rent, wanted, or holiday rentals.Default: "for_sale". |
url | string | Instead of the fields above: the address of a Subito search page, e.g. https://www.subito.it/annunci-lazio/affitto/appartamenti/roma/, with the filters it carries. Its page number is replaced by page.Limit: at most 600 characters. |
page | integer | The results page, 30 listings a page.Limit: 1 to 100. Default: 1. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
position | integer or null | The listing's place on the search page, from 1; null on a listing's own page. |
page | integer or null | The search page it was on; null on a listing's own page. |
listing_id | string | Subito's number of the listing (the number at the end of its address). |
url | string | The listing's page on subito.it. |
title | string | The listing's title. |
text | string or null | The listing's text, as the seller wrote it. |
kind | string or null | The kind of listing as the page writes it: In vendita (for sale), In affitto (to rent), Cerco (wanted), In affitto per vacanze. |
category | string or null | The category as the page names it, e.g. Telefonia, Auto, Appartamenti. |
category_id | string or null | Subito's id of the category. |
published_at | string (date-time) or null | When the listing was published or last renewed, in Italian time. |
price | number or null | The price in euros; null when the listing gives none. |
price_text | string or null | The price as the page writes it, e.g. 480 €. |
condition | string or null | The condition as the page writes it, e.g. Ottimo - poco usato e ben conservato; null when not given. |
shipping | boolean or null | True when the seller ships the item; null when not said. |
shipping_cost | number or null | The shipping cost in euros, when the listing states one. |
region | string or null | The region, e.g. Lombardia. |
province | string or null | The province, e.g. Milano. |
province_code | string or null | The province's two-letter code, e.g. MI. |
town | string or null | The town (comune), e.g. Milano. |
professional_seller | boolean | True when the seller is a professional seller with a shop on Subito. |
shop_name | string or null | A professional seller's shop name as the page shows it; null for a private seller, who is not named. |
features | array of object | Every detail of the listing the page lists (rooms, mileage, year, size, ...), as written. |
key (in features[]) | string | Subito's name of the detail, e.g. /item_condition, /mileage_scalar, /rooms. |
label (in features[]) | string or null | The detail's label as the page writes it, in Italian, e.g. Condizione. |
value (in features[]) | string or null | Its value as the page writes it, e.g. Ottimo - poco usato e ben conservato, 480 €; several are joined with , . |
images | array of string | The listing's photos, largest form. |
fetched_at | string (date-time) | When the page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/subito.search/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"query":"iphone"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("subito.search", {"query": "iphone"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("subito.search", { query: "iphone" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "subito.search", map[string]any{"query": "iphone"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("subito.search", Map.of("query", "iphone"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run subito.search --input query=iphoneInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"query": "iphone"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "subito.search",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"query": "iphone"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"position": 1,
"page": 1,
"listing_id": "669042309",
"url": "https://www.subito.it/telefonia/iphone-14-pro-max-512gb-nero-scatola-e-cover-belluno-669042309.htm",
"title": "iPhone 14 Pro Max 512GB Nero + Scatola e Cover",
"text": "Vendo iPhone 14 Pro Max da 512 GB in colorazione Nero Siderale (Space Black), tenuto con la massima cura e perfettamente funzionante in ogni sua parte.\nIl telefono presenta una capacità di archiviazione altissima (512 GB), ideale per chi … [truncated]",
"kind": "In vendita",
"category": "Telefonia",
"category_id": "12",
"published_at": "2026-11-19T19:54:04+01:00",
"price": 480,
"price_text": "480 €",
"condition": "Ottimo - poco usato e ben conservato",
"shipping": true,
"shipping_cost": 0.99,
"region": "Veneto",
"province": "Belluno",
"province_code": "BL",
"town": "Belluno",
"professional_seller": false,
"shop_name": null,
"features": [
{
"key": "/item_shippable",
"label": "Disponibile alla spedizione",
"value": "Sì"
},
{
"key": "/item_shipping_cost_tuttosubito",
"label": "Costo della spedizione",
"value": "0,99 €"
}
],
"images": [
"https://images.sbito.it/api/v1/sbt-ads-images-pro/images/2b/2b002f11-6070-4df5-83c0-cee7248d7bb4?rule=fullscreen-1x-auto",
"https://images.sbito.it/api/v1/sbt-ads-images-pro/images/32/32133279-b107-409f-9fd2-058b4482cdd7?rule=fullscreen-1x-auto",
"https://images.sbito.it/api/v1/sbt-ads-images-pro/images/ae/aec82fb9-9448-42ac-ad58-49e7af9ee3f3?rule=fullscreen-1x-auto"
],
"fetched_at": "2026-11-19T19:55:48.453383Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
text: 936 characters, the first 237 shown. - Shortened:
features: 9 items, the first 2 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Subito.it scrapers are in their own section there.