{
  "openapi": "3.0.1",
  "info": {
    "title": "home.dk Real Estate Scraper",
    "description": "Scrape Danish property listings from home.dk by search location, filters, or search/listing URLs. Optionally enrich each result with full listing details.",
    "version": "1.0",
    "x-build-id": "FTkyQekWyrcbplmcL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~home-dk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-home-dk-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/rigelbytes~home-dk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-home-dk-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/rigelbytes~home-dk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-home-dk-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 (priority)",
            "type": "array",
            "description": "Paste home.dk search result URLs (e.g. https://home.dk/soeg/?q=Aarhus&qfacet=addressFacetValues.municipality) or listing URLs (e.g. https://home.dk/salg/.../sag-6200002863/). When provided, these take priority over Search Locations and filter fields below. Search URL query params are converted to API filters automatically.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search Locations",
            "type": "array",
            "description": "Cities, municipalities, postal codes, or areas (e.g. Aarhus, 8000, København). Ignored when Start URLs are provided. Leave empty with no Start URLs to search nationwide using the filters below.",
            "items": {
              "type": "string"
            }
          },
          "forSale": {
            "title": "For Sale",
            "type": "boolean",
            "description": "Include properties for sale.",
            "default": true
          },
          "forRent": {
            "title": "For Rent",
            "type": "boolean",
            "description": "Include properties for rent.",
            "default": true
          },
          "propertyCategories": {
            "title": "Property Categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Leave empty for all property types.",
            "items": {
              "type": "string",
              "enum": [
                "Villa",
                "Condo",
                "TerracedHouse",
                "VillaApartment",
                "HousingCooperative",
                "FormerFarm",
                "AllotmentHut",
                "AllotmentPlot",
                "AllYearRoundPlot",
                "FarmHouse",
                "VillaWithCondoStatus",
                "TerracedHouseWithCondoStatus"
              ],
              "enumTitles": [
                "Villa",
                "Condo / apartment",
                "Terraced house",
                "Villa apartment",
                "Housing cooperative",
                "Former farm",
                "Allotment hut",
                "Allotment plot",
                "All-year plot",
                "Farm house",
                "Villa with condo status",
                "Terraced house with condo status"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum Sale Price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum cash price for sale listings."
          },
          "maxPrice": {
            "title": "Maximum Sale Price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum cash price for sale listings."
          },
          "minRent": {
            "title": "Minimum Monthly Rent (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum rent per month for rental listings."
          },
          "maxRent": {
            "title": "Maximum Monthly Rent (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum rent per month for rental listings."
          },
          "minFloorArea": {
            "title": "Minimum Floor Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum living area in square meters."
          },
          "maxFloorArea": {
            "title": "Maximum Floor Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum living area in square meters."
          },
          "minPlotArea": {
            "title": "Minimum Plot Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum plot/land area in square meters."
          },
          "maxPlotArea": {
            "title": "Maximum Plot Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum plot/land area in square meters."
          },
          "rooms": {
            "title": "Rooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by number of rooms (site facet values).",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5+"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4",
                "5+"
              ]
            }
          },
          "floors": {
            "title": "Floors in Building",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by building floors facet.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "3+"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "3+"
              ]
            }
          },
          "bathrooms": {
            "title": "Bathrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by bathrooms facet.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "2+"
              ],
              "enumTitles": [
                "1",
                "2",
                "2+"
              ]
            }
          },
          "minEnergyLabel": {
            "title": "Minimum Energy Label (best)",
            "enum": [
              "",
              "A2020",
              "A2015",
              "A2010",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G"
            ],
            "type": "string",
            "description": "Lower bound of the energy-label range (A2020 is best). Maps to home.dk energy codes 1000–1008.",
            "default": ""
          },
          "maxEnergyLabel": {
            "title": "Maximum Energy Label (worst)",
            "enum": [
              "",
              "A2020",
              "A2015",
              "A2010",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G"
            ],
            "type": "string",
            "description": "Upper bound of the energy-label range (G is worst).",
            "default": ""
          },
          "minYearBuilt": {
            "title": "Minimum Year Built",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum construction year."
          },
          "maxYearBuilt": {
            "title": "Maximum Year Built",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum construction year."
          },
          "minFloor": {
            "title": "Minimum Floor Level",
            "minimum": -1,
            "type": "integer",
            "description": "Minimum apartment/building floor."
          },
          "maxFloor": {
            "title": "Maximum Floor Level",
            "minimum": -1,
            "type": "integer",
            "description": "Maximum apartment/building floor."
          },
          "includeProjectCases": {
            "title": "Include Project Cases",
            "type": "boolean",
            "description": "Include project-case tagged listings (m:ipc on search URLs).",
            "default": false
          },
          "includeLuxurious": {
            "title": "Include Luxurious",
            "type": "boolean",
            "description": "Include luxurious tagged listings (m:il on search URLs).",
            "default": false
          },
          "isBusinessCase": {
            "title": "Business Cases Only",
            "type": "boolean",
            "description": "When true, only business cases. When false (default), private homes.",
            "default": false
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "default",
              "priceAsc",
              "priceDesc",
              "areaAsc",
              "areaDesc",
              "dateAsc",
              "dateDesc"
            ],
            "type": "string",
            "description": "Sort order for search results. Ignored when Start URLs include their own sort.",
            "default": "default"
          },
          "extractDetails": {
            "title": "Extract Listing Details",
            "type": "boolean",
            "description": "When enabled, fetches the full listing for each result (description, energy label, rooms, broker email, economics, media, etc.) and charges the separate listing-details event.",
            "default": false
          },
          "detailConcurrency": {
            "title": "Detail Request Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum parallel detail requests when Extract Listing Details is enabled.",
            "default": 5
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape (0 = unlimited).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Residential proxy is recommended for reliable runs on Apify Cloud.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}