Search Subito.it ads
Subito.it (Italy) classified ads for a keyword with category, region, province, town, ad type, price, seller type, shipping, title-only and sort. Each result has price, condition, every listed feature, photos, location (region, province, town), posting and expiry dates and, for businesses, the shop. applied_filters echoes what the site applied. Private sellers' names, phone numbers and email addresses are never returned (masked in ad text).
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
q | string | Keywords. Example: iphone |
category | string | Subito category id (2 Auto, 3 Moto, 7 Appartamenti, 10 Informatica, 12 Telefonia, 14 Arredamento, 41 Biciclette). Example: 12 |
region | string | Region id (4 Lombardia, 5 Veneto, 8 Toscana, 11 Lazio, 13 Abruzzo, 15 Campania, 20 Sicilia). Example: 4 |
province | string | Province id (e.g. 3 Milano within Lombardia). |
town | string | Town ISTAT code. |
type | sale | wanted | rent | wanted_rent | gift | Ad type. |
price_min | string | Minimum price (EUR). |
price_max | string | Maximum price (EUR). |
seller_type | private | business | private or business. |
shipping | string | true: only ads with shipping. |
title_only | string | true: match keywords in titles only. |
urgent | string | true: only urgent ads. |
sort | relevance | newest | price_asc | price_desc | Sort order. |
limit | integer | Results per page (max 100, default 30). |
page | integer | Results page, 1 for the first. Pass back next_page; null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/subito/v1/search?q=iphone" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/subito/v1/search",
params={"q": "iphone"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/subito/v1/search");
url.searchParams.set("q", "iphone");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).