{
  "openapi": "3.0.1",
  "info": {
    "title": "Immobiliare.it API & Scraper: Export Italian Listings & Prices",
    "description": "Scrape Immobiliare.it without login: homes, offices, shops and land for sale or rent in Italy by city, province or region, price, size and rooms, or by URL. Price per m2, address with coordinates, agency phones, photos; optional energy class and costs. Price-drop monitoring.",
    "version": "0.1",
    "x-build-id": "aQRtgNrzk0KexJd3O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~immobiliare-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-immobiliare-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/s_actors~immobiliare-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-immobiliare-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/s_actors~immobiliare-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-immobiliare-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": {
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Where to search, one per line: a city (\"Milano\", \"Roma\", \"Bologna\"), a province (\"provincia di Bergamo\") or a region (\"Lombardia\", \"Sicilia\"). One search per line with the filters below. Empty = all of Italy.",
            "items": {
              "type": "string"
            }
          },
          "contract": {
            "title": "For sale or for rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Listings for sale or listings for rent.",
            "default": "sale"
          },
          "category": {
            "title": "Kind of listing",
            "enum": [
              "all",
              "rooms",
              "new-developments"
            ],
            "type": "string",
            "description": "Homes, offices, shops, garages and land together (use \"Property types\" to pick some), rooms to rent, or new developments for sale.",
            "default": "all"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these types (with \"Homes, offices, shops, garages, land\"). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "attic",
                "independent-house",
                "villa",
                "terraced-house",
                "farmhouse",
                "loft",
                "building",
                "shop",
                "office",
                "garage",
                "building-land"
              ],
              "enumTitles": [
                "Apartment",
                "Attic",
                "Independent house",
                "Villa",
                "Terraced house",
                "Farmhouse (rustico)",
                "Loft",
                "Whole building",
                "Shop",
                "Office",
                "Garage / parking space",
                "Building land"
              ]
            }
          },
          "maxItems": {
            "title": "Listings per search or URL",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum listings for each place line and each search URL. Immobiliare.it lists at most 2 000 listings per search: above that the Actor splits the search by province, price and size on its own (up to 100 000).",
            "default": 100
          },
          "priceFrom": {
            "title": "Price from (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount (rent: per month)."
          },
          "priceTo": {
            "title": "Price up to (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount (rent: per month)."
          },
          "surfaceFrom": {
            "title": "Size from (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this living area."
          },
          "surfaceTo": {
            "title": "Size up to (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at most this living area."
          },
          "roomsFrom": {
            "title": "Rooms from",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at least this many rooms (locali)."
          },
          "roomsTo": {
            "title": "Rooms up to",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with at most this many rooms (locali)."
          },
          "bathrooms": {
            "title": "Bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with this number of bathrooms (the site filter)."
          },
          "excludeAuctions": {
            "title": "Without auctions",
            "type": "boolean",
            "description": "Leave out court auctions (aste).",
            "default": false
          },
          "elevator": {
            "title": "With elevator",
            "type": "boolean",
            "description": "Only listings with an elevator.",
            "default": false
          },
          "furnished": {
            "title": "Furnished",
            "type": "boolean",
            "description": "Only furnished listings.",
            "default": false
          },
          "garden": {
            "title": "With garden",
            "type": "boolean",
            "description": "Only listings with a garden.",
            "default": false
          },
          "garage": {
            "title": "With garage or parking",
            "type": "boolean",
            "description": "Only listings with a garage or box.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "price-asc",
              "price-desc",
              "surface-desc"
            ],
            "type": "string",
            "description": "Order of the results (it decides which listings come first when you take fewer than the search has).",
            "default": "relevance"
          },
          "startUrls": {
            "title": "Immobiliare.it URLs",
            "type": "array",
            "description": "Search URLs copied from your browser with your filters already set (www.immobiliare.it/vendita-case/milano/?prezzoMassimo=300000...), or listing URLs (www.immobiliare.it/annunci/123456789/). A search URL gives its listings, a listing URL gives one row with all details. The filters above do not apply to URLs; city, province and region URLs and the price, size, room and sort filters in the URL are used.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Add listing details",
            "type": "boolean",
            "description": "Open every listing page: full description, energy class and performance, building year, condominium and heating costs, availability, reference code, publication and update dates, surface breakdown, full feature list. Charged per listing with details; slower.",
            "default": false
          },
          "includeAgencyProfile": {
            "title": "Add agency profile",
            "type": "boolean",
            "description": "Open the agency page of every listing: street address, all phones (also mobile), opening hours, number of listings online. Each agency is read and charged once per run, however many of its listings you get.",
            "default": false
          },
          "findAgencyEmails": {
            "title": "Find agency emails",
            "type": "boolean",
            "description": "Look for an email on the website of each agency (the home page and up to two contact pages; the mail server of the address is checked) and add it to every listing of that agency. Turns on 'Add agency profile'. Charged once per agency with an email found in a run, as the 'Agency email' event; agencies without a website or email cost nothing.",
            "default": false
          },
          "onlyChanges": {
            "title": "Only new listings and price changes",
            "type": "boolean",
            "description": "The first run returns all listings and saves their prices. Every later run of the same search returns only new listings and listings whose price changed, with the previous price, the change and the change in %. Schedule the Actor (for example daily) to track the market.",
            "default": false
          },
          "priceDropsOnly": {
            "title": "Price drops only",
            "type": "boolean",
            "description": "Like the option above, but each later run returns only the listings that got cheaper. The first run saves the prices and returns nothing.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the saved prices apart for different schedules of the same search."
          },
          "maxConcurrency": {
            "title": "Parallel connections",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many Italian residential connections work at the same time (1-4). Each one opens a browser once; more = faster big runs, more browser sessions charged.",
            "default": 2
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry and search split.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}