{
  "openapi": "3.0.1",
  "info": {
    "title": "Nybolig Denmark Real Estate Scraper",
    "description": "Scrape property listings from Nybolig.dk (Denmark). Search by zip code, free text, filters, or result/listing URLs. Optionally fetch full listing details including description, photo gallery, and broker contact.",
    "version": "1.0",
    "x-build-id": "RNQ9zc9lqGav4JW2G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~nybolig-dk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-nybolig-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~nybolig-dk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-nybolig-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~nybolig-dk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-nybolig-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": "Nybolig Search or Listing URLs",
            "type": "array",
            "description": "Paste Nybolig search result URLs (e.g. https://www.nybolig.dk/soegeresultat-boliger?postalCodeRanges=8700,8700,8700+Horsens) or listing URLs (e.g. https://www.nybolig.dk/villa/2680/granvaenget/n260097/n2600970000488). Search URL query parameters are used as filters. Listing URLs scrape those specific properties.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Danish zip codes (e.g. 8700) or free-text location queries (e.g. Horsens, København). Zip codes use the postal-code filter; other text uses Nybolig free-text search.",
            "items": {
              "type": "string"
            }
          },
          "isRental": {
            "title": "Rental Listings",
            "type": "boolean",
            "description": "When enabled, search rental listings instead of homes for sale.",
            "default": false
          },
          "propertyTypes": {
            "title": "Property Types",
            "uniqueItems": true,
            "type": "array",
            "description": "Leave empty for all property types.",
            "items": {
              "type": "string",
              "enum": [
                "Villa",
                "TerracedHouse",
                "Condo",
                "VacationHousing",
                "HousingCooperative",
                "VillaApartment",
                "FarmHouse",
                "AllYearRoundPlot",
                "VacationPlot"
              ],
              "enumTitles": [
                "Villa",
                "Rækkehus (terraced)",
                "Ejerlejlighed (condo)",
                "Fritidsbolig (holiday home)",
                "Andelsbolig (cooperative)",
                "Villalejlighed",
                "Landejendom (farm)",
                "Helårsgrund (plot)",
                "Fritidsgrund (holiday plot)"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum Price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price in Danish kroner (sale). For rentals use Minimum Rent."
          },
          "maxPrice": {
            "title": "Maximum Price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price in Danish kroner (sale)."
          },
          "minRent": {
            "title": "Minimum Rent (DKK/month)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum monthly rent (used when Rental Listings is enabled)."
          },
          "maxRent": {
            "title": "Maximum Rent (DKK/month)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum monthly rent (used when Rental Listings is enabled)."
          },
          "minRooms": {
            "title": "Minimum Rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of rooms."
          },
          "maxRooms": {
            "title": "Maximum Rooms",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of rooms."
          },
          "minSize": {
            "title": "Minimum Living Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum living area in square meters."
          },
          "maxSize": {
            "title": "Maximum Living Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum living area in square meters."
          },
          "minPlotSize": {
            "title": "Minimum Plot Size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum plot/lot size in square meters."
          },
          "maxPlotSize": {
            "title": "Maximum Plot Size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum plot/lot size in square meters."
          },
          "minBuiltYear": {
            "title": "Minimum Build Year",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum construction year."
          },
          "maxBuiltYear": {
            "title": "Maximum Build Year",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum construction year."
          },
          "minDaysForSale": {
            "title": "Minimum Days for Sale",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum days the listing has been on the market."
          },
          "maxDaysForSale": {
            "title": "Maximum Days for Sale",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum days the listing has been on the market."
          },
          "energyClassMin": {
            "title": "Minimum Energy Class",
            "enum": [
              "",
              "A2020",
              "A2015",
              "A2010",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G"
            ],
            "type": "string",
            "description": "Minimum energy label (best first). Leave empty for no minimum.",
            "default": ""
          },
          "energyClassMax": {
            "title": "Maximum Energy Class",
            "enum": [
              "",
              "A2020",
              "A2015",
              "A2010",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G"
            ],
            "type": "string",
            "description": "Maximum energy label (worst). Leave empty for no maximum.",
            "default": ""
          },
          "hasBalcony": {
            "title": "Has Balcony",
            "type": "boolean",
            "description": "Only include listings with a balcony.",
            "default": false
          },
          "hasElevator": {
            "title": "Has Elevator",
            "type": "boolean",
            "description": "Only include listings with an elevator.",
            "default": false
          },
          "petsAllowed": {
            "title": "Pets Allowed",
            "type": "boolean",
            "description": "Only include listings where pets are allowed.",
            "default": false
          },
          "hasCharger": {
            "title": "Has EV Charger",
            "type": "boolean",
            "description": "Only include listings with an EV charger.",
            "default": false
          },
          "includeSold": {
            "title": "Include Sold",
            "type": "boolean",
            "description": "Include sold listings in results.",
            "default": false
          },
          "includeSaleInProgress": {
            "title": "Include Sale in Progress",
            "type": "boolean",
            "description": "Include listings marked as sale in progress.",
            "default": false
          },
          "saleProjects": {
            "title": "Sale Projects Only",
            "type": "boolean",
            "description": "When true, only return new-build sale projects. Leave unset/false for normal listings.",
            "default": false
          },
          "rentalProjects": {
            "title": "Rental Projects Only",
            "type": "boolean",
            "description": "When true, only return rental projects. Leave unset/false for normal listings.",
            "default": false
          },
          "extractDetails": {
            "title": "Extract Listing Details",
            "type": "boolean",
            "description": "When enabled, fetches full listing details for each result (description, full photo gallery, financials, broker contact). Charges an extra listing-details event per enriched listing.",
            "default": false
          },
          "detailConcurrency": {
            "title": "Detail Request Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of listings processed in parallel when detail extraction is enabled.",
            "default": 5
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape (0 = unlimited).",
            "default": 0
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}