{
  "openapi": "3.0.1",
  "info": {
    "title": "Subito Real Estate Scraper",
    "description": "Scrape subito.it real estate listings.",
    "version": "0.0",
    "x-build-id": "1y9vFJ48c0dZZssnn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~subito-realestate-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-subito-realestate-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/epicscrapers~subito-realestate-scraper/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-subito-realestate-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/epicscrapers~subito-realestate-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-subito-realestate-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 listing URLs, e.g. https://www.subito.it/annunci-lombardia/vendita/appartamenti/milano/milano/?ps=100000&pe=300000 or a single ad URL ending in .htm. Filters set on subito.it (price, surface, rooms, sort...) are kept. The filters below do not apply to URLs.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional words to search for (e.g. 'attico', 'villa con piscina'). Each keyword becomes a separate search with the filters below. Leave empty to get all listings that match the filters.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Italian comuni, provinces or regions, e.g. 'Milano', 'provincia di Roma', 'Toscana'. Each location is a separate search. A name that is both a comune and a province (e.g. 'Milano') means the comune; write 'provincia di Milano' for the whole province. Leave empty for all of Italy.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Leave empty for all real estate types.",
            "items": {
              "type": "string",
              "enum": [
                "appartamenti",
                "ville-singole-e-a-schiera",
                "loft-mansarde",
                "camere-posti-letto",
                "terreni-e-rustici",
                "garage-e-box",
                "case-vacanza",
                "uffici-locali-commerciali"
              ],
              "enumTitles": [
                "Apartments",
                "Villas / Single-family homes",
                "Lofts / Attics",
                "Rooms / Shared rooms",
                "Land / Rustic properties",
                "Garages / Parking spaces",
                "Holiday homes",
                "Offices / Commercial spaces"
              ]
            }
          },
          "adType": {
            "title": "Transaction type",
            "enum": [
              "s",
              "u",
              "h",
              "k"
            ],
            "type": "string",
            "description": "Sale, rent, holiday rental, or 'wanted' ads (people looking for a property). Rooms only have rent/wanted; holiday homes only holiday rental/wanted."
          },
          "advertiserType": {
            "title": "Seller type",
            "enum": [
              "",
              "private",
              "professional"
            ],
            "type": "string",
            "description": "Only private sellers, or only agencies / professionals."
          },
          "minPrice": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "For rentals this is the monthly rent."
          },
          "maxPrice": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "For rentals this is the monthly rent."
          },
          "minSurface": {
            "title": "Minimum surface (mq)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum property surface area in square meters."
          },
          "maxSurface": {
            "title": "Maximum surface (mq)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum property surface area in square meters."
          },
          "minRooms": {
            "title": "Minimum rooms (locali)",
            "minimum": 1,
            "maximum": 11,
            "type": "integer",
            "description": "Number of rooms (locali). 11 = more than 10."
          },
          "maxRooms": {
            "title": "Maximum rooms (locali)",
            "minimum": 1,
            "maximum": 11,
            "type": "integer",
            "description": "Number of rooms (locali). 11 = more than 10."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "4 = more than 3."
          },
          "minFloor": {
            "title": "Lowest floor",
            "enum": [
              "basement",
              "semi-basement",
              "raised",
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "above-7"
            ],
            "type": "string",
            "description": "Apartments, rooms, holiday homes and offices only."
          },
          "maxFloor": {
            "title": "Highest floor",
            "enum": [
              "basement",
              "semi-basement",
              "raised",
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "above-7"
            ],
            "type": "string",
            "description": "Apartments, rooms, holiday homes and offices only."
          },
          "minEnergyClass": {
            "title": "Minimum energy class",
            "enum": [
              "A4",
              "A3",
              "A2",
              "A1",
              "A+",
              "A",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G"
            ],
            "type": "string",
            "description": "Only listings with this energy class or better (e.g. C = A4 to C)."
          },
          "buildingConditions": {
            "title": "Building condition",
            "type": "array",
            "description": "Leave empty for any condition.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "excellent",
                "good",
                "to-renovate"
              ],
              "enumTitles": [
                "New build",
                "Excellent / renovated",
                "Good / habitable",
                "To renovate"
              ]
            }
          },
          "elevator": {
            "title": "Elevator",
            "type": "boolean",
            "description": "Only listings with an elevator."
          },
          "balcony": {
            "title": "Balcony",
            "type": "boolean",
            "description": "Only listings with a balcony."
          },
          "garden": {
            "title": "Garden",
            "type": "boolean",
            "description": "Only listings with a garden."
          },
          "furnished": {
            "title": "Furnished",
            "type": "boolean",
            "description": "Only furnished listings (rentals)."
          },
          "airConditioning": {
            "title": "Air conditioning",
            "type": "boolean",
            "description": "Only listings with air conditioning."
          },
          "availableNow": {
            "title": "Available now",
            "type": "boolean",
            "description": "Only listings available immediately."
          },
          "sortOrder": {
            "title": "Sort by",
            "enum": [
              "datedesc",
              "relevance",
              "priceasc",
              "pricedesc"
            ],
            "type": "string",
            "description": "Order of results. Also applies to keyword searches; URLs keep their own sort. Price sorts skip listings without a price."
          },
          "maxItemsPerQuery": {
            "title": "Maximum results per search",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listings per URL or keyword/location search. 0 = no limit (Subito returns at most 10,000 per search; split by location or price to get more).",
            "default": 100
          },
          "enrichPhone": {
            "title": "Phone numbers",
            "type": "boolean",
            "description": "Get the seller's phone number when the seller shows it (one extra request per listing).",
            "default": false
          },
          "enrichShop": {
            "title": "Shop details",
            "type": "boolean",
            "description": "Retrieve shop details (address, logo, website, listing count) for professional seller listings.",
            "default": false
          },
          "enrichUserAccount": {
            "title": "Seller account info",
            "type": "boolean",
            "description": "Retrieve the seller account's public information (badges, total listings count, date of first listing).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify proxy configuration.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}