{
  "openapi": "3.0.1",
  "info": {
    "title": "Immobiliare.it Scraper - Italy Property Listings",
    "description": "Collect Italian sale and rental listings, project units and agency profiles from Immobiliare.it. Export prices, locations and published contacts. Pay per delivered row plus a start fee.",
    "version": "0.5",
    "x-build-id": "Or5qjmsoz0iPMXbh8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~immobiliare-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-immobiliare-property-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/lentic_clockss~immobiliare-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-immobiliare-property-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/lentic_clockss~immobiliare-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-immobiliare-property-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": "Immobiliare.it search, listing or agency profile URLs. Each URL has its own maxItems limit; search URLs override location, channel and property categories.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Italian city, e.g. milano, roma, torino, napoli or firenze. Used when no start URL is given. If you fill in neither, the Actor runs a short example search for firenze."
          },
          "channel": {
            "title": "Channel",
            "enum": [
              "BUY",
              "RENT"
            ],
            "type": "string",
            "description": "BUY (vendita) or RENT (affitto). Used when building searches from location. Some categories are sale-only (e.g. nuove-costruzioni).",
            "default": "RENT"
          },
          "propertyType": {
            "title": "Property type (single)",
            "enum": [
              "case",
              "appartamenti",
              "attici",
              "case-indipendenti",
              "loft",
              "rustici",
              "ville",
              "villette",
              "uffici",
              "negozi",
              "garage",
              "garage-posti-auto",
              "palazzi",
              "attivita",
              "magazzini",
              "capannoni",
              "stanze",
              "terreni",
              "nuove-costruzioni",
              "all"
            ],
            "type": "string",
            "description": "One property category, ignored when propertyTypes is nonempty. Select all for primary categories without separate residential subtypes.",
            "default": "case"
          },
          "propertyTypes": {
            "title": "Property types (multi)",
            "type": "array",
            "description": "Property categories to search, each with its own maxItems limit; overrides propertyType. Select all for primary categories without separate residential subtypes.",
            "items": {
              "type": "string",
              "enum": [
                "case",
                "appartamenti",
                "attici",
                "case-indipendenti",
                "loft",
                "rustici",
                "ville",
                "villette",
                "uffici",
                "negozi",
                "garage",
                "garage-posti-auto",
                "palazzi",
                "attivita",
                "magazzini",
                "capannoni",
                "stanze",
                "terreni",
                "nuove-costruzioni",
                "all"
              ]
            },
            "default": []
          },
          "maxItems": {
            "title": "Max rows per URL or category",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum listing, unit and agency rows per URL or category (1–500), collected in parts when needed; aliases are maxResults and limit. Default 70; the run is also capped by your maximum total charge and, on the Free plan, 200 rows per run and 10 runs of this Actor.",
            "default": 70
          },
          "scrapeDetails": {
            "title": "Scrape detail pages",
            "type": "boolean",
            "description": "Try listing detail pages for more property details and agency contacts. A listing whose page cannot be read keeps its search-results data; missing source fields remain empty.",
            "default": false
          },
          "includeRaw": {
            "title": "Developer test data",
            "type": "boolean",
            "description": "Leave off. Used only by the developer for testing.",
            "default": false
          },
          "includeUnits": {
            "title": "Include project units",
            "type": "boolean",
            "description": "Add separate, billed unit rows for properties within project listings. Listing and unit rows share each input's maxItems limit.",
            "default": false
          },
          "allowEmptyResults": {
            "title": "Allow empty results",
            "type": "boolean",
            "description": "Allow the run to succeed with zero rows when the search has no matching inventory. Collection errors still fail.",
            "default": true
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount in euros (monthly rent for RENT). Leave empty for no lower bound."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount in euros (monthly rent for RENT). Leave empty for no upper bound."
          },
          "minSurface": {
            "title": "Minimum surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this surface area in square metres."
          },
          "maxSurface": {
            "title": "Maximum surface (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at most this surface area in square metres."
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings with at least this many rooms."
          },
          "maxRooms": {
            "title": "Maximum rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings with at most this many rooms."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings with at least this many bathrooms."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "price",
              "date",
              "surface"
            ],
            "type": "string",
            "description": "Order of search results. Leave empty for the site's default (relevance)."
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Ascending or descending order for sortBy."
          },
          "monitorMode": {
            "title": "Monitor changes",
            "type": "boolean",
            "description": "Compare this run with the previous run of the same watch and deliver only new listings and price changes. Rows gain changeType, previousPrice, priceDirection and priceDropPercent. The snapshot is kept in a named key-value store in your account.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "pattern": "^[A-Za-z0-9_-]{0,64}$",
            "type": "string",
            "description": "Name of the monitored search, so several searches can be tracked separately. Letters, digits, hyphens and underscores.",
            "default": "default"
          },
          "includeUnchanged": {
            "title": "Include unchanged listings",
            "type": "boolean",
            "description": "With monitoring on, also deliver (and bill) listings whose price did not change, marked changeType unchanged.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Reset monitoring state",
            "type": "boolean",
            "description": "Forget the saved snapshot for this watch before comparing, so every listing counts as new.",
            "default": false
          },
          "requestDelayMillis": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Delay between collection requests in milliseconds, from 0 to 20000. Keep the default unless you need a longer pause.",
            "default": 2000
          },
          "workerBaseUrl": {
            "title": "Developer test setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing.",
            "default": ""
          },
          "provider": {
            "title": "Collection option",
            "enum": [
              "auto",
              "patchright",
              "wsapp"
            ],
            "type": "string",
            "description": "Leave at auto for standard searches across the supported categories. The App data option (wsapp) supports case searches and the optional listing selectors below, but not other categories or residential subtypes.",
            "default": "auto"
          },
          "wsappEnum": {
            "title": "Optional listing selector",
            "enum": [
              "list",
              "markers",
              "latest",
              "agency"
            ],
            "type": "string",
            "description": "With provider set to wsapp, choose list for search results, markers for map-based selection, latest for newest listings, or agency for one agency's inventory. The agency option requires agencyId.",
            "default": "list"
          },
          "agencyId": {
            "title": "Agency ID for inventory",
            "pattern": "^$|^[0-9]+$",
            "type": "string",
            "description": "Numeric agency ID for the agency listing selector, for example 51157. Used only with provider set to wsapp and wsappEnum set to agency.",
            "default": ""
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}