{
  "openapi": "3.0.1",
  "info": {
    "title": "ImmoScout24 Scraper - Germany, Austria & Spain Property",
    "description": "Collect property listings from ImmoScout24 Germany and Austria, Fotocasa, and Habitaclia in Spain. Get prices, rooms, areas, agency details, and photos; pay per delivered row plus a start fee.",
    "version": "0.7",
    "x-build-id": "Emh06NufmLcO1duEc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~immobilienscout24-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-immobilienscout24-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~immobilienscout24-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-immobilienscout24-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~immobilienscout24-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-immobilienscout24-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": "Search or listing URLs from immobilienscout24.de, immobilienscout24.at, fotocasa.es, or habitaclia.com; subdomains are accepted. Search URLs take precedence over location and select the portal; use search URLs for Habitaclia.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Place name, such as Berlin, Kreuzberg, Berlin, Wien, or Madrid; existing location paths are also accepted. Leave all target fields empty for a 10-row example in Berlin, or Wien or Madrid when another country is selected."
          },
          "listingIds": {
            "title": "Listing IDs",
            "type": "array",
            "description": "Optional portal listing or expose IDs to collect directly, one per line. Used when no start URLs are supplied.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country / market",
            "enum": [
              "DE",
              "AT",
              "ES",
              "HABITACLIA"
            ],
            "type": "string",
            "description": "Choose DE for Germany, AT for Austria, ES for Fotocasa in Spain, or HABITACLIA for Habitaclia in Spain. The portal in startUrls takes precedence. Switzerland (immoscout24.ch) is not supported.",
            "default": "DE"
          },
          "market": {
            "title": "Spain site (when country=ES)",
            "enum": [
              "fotocasa",
              "habitaclia"
            ],
            "type": "string",
            "description": "Choose fotocasa or habitaclia for Spain, or leave empty to use Fotocasa when country is ES. The portal can also be selected by startUrls or country set to HABITACLIA."
          },
          "channel": {
            "title": "Channel",
            "enum": [
              "BUY",
              "RENT"
            ],
            "type": "string",
            "description": "Choose BUY for properties for sale or RENT for rentals when searching by location. Search URLs supply their own search filters.",
            "default": "BUY"
          },
          "propertyType": {
            "title": "Property type / category",
            "enum": [
              "apartment",
              "home",
              "house",
              "apartment_or_house",
              "plot",
              "garage",
              "parking",
              "shared_room",
              "short_term",
              "foreclosure",
              "investment",
              "penthouse",
              "duplex",
              "studio",
              "office",
              "retail",
              "industrial",
              "hospitality",
              "other_commercial",
              "commercial",
              "building",
              "storage",
              "all_listings",
              "wohnung",
              "haus",
              "wohnung-oder-haus",
              "grundstueck",
              "all"
            ],
            "type": "string",
            "description": "Choose a property category; availability depends on the country and sale or rental channel. Habitaclia does not support garage, parking, or shared_room; unsupported category combinations fail validation even when URLs are supplied.",
            "default": "apartment"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest price in the portal's currency (EUR). Leave empty for no lower limit."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Highest price in the portal's currency (EUR). Leave empty for no upper limit."
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Smallest living or usable area in square metres. Leave empty for no lower limit."
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Largest living or usable area in square metres. Leave empty for no upper limit."
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 0,
            "type": "number",
            "description": "Fewest rooms; half rooms such as 2.5 are allowed. Leave empty for no lower limit."
          },
          "maxRooms": {
            "title": "Maximum rooms",
            "minimum": 0,
            "type": "number",
            "description": "Most rooms; half rooms such as 3.5 are allowed. Leave empty for no upper limit."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc"
            ],
            "type": "string",
            "description": "Order of search results. Leave empty for the portal's default order. Habitaclia does not support area sorting."
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only keep listings published on or after this point: an ISO date (YYYY-MM-DD) or an ISO-8601 timestamp. Leave empty for no date limit."
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Keep only listings the portal marks as new.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings per input",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum listing rows for each start URL, or for the location when no URL is supplied; default 70, with larger requests collected in parts of at most 70. Detail enrichment adds no extra rows; the run shares your maximum cost limit, and Free-plan users are limited to 200 rows per run and 10 runs total.",
            "default": 70
          },
          "maxPages": {
            "title": "Max search pages (compatibility only)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Retained for compatibility; this setting does not limit paging. Use maxItems to set the number of rows requested for each input.",
            "default": 3
          },
          "scrapeDetails": {
            "title": "Scrape detail pages",
            "type": "boolean",
            "description": "Add detail-page information to the same listing rows where the portal supports it (Germany, Austria, Fotocasa), without extra billed rows. Habitaclia search results already carry structured contact and address fields directly.",
            "default": true
          },
          "requestDelayMillis": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Delay in milliseconds between page requests. The default is 2000 milliseconds.",
            "default": 2000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}