{
  "openapi": "3.0.1",
  "info": {
    "title": "Subito.it Scraper & API: Italy Listings and Prices",
    "description": "Subito.it scraper and API: search Italian classifieds (annunci) by keyword, region, category and price, or paste a search URL. Get price, condition, comune, province, seller type, photos and attributes as JSON, CSV or Excel. Pay only per listing: empty or blocked runs are free.",
    "version": "0.1",
    "x-build-id": "dfs8SX3bsuy262L6r"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clover_engineer~subito-it-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clover_engineer-subito-it-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/clover_engineer~subito-it-scraper/runs": {
      "post": {
        "operationId": "runs-sync-clover_engineer-subito-it-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/clover_engineer~subito-it-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-clover_engineer-subito-it-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search, one search per line, e.g. \"iphone 13\" or \"bici da corsa\". Uses the region, category and filters below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Subito.it search URLs",
            "type": "array",
            "description": "Alternatively, paste search URLs copied from your browser, e.g. https://www.subito.it/annunci-lombardia/vendita/telefonia/?q=iphone. Their own filters are kept; the price, sort and shipping filters below are added on top.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "region": {
            "title": "Region",
            "enum": [
              "italia",
              "abruzzo",
              "basilicata",
              "calabria",
              "campania",
              "emilia-romagna",
              "friuli-venezia-giulia",
              "lazio",
              "liguria",
              "lombardia",
              "marche",
              "molise",
              "piemonte",
              "puglia",
              "sardegna",
              "sicilia",
              "toscana",
              "trentino-alto-adige",
              "umbria",
              "valle-d-aosta",
              "veneto"
            ],
            "type": "string",
            "description": "Region for keyword searches. \"italia\" = whole country.",
            "default": "italia"
          },
          "category": {
            "title": "Category",
            "enum": [
              "usato",
              "motori",
              "auto",
              "moto-e-scooter",
              "veicoli-commerciali",
              "caravan-e-camper",
              "nautica",
              "accessori-auto",
              "immobili",
              "appartamenti",
              "ville-singole-e-a-schiera",
              "uffici-locali-commerciali",
              "elettronica",
              "informatica",
              "telefonia",
              "audio-video",
              "fotografia",
              "casa-e-persona",
              "arredamento-casalinghi",
              "elettrodomestici",
              "giardino-fai-da-te",
              "abbigliamento-accessori",
              "sport",
              "biciclette",
              "libri-riviste",
              "musica-film",
              "strumenti-musicali",
              "hobby-collezionismo",
              "animali",
              "offerte-lavoro"
            ],
            "type": "string",
            "description": "Subito category slug for keyword searches. \"usato\" = all categories. Examples: telefonia, informatica, auto, moto-e-scooter, appartamenti, arredamento-casalinghi, biciclette, libri-riviste, elettrodomestici, abbigliamento-accessori.",
            "default": "usato"
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "vendita",
              "affitto",
              "cerco",
              "regalo"
            ],
            "type": "string",
            "description": "For sale (vendita), for rent (affitto), wanted (cerco) or free giveaway (regalo).",
            "default": "vendita"
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this. Works best with a specific category: on \"All categories\" Subito ignores price filters, so the actor filters the downloaded pages itself (slower, more pages read, but you still pay only for listings in range)."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this. Same note as Min price."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "datedesc",
              "relevance",
              "priceasc",
              "pricedesc"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "datedesc"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "company"
            ],
            "type": "string",
            "description": "Keep only private sellers or only companies (shops, dealers). Filtering happens after download, so you pay only for listings kept.",
            "default": "all"
          },
          "titleOnly": {
            "title": "Match keywords in title only",
            "type": "boolean",
            "description": "Search the title only, not the description (fewer false matches).",
            "default": false
          },
          "shippableOnly": {
            "title": "Shippable only",
            "type": "boolean",
            "description": "Only listings that offer shipping.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings (total)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings in total. 0 = no limit (Subito serves at most 3,000 listings per search).",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each search after this many listings. 0 = no per-search limit.",
            "default": 0
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "basic",
              "enhanced"
            ],
            "type": "string",
            "description": "Basic ($1 per 1,000 listings): direct requests, works for most runs. Enhanced ($3 per 1,000): every request goes through Apify residential proxy in Italy, for when Subito blocks basic mode.",
            "default": "basic"
          },
          "autoUpgradeOnBlock": {
            "title": "Auto-upgrade when blocked",
            "type": "boolean",
            "description": "If Subito blocks basic mode, continue the run through residential proxy and charge the listings fetched after the switch at the enhanced price ($3 instead of $1 per 1,000). Listings already fetched stay at the basic price. Turn off to never pay the enhanced price; a blocked run then stops early and you pay only for listings delivered.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Your own proxy (advanced)",
            "type": "object",
            "description": "Optional. Your own proxy URLs are used in basic mode and billed at the basic price. Choosing Apify Proxy here is the same as enhanced mode."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}