# Nybolig Denmark Real Estate Scraper (`datascrapers/nybolig-dk-scraper`) Actor

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.

- **URL**: https://apify.com/datascrapers/nybolig-dk-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 listings

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Nybolig Scraper** creates a structured dataset of property listings collected from Nybolig. Each dataset item can include the case number, address, city, price, and room count. Query the source with a postal code and property types, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![nybolig-dk-scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/nybolig-dk-scraper/nybolig-dk-scraper-value-demo.gif)](https://apify.com/datascrapers/nybolig-dk-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | nybolig.dk |
| Record unit | One property listing |
| Input methods | searchQueries, propertyTypes |
| Main identifiers | id, caseNumber |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $1.00 per 1,000 listings on the free plan |

### Coverage and available records

A postal-code search returns the listings Nybolig sends. The stored 8700 search includes Skovbrynet 77, 8700 Horsens, price 2895000, 4 rooms. caseNumber is N2500340001040.

Set extractDetails to charge listing-details. maxItems limits listings. The Actor does not enquire or make an offer.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| id | string | no | Listing id. Use this field to deduplicate. | SUNhc2U6NzY3NTc3 |
| caseNumber | string | yes | Nybolig case number. | N2500340001040 |
| url | string | yes | Listing URL. | https://www.nybolig.dk/villa/8700/skovbrynet/n250034/n2500340001040 |
| addressDisplayName | string | yes | Address line. | Skovbrynet 77, 8700 Horsens |
| street | string | yes | Street. | Skovbrynet 77 |
| city | string | yes | City. | Horsens |
| price | number | yes | Asking price. | 2895000 |
| rooms | number | yes | Room count. | 4 |
| livingSpace | number | yes | Living area when the source sends it. | |

### Example dataset record

```json
{
  "id": "SUNhc2U6NzY3NTc3",
  "caseNumber": "N2500340001040",
  "addressDisplayName": "Skovbrynet 77, 8700 Horsens",
  "city": "Horsens",
  "price": 2895000,
  "rooms": 4
}
```

This is a stored Horsens listing.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | empty | postal codes or places | Searches to run. |
| propertyTypes | array | no | empty | Villa, Condo, and other types | Property types. |
| extractDetails | boolean | no | false | true or false | Charge listing-details. |
| maxItems | integer | no | schema default | integer | Listing cap. |
| detailConcurrency | integer | no | schema default | positive integer | Parallel detail reads. |
| proxyConfiguration | object | no | Apify residential | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"searchQueries": ["8700"], "propertyTypes": ["Villa"], "maxItems": 5}
```

### Retrieve the data through the API

Start the Actor with JSON input, wait for the run, then read the default dataset.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/nybolig-dk-scraper").call(run_input={
    "searchQueries": ["8700"],
    "propertyTypes": ["Villa"],
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("caseNumber"), item.get("price"))
```

### Data quality and record handling

Deduplicate on id. price is the asking price on the listing. rooms can be absent. A later run can show a new price for the same id.

### Pricing and cost examples

Pay per event. dataset-item is $1.00 per 1,000 on Free, $0.90 on Bronze, $0.80 on Silver, and $0.70 on Gold. listing-details is $2.00, $1.80, $1.70, and $1.60 per 1,000. Platinum and Diamond use the Gold price. Apify platform usage is billed separately. Saving 1,000 listings without details costs $1.00 on Free, plus platform usage.

### Limitations and responsible data use

The Actor reads public listings. It does not contact an agent. Nybolig can change a price or withhold a search. Use the data in line with Nybolig terms.

### Dataset questions

#### What is one record?

One listing, keyed by id.

#### Which field should I use to deduplicate?

id.

#### When is listing-details charged?

When extractDetails is true and the detail payload is saved.

### Related datasets from Data Scrapers

- [RE/MAX Germany Scraper](https://apify.com/datascrapers/remax-scraper)
- [Hemnet Scraper](https://apify.com/datascrapers/hemnet-se-scraper)
- [Savills Property Scraper](https://apify.com/datascrapers/savills-scraper)
- [Daft Scraper](https://apify.com/datascrapers/daft-ie-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `startUrls` (type: `array`):

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.

## `searchQueries` (type: `array`):

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.

## `isRental` (type: `boolean`):

When enabled, search rental listings instead of homes for sale.

## `propertyTypes` (type: `array`):

Leave empty for all property types.

## `minPrice` (type: `integer`):

Minimum asking price in Danish kroner (sale). For rentals use Minimum Rent.

## `maxPrice` (type: `integer`):

Maximum asking price in Danish kroner (sale).

## `minRent` (type: `integer`):

Minimum monthly rent (used when Rental Listings is enabled).

## `maxRent` (type: `integer`):

Maximum monthly rent (used when Rental Listings is enabled).

## `minRooms` (type: `integer`):

Minimum number of rooms.

## `maxRooms` (type: `integer`):

Maximum number of rooms.

## `minSize` (type: `integer`):

Minimum living area in square meters.

## `maxSize` (type: `integer`):

Maximum living area in square meters.

## `minPlotSize` (type: `integer`):

Minimum plot/lot size in square meters.

## `maxPlotSize` (type: `integer`):

Maximum plot/lot size in square meters.

## `minBuiltYear` (type: `integer`):

Minimum construction year.

## `maxBuiltYear` (type: `integer`):

Maximum construction year.

## `minDaysForSale` (type: `integer`):

Minimum days the listing has been on the market.

## `maxDaysForSale` (type: `integer`):

Maximum days the listing has been on the market.

## `energyClassMin` (type: `string`):

Minimum energy label (best first). Leave empty for no minimum.

## `energyClassMax` (type: `string`):

Maximum energy label (worst). Leave empty for no maximum.

## `hasBalcony` (type: `boolean`):

Only include listings with a balcony.

## `hasElevator` (type: `boolean`):

Only include listings with an elevator.

## `petsAllowed` (type: `boolean`):

Only include listings where pets are allowed.

## `hasCharger` (type: `boolean`):

Only include listings with an EV charger.

## `includeSold` (type: `boolean`):

Include sold listings in results.

## `includeSaleInProgress` (type: `boolean`):

Include listings marked as sale in progress.

## `saleProjects` (type: `boolean`):

When true, only return new-build sale projects. Leave unset/false for normal listings.

## `rentalProjects` (type: `boolean`):

When true, only return rental projects. Leave unset/false for normal listings.

## `extractDetails` (type: `boolean`):

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.

## `detailConcurrency` (type: `integer`):

Maximum number of listings processed in parallel when detail extraction is enabled.

## `maxItems` (type: `integer`):

Maximum number of listings to scrape (0 = unlimited).

## `proxyConfiguration` (type: `object`):

Proxy settings. Residential proxy is recommended for reliable runs on Apify Cloud.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.nybolig.dk/soegeresultat-boliger?postalCodeRanges=8700,8700,8700+Horsens"
    }
  ],
  "searchQueries": [
    "8700"
  ],
  "isRental": false,
  "energyClassMin": "",
  "energyClassMax": "",
  "hasBalcony": false,
  "hasElevator": false,
  "petsAllowed": false,
  "hasCharger": false,
  "includeSold": false,
  "includeSaleInProgress": false,
  "saleProjects": false,
  "rentalProjects": false,
  "extractDetails": false,
  "detailConcurrency": 5,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

JSON array of scraped property listings

## `runStats` (type: `string`):

Aggregate run statistics including record counts and timestamps

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.nybolig.dk/soegeresultat-boliger?postalCodeRanges=8700,8700,8700+Horsens"
        }
    ],
    "searchQueries": [
        "8700"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/nybolig-dk-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": [{ "url": "https://www.nybolig.dk/soegeresultat-boliger?postalCodeRanges=8700,8700,8700+Horsens" }],
    "searchQueries": ["8700"],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/nybolig-dk-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.nybolig.dk/soegeresultat-boliger?postalCodeRanges=8700,8700,8700+Horsens"
    }
  ],
  "searchQueries": [
    "8700"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/nybolig-dk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascrapers/nybolig-dk-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MZwSbtw3WN2uwjSZ0/builds/Pn6ntTU8bft2qKtRU/openapi.json
