{
  "openapi": "3.0.1",
  "info": {
    "title": "Subito.it Scraper",
    "description": "Scrape classified ads from Subito.it by search query or URL, with website-matching filters and optional listing-detail enrichment.",
    "version": "1.0",
    "x-build-id": "8B0u9gpMZaMIb6mjc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~subito-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-subito-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/rigelbytes~subito-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-subito-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/rigelbytes~subito-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-subito-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Subito search, category, or listing URLs. When set, these are used instead of search queries and form filters. e.g. https://www.subito.it/annunci-italia/vendita/usato/?q=iphone or a listing .htm URL.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords to search on Subito (e.g. iPhone, Audi Q3). Ignored when Start URLs are provided.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search query (single)",
            "type": "string",
            "description": "Optional single keyword. Prefer Search queries for multiple terms. Ignored when Start URLs are provided."
          },
          "category": {
            "title": "Category",
            "enum": [
              "0",
              "2",
              "5",
              "3",
              "36",
              "22",
              "34",
              "4",
              "7",
              "43",
              "29",
              "30",
              "31",
              "32",
              "33",
              "8",
              "26",
              "50",
              "42",
              "25",
              "10",
              "44",
              "11",
              "40",
              "12",
              "14",
              "37",
              "15",
              "16",
              "17",
              "23",
              "100",
              "19",
              "38",
              "39",
              "20",
              "41",
              "21",
              "28"
            ],
            "type": "string",
            "description": "Subito category, matching the website. Leave as Tutte le categorie to search everything.",
            "default": "0"
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "s",
              "u",
              "g",
              "k",
              "h"
            ],
            "type": "string",
            "description": "Tipo di annuncio.",
            "default": "s"
          },
          "region": {
            "title": "Region",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "20"
            ],
            "type": "string",
            "description": "Italian region. Leave empty for all of Italy.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "datedesc",
              "priceasc",
              "pricedesc"
            ],
            "type": "string",
            "description": "Result order.",
            "default": "datedesc"
          },
          "minPrice": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in euros."
          },
          "maxPrice": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in euros."
          },
          "titleOnly": {
            "title": "Search in title only",
            "type": "boolean",
            "description": "Ricerca solo nel titolo.",
            "default": false
          },
          "shippingAvailable": {
            "title": "Shipping available",
            "type": "boolean",
            "description": "Only ads with shipping (Spedizione disponibile).",
            "default": false
          },
          "urgentOnly": {
            "title": "Urgent only",
            "type": "boolean",
            "description": "Only urgent ads.",
            "default": false
          },
          "advertiserType": {
            "title": "Seller type",
            "enum": [
              "",
              "0,2",
              "1"
            ],
            "type": "string",
            "description": "Inserzionista: private or verified dealer.",
            "default": ""
          },
          "carBrand": {
            "title": "Car brand",
            "enum": [
              "",
              "002409",
              "000083",
              "000161",
              "000085",
              "000091",
              "000018",
              "000013",
              "000008",
              "000039",
              "000147",
              "000122",
              "000110",
              "000144",
              "000746",
              "000034",
              "000140",
              "000117",
              "000145",
              "000033",
              "002222",
              "000148",
              "000149",
              "000020",
              "000151",
              "000027",
              "000062",
              "000053",
              "000094",
              "002259",
              "000155",
              "002749",
              "000103",
              "000101",
              "000098"
            ],
            "type": "string",
            "description": "Marca (Auto category). Matches the website brand list.",
            "default": ""
          },
          "carModel": {
            "title": "Car model",
            "type": "string",
            "description": "Modello. Enter the model name or Subito model code (e.g. Q3)."
          },
          "vehicleStatus": {
            "title": "Vehicle condition",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Condizioni del veicolo.",
            "default": ""
          },
          "minMileage": {
            "title": "Min mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum kilometers. Mapped to Subito's mileage dropdown."
          },
          "maxMileage": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum kilometers. Mapped to Subito's mileage dropdown."
          },
          "minYear": {
            "title": "Min registration year",
            "minimum": 1970,
            "maximum": 2030,
            "type": "integer",
            "description": "Anno di immatricolazione da."
          },
          "maxYear": {
            "title": "Max registration year",
            "minimum": 1970,
            "maximum": 2030,
            "type": "integer",
            "description": "Anno di immatricolazione a."
          },
          "newDriversOnly": {
            "title": "For new drivers",
            "type": "boolean",
            "description": "Per neopatentati.",
            "default": false
          },
          "minPowerCv": {
            "title": "Min power (CV)",
            "minimum": 0,
            "type": "integer",
            "description": "Potenza minima in CV."
          },
          "maxPowerCv": {
            "title": "Max power (CV)",
            "minimum": 0,
            "type": "integer",
            "description": "Potenza massima in CV."
          },
          "fuel": {
            "title": "Fuel",
            "type": "array",
            "description": "Carburante. Select one or more fuels.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "6",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13"
              ],
              "enumTitles": [
                "Benzina",
                "Diesel",
                "Gpl",
                "Elettrica",
                "Ibrida",
                "Mild Hybrid Benzina",
                "Mild Hybrid Diesel",
                "Full Hybrid Benzina",
                "Full Hybrid Diesel",
                "PHEV - Ibrido Plug-in Benzina",
                "PHEV - Ibrido Plug-in Diesel"
              ]
            }
          },
          "emissionClass": {
            "title": "Emission class",
            "type": "array",
            "description": "Classe emissioni.",
            "items": {
              "type": "string",
              "enum": [
                "13",
                "12",
                "11",
                "10",
                "9",
                "8",
                "7",
                "6",
                "5",
                "4",
                "3",
                "2"
              ],
              "enumTitles": [
                "Euro 6e",
                "Euro 6d",
                "Euro 6d-TEMP",
                "Euro 6c",
                "Euro 6b",
                "Euro 6a",
                "Euro 6",
                "Euro 5",
                "Euro 4",
                "Euro 3",
                "Euro 2",
                "Euro 1"
              ]
            }
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "10"
            ],
            "type": "string",
            "description": "Carrozzeria.",
            "default": ""
          },
          "color": {
            "title": "Color",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10"
            ],
            "type": "string",
            "description": "Colore.",
            "default": ""
          },
          "gearbox": {
            "title": "Gearbox",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Cambio.",
            "default": ""
          },
          "doors": {
            "title": "Doors",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Porte.",
            "default": ""
          },
          "minSeats": {
            "title": "Min seats",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Posti da."
          },
          "maxSeats": {
            "title": "Max seats",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Posti a."
          },
          "equipment": {
            "title": "Equipment",
            "type": "array",
            "description": "Equipaggiamento. Select extras such as ABS, Bluetooth, or parking sensors.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "19",
                "22",
                "23",
                "27",
                "29",
                "32",
                "33",
                "42",
                "43",
                "59",
                "65",
                "68",
                "70",
                "71"
              ],
              "enumTitles": [
                "360° camera",
                "4 ruote sterzanti",
                "ABS",
                "Adaptive cruise control",
                "Airbag conducente",
                "Airbag laterali",
                "Airbag passeggero",
                "Airbag per le ginocchia",
                "Airbag testa",
                "Alzacristalli elettrici posteriori",
                "Alzacristalli elettrici",
                "Antifurto",
                "Appoggiatesta posteriori",
                "Assistente attivo mantenimento traiettoria",
                "Autoradio",
                "Bluetooth",
                "Bracciolo sedili anteriori",
                "Cerchi in lega",
                "Chiusura centralizzata",
                "Climatizzatore",
                "Cruise control",
                "ESP",
                "Fari LED",
                "Fari Xenon",
                "Keyless entry",
                "Monitoraggio angolo cieco",
                "Sensori di parcheggio assistito posteriori",
                "Sistema Navigazione",
                "Telecamera per parcheggio assistito",
                "Tetto panoramico",
                "Tettuccio apribile"
              ]
            }
          },
          "vatDeductible": {
            "title": "VAT exposed",
            "type": "boolean",
            "description": "Iva esposta.",
            "default": false
          },
          "qualityCertified": {
            "title": "Quality certified",
            "type": "boolean",
            "description": "Only cars with a quality certificate.",
            "default": false
          },
          "includeListingDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Visit each ad page to extract shop address, hours, website, and extra attributes. Charges a second pay-per-event (listing-details) per successful enrichment. Requests run in parallel and rotate the proxy.",
            "default": false
          },
          "detailsConcurrency": {
            "title": "Details concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many listing-detail requests to run at once (each uses a rotated proxy).",
            "default": 10
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape (0 = unlimited).",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. European / Italian residential proxies are recommended. Leave Apify Proxy off to run without a proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IT"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}