{
  "openapi": "3.0.1",
  "info": {
    "title": "Boligsiden.dk Scraper",
    "description": "Scrape Danish real estate listings from Boligsiden.dk — for sale, sold, and rental properties with pricing, details, and history.",
    "version": "1.0",
    "x-build-id": "bh00fdksvxETbcYib"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rigelbytes~boligsiden-dk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rigelbytes-boligsiden-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~boligsiden-dk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rigelbytes-boligsiden-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~boligsiden-dk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rigelbytes-boligsiden-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": {
          "searchType": {
            "title": "Search Type",
            "enum": [
              "tilsalg",
              "solgte",
              "leje"
            ],
            "type": "string",
            "description": "Which section of Boligsiden.dk to scrape",
            "default": "tilsalg"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Location search text — city, municipality (e.g. København, Aarhus), neighborhood (e.g. Nørrebro), zip code (e.g. 2100), or street name (e.g. Strandvejen). Resolved via the Boligsiden location API. Leave empty to search all of Denmark."
          },
          "addressTypes": {
            "title": "Property Types",
            "type": "array",
            "description": "Filter by property types (leave empty for all)",
            "items": {
              "type": "string",
              "enum": [
                "villa",
                "condo",
                "terraced_house",
                "holiday_house",
                "cooperative",
                "farm",
                "hobby_farm",
                "full_year_plot",
                "villa_apartment",
                "holiday_plot",
                "houseboat",
                "room"
              ],
              "enumTitles": [
                "Villa / House",
                "Condominium / Apartment",
                "Terraced House",
                "Holiday House",
                "Cooperative",
                "Farm",
                "Hobby Farm",
                "Full Year Plot",
                "Villa Apartment",
                "Holiday Plot",
                "Houseboat",
                "Room"
              ]
            }
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "timeOnMarket",
              "price",
              "createdAt",
              "soldDate",
              "area",
              "distance",
              "random"
            ],
            "type": "string",
            "description": "How to sort the results (note: only timeOnMarket, price, and random work for tilsalg; price, timeOnMarket, and soldDate for solgte; createdAt for leje)"
          },
          "sortAscending": {
            "title": "Sort Ascending",
            "type": "boolean",
            "description": "Sort from lowest to highest (false = highest to lowest)",
            "default": false
          },
          "minPrice": {
            "title": "Min Price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in Danish Kroner"
          },
          "maxPrice": {
            "title": "Max Price (DKK)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in Danish Kroner"
          },
          "minArea": {
            "title": "Min Living Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum living area in square meters"
          },
          "maxArea": {
            "title": "Max Living Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum living area in square meters"
          },
          "minLotArea": {
            "title": "Min Lot Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum lot/plot area in square meters"
          },
          "maxLotArea": {
            "title": "Max Lot Area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum lot/plot area in square meters"
          },
          "minRooms": {
            "title": "Min Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of rooms"
          },
          "maxRooms": {
            "title": "Max Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of rooms"
          },
          "minYearBuilt": {
            "title": "Min Year Built",
            "minimum": 1600,
            "maximum": 2030,
            "type": "integer",
            "description": "Earliest construction year"
          },
          "maxYearBuilt": {
            "title": "Max Year Built",
            "minimum": 1600,
            "maximum": 2030,
            "type": "integer",
            "description": "Latest construction year"
          },
          "maxDaysOnMarket": {
            "title": "Max Days on Market",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties listed for at most this many days"
          },
          "maxDaysSincePriceDrop": {
            "title": "Max Days Since Price Drop",
            "minimum": 0,
            "type": "integer",
            "description": "Only properties with a price reduction within this many days"
          },
          "hasOpenHouse": {
            "title": "Has Open House",
            "type": "boolean",
            "description": "Only properties with scheduled open house viewings",
            "default": false
          },
          "hasBalcony": {
            "title": "Has Balcony",
            "type": "boolean",
            "description": "Only properties with a balcony",
            "default": false
          },
          "hasTerrace": {
            "title": "Has Terrace",
            "type": "boolean",
            "description": "Only properties with a terrace",
            "default": false
          },
          "hasElevator": {
            "title": "Has Elevator",
            "type": "boolean",
            "description": "Only properties with an elevator in the building",
            "default": false
          },
          "registrationTypes": {
            "title": "Registration Types",
            "type": "array",
            "description": "Filter sold properties by registration type (normal, auction, family transfer, etc.)",
            "items": {
              "type": "string",
              "enum": [
                "normal",
                "family",
                "auction",
                "sole_owner",
                "company",
                "sold",
                "new_construction"
              ],
              "enumTitles": [
                "Normal Sale",
                "Family Transfer",
                "Auction / Foreclosure",
                "Sole Owner",
                "Company",
                "Sold",
                "New Construction"
              ]
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of listings to scrape (0 = unlimited)",
            "default": 0
          },
          "maxPages": {
            "title": "Max Pages",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of search result pages to scrape (0 = unlimited)",
            "default": 0
          },
          "enrichDetails": {
            "title": "Enrich With Stats & Timeline",
            "type": "boolean",
            "description": "Fetch listing details (images, buildings, description, realtor ratings), stats (page views, favourites, clicks), and price timeline for each listing",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many listings to enrich in parallel when enrichDetails is enabled (1–50). Higher values are faster but use more proxy bandwidth.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for anti-bot protection",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}