{
  "openapi": "3.0.1",
  "info": {
    "title": "Subito.it Scraper — Ads, Prices & Sellers",
    "description": "Scrape Subito.it ads from any search URL or keyword + category + region: price, full description, condition, location, photos, seller, attributes. Cars, property, jobs, electronics.",
    "version": "0.1",
    "x-build-id": "uLUyyvkJnqe7rXYi2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~subito-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-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/tortuga~subito-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-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/tortuga~subito-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-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.it search or category pages with any filters and sort applied in the browser (e.g. https://www.subito.it/annunci-lombardia/vendita/auto/?q=golf), or single ad URLs. The page number in ?o= is respected as the starting page. Leave empty to use the search fields below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "What you would type in the Subito search box, e.g. \"iphone 14\", \"bicicletta elettrica\", \"golf 7\". Combine with the category, region, price and other fields below."
          },
          "category": {
            "title": "Category",
            "enum": [
              "usato",
              "auto",
              "moto-e-scooter",
              "accessori-auto",
              "veicoli-commerciali",
              "caravan-e-camper",
              "nautica",
              "appartamenti",
              "ville-singole-e-a-schiera",
              "uffici-locali-commerciali",
              "camere-posti-letto",
              "case-vacanza",
              "informatica",
              "telefonia",
              "audio-video",
              "fotografia",
              "videogiochi",
              "elettrodomestici",
              "arredamento-casalinghi",
              "giardino-fai-da-te",
              "abbigliamento-accessori",
              "bambini-giocattoli",
              "libri-riviste",
              "musica-film",
              "strumenti-musicali",
              "sport",
              "biciclette",
              "hobby-collezionismo",
              "animali",
              "accessori-per-animali",
              "offerte-lavoro",
              "cerco-lavoro",
              "annunci-vari"
            ],
            "type": "string",
            "description": "Restrict the search to one Subito category. Price, condition and seller-type filters are applied by the site inside a category; on 'All categories' the Actor applies them itself after reading each page.",
            "default": "usato"
          },
          "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": "Restrict the search to one Italian region, or all of Italy.",
            "default": "italia"
          },
          "province": {
            "title": "Province (optional)",
            "type": "string",
            "description": "A province inside the chosen region, as written on Subito: Milano, Roma, Torino, Forlì-Cesena. Needs a region to be selected."
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "vendita",
              "affitto",
              "regalo",
              "cerco"
            ],
            "type": "string",
            "description": "Ads for sale, for rent, given away or wanted.",
            "default": "vendita"
          },
          "titleOnly": {
            "title": "Search in titles only",
            "type": "boolean",
            "description": "Match the keyword in the ad title only, not in the description.",
            "default": false
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or above this amount."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or below this amount."
          },
          "conditions": {
            "title": "Item condition",
            "type": "array",
            "description": "Only ads in these conditions. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "excellent",
                "good",
                "damaged"
              ],
              "enumTitles": [
                "New (never used, in original packaging)",
                "Like new (perfect or refurbished)",
                "Excellent (barely used)",
                "Good (used but well kept)",
                "Damaged (used, faulty parts)"
              ]
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "",
              "private",
              "company"
            ],
            "type": "string",
            "description": "Only private sellers or only professional sellers (shops, dealers, agencies).",
            "default": ""
          },
          "shippableOnly": {
            "title": "Shipping available only",
            "type": "boolean",
            "description": "Only ads whose seller offers shipping.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "price_asc",
              "price_desc",
              "relevance"
            ],
            "type": "string",
            "description": "Result order. Newest first is the best choice for monitoring new ads. Start URLs keep the sort set in the URL.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads in total (across all searches). Keeps the cost predictable. Subito serves at most 9,000 ads per search (300 pages of 30), so split bigger searches by region, province, category or price range.",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Max items per search",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap for each start URL / search, useful when you run several searches in one run."
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this search returned and output only new ads or ads whose price changed. Use with a Schedule; unchanged ads are not charged. With this on, Max items is the number of ads checked per run (e.g. the newest 100).",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Subito answers Apify datacenter proxies (default, the cheapest): a result page carries 30 complete ads and moves about 0.4 MB. If Subito starts challenging datacenter IPs, the run switches itself to Apify residential proxies in Italy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}