# Hemnet Property Scraper (`crawlerbros/hemnet-property-scraper`) Actor

Scrape Hemnet.se, Sweden's largest real estate portal. Extract property listings for sale and recently sold homes in Stockholm, Göteborg, Malmö and any Swedish city. Get prices, rooms, size, broker info, coordinates and more.

- **URL**: https://apify.com/crawlerbros/hemnet-property-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Real estate, Developer tools, Automation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Hemnet Property Scraper

Extract Swedish real estate listings from **Hemnet.se** — Sweden's largest property portal. Scrape active listings for sale, recently sold properties, and enrich specific listing URLs with full details including prices, room counts, broker information, GPS coordinates, and more.

### What data is extracted

- **Listing ID and URL** — direct link to the Hemnet listing
- **Address, Area, Municipality and County**
- **Asking price** in SEK (Swedish Kronor)
- **Price per sqm** (SEK/sqm)
- **Monthly fee** (monthly HOA/BRF fee)
- **Property type** — Villa, Lägenhet, Radhus, Kedjehus, Fritidshus, Tomt, Gård
- **Rooms** — number of rooms (e.g. 2, 3.5, 4)
- **Living area** (sqm)
- **Land area** (sqm, for houses)
- **Floor** (for apartments)
- **Build year**
- **Broker name, agency and phone number**
- **Listing date** (ISO 8601)
- **Sold date and sold price** (for recently sold)
- **Price change** (% difference from asking to sold)
- **GPS coordinates** (latitude/longitude)
- **Days on market**
- **New construction flag**
- **Images** — thumbnail and all listing photos
- **Description**

### Input parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | Select | `searchForSale` (default), `searchRecentlySold`, or `byListingUrls` |
| `location` | Text | City/area to search, e.g. "Stockholm", "Göteborg", "Malmö" |
| `propertyType` | Multi-select | Filter by property type (villa, lägenhet, radhus, etc.) |
| `minPrice` | Integer | Minimum asking price in SEK |
| `maxPrice` | Integer | Maximum asking price in SEK |
| `minRooms` | Number | Minimum number of rooms (e.g. 2.0) |
| `maxRooms` | Number | Maximum number of rooms |
| `minSize` | Integer | Minimum living area in sqm |
| `maxSize` | Integer | Maximum living area in sqm |
| `startUrls` | URL list | Specific Hemnet listing URLs (for `byListingUrls` mode) |
| `maxItems` | Integer | Maximum records to emit (default 50, max 5000) |

### Example output

```json
{
  "listingId": "21271169",
  "url": "https://www.hemnet.se/bostad/villa-11rum-surte-ale-kommun-goteborgsvagen-50a-21271169",
  "address": "Göteborgsvägen 50A",
  "area": "Surte",
  "municipality": "Ale kommun",
  "county": "Västra Götalands län",
  "price": 6995000,
  "propertyType": "Villa",
  "rooms": 11.0,
  "size": 310,
  "landArea": 933,
  "broker": "Johan Eriksson",
  "brokerAgency": "Svensk Fastighetsförmedling Ale",
  "brokerPhone": "+46733123518",
  "listingDate": "2026-05-13",
  "buildYear": 1962,
  "daysOnMarket": 2,
  "newProduction": false,
  "latitude": 57.82419308512239,
  "longitude": 12.015539313970697,
  "imageUrl": "https://bilder.hemnet.se/images/itemgallery_cut/2b/05/2b05c63518f1f9ee593a996c862148a0.jpg",
  "recordType": "hemnetListing",
  "scrapedAt": "2026-05-15T12:00:00+00:00"
}
````

### Recently sold example

```json
{
  "listingId": "21648964",
  "url": "https://www.hemnet.se/salda/bostad/villa-6rum-surte-...",
  "address": "Hyttmästaregränd 5",
  "area": "Surte",
  "municipality": "Ale kommun",
  "price": 4695000,
  "soldPrice": 4800000,
  "soldDate": "2026-04-05",
  "priceChange": 2,
  "propertyType": "Villa",
  "rooms": 6.0,
  "size": 126,
  "landArea": 597,
  "brokerAgency": "Fastighetsbyrån Ale",
  "latitude": 57.8281503035,
  "longitude": 12.0201615518,
  "recordType": "hemnetListing",
  "scrapedAt": "2026-05-15T12:00:00+00:00"
}
```

### FAQ

**Q: What locations can I search?**
A: Any Swedish city, neighbourhood, municipality or county. Common examples: Stockholm, Göteborg, Malmö, Uppsala, Västerås, Örebro, Linköping, Helsingborg, Jönköping, Norrköping.

**Q: How many listings can I scrape?**
A: Up to 5,000 listings per run (Hemnet shows a maximum of 2,500 results per search page). For large cities, use price/size filters to narrow results.

**Q: What property types are supported?**
A: Villa (detached house), Lägenhet (apartment), Radhus (townhouse), Kedjehus (semi-detached), Fritidshus (vacation/summer house), Tomt & Mark (land/plot), Gård & Skog (farm/forest property).

**Q: Can I get broker phone numbers?**
A: Yes, in `byListingUrls` mode and with search enrichment, broker phone numbers are extracted from the detail page.

**Q: Are prices in SEK or another currency?**
A: All prices are in Swedish Kronor (SEK). Exchange rate conversion is not performed.

**Q: How does recently sold differ from for sale?**
A: Recently sold listings include `soldDate`, `soldPrice`, and `priceChange` (percentage difference from asking to sold price) instead of `listingDate`.

**Q: Does this work for all Swedish cities?**
A: Yes — Hemnet covers all of Sweden. The location lookup API handles cities, municipalities, and regions.

**Q: Is the data real-time?**
A: Data reflects what is currently live on Hemnet.se at the time of the scrape.

# Actor input Schema

## `mode` (type: `string`):

What to scrape: active listings for sale, recently sold properties, or enrich specific listing URLs.

## `location` (type: `string`):

City, area or municipality to search in (e.g. Stockholm, Göteborg, Malmö, Uppsala). Used with searchForSale and searchRecentlySold modes.

## `propertyType` (type: `array`):

Filter by property type. Use values: villa, lagenhet, radhus, kedjehus, fritidshus, tomt, gard. Leave empty for all types.

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

Minimum asking price in Swedish Kronor (SEK).

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

Maximum asking price in Swedish Kronor (SEK).

## `minRooms` (type: `number`):

Minimum number of rooms (e.g. 2, 3.5).

## `maxRooms` (type: `number`):

Maximum number of rooms.

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

Minimum living area in square metres.

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

Maximum living area in square metres.

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

List of Hemnet listing URLs to enrich. Example: https://www.hemnet.se/bostad/villa-5rum-stockholm-...

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

Maximum number of listings to emit.

## Actor input object example

```json
{
  "mode": "searchForSale",
  "location": "Stockholm",
  "propertyType": [],
  "startUrls": [],
  "maxItems": 50
}
```

# Actor output Schema

## `listings` (type: `string`):

Dataset containing all scraped Hemnet property listings.

# 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 = {
    "mode": "searchForSale",
    "location": "Stockholm",
    "propertyType": [],
    "startUrls": [],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/hemnet-property-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 = {
    "mode": "searchForSale",
    "location": "Stockholm",
    "propertyType": [],
    "startUrls": [],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/hemnet-property-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mode": "searchForSale",
  "location": "Stockholm",
  "propertyType": [],
  "startUrls": [],
  "maxItems": 50
}' |
apify call crawlerbros/hemnet-property-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/hemnet-property-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Hemnet Property Scraper",
        "description": "Scrape Hemnet.se, Sweden's largest real estate portal. Extract property listings for sale and recently sold homes in Stockholm, Göteborg, Malmö and any Swedish city. Get prices, rooms, size, broker info, coordinates and more.",
        "version": "1.0",
        "x-build-id": "9pdVtHNQt1e98zsW2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~hemnet-property-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-hemnet-property-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/crawlerbros~hemnet-property-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-hemnet-property-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/crawlerbros~hemnet-property-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-hemnet-property-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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "searchForSale",
                            "searchRecentlySold",
                            "byListingUrls"
                        ],
                        "type": "string",
                        "description": "What to scrape: active listings for sale, recently sold properties, or enrich specific listing URLs.",
                        "default": "searchForSale"
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City, area or municipality to search in (e.g. Stockholm, Göteborg, Malmö, Uppsala). Used with searchForSale and searchRecentlySold modes.",
                        "default": "Stockholm"
                    },
                    "propertyType": {
                        "title": "Property type",
                        "type": "array",
                        "description": "Filter by property type. Use values: villa, lagenhet, radhus, kedjehus, fritidshus, tomt, gard. Leave empty for all types.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "minPrice": {
                        "title": "Min price (SEK)",
                        "minimum": 0,
                        "maximum": 100000000,
                        "type": "integer",
                        "description": "Minimum asking price in Swedish Kronor (SEK)."
                    },
                    "maxPrice": {
                        "title": "Max price (SEK)",
                        "minimum": 0,
                        "maximum": 100000000,
                        "type": "integer",
                        "description": "Maximum asking price in Swedish Kronor (SEK)."
                    },
                    "minRooms": {
                        "title": "Min rooms",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "number",
                        "description": "Minimum number of rooms (e.g. 2, 3.5)."
                    },
                    "maxRooms": {
                        "title": "Max rooms",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "number",
                        "description": "Maximum number of rooms."
                    },
                    "minSize": {
                        "title": "Min living area (sqm)",
                        "minimum": 0,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Minimum living area in square metres."
                    },
                    "maxSize": {
                        "title": "Max living area (sqm)",
                        "minimum": 0,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum living area in square metres."
                    },
                    "startUrls": {
                        "title": "Start URLs (mode=byListingUrls)",
                        "type": "array",
                        "description": "List of Hemnet listing URLs to enrich. Example: https://www.hemnet.se/bostad/villa-5rum-stockholm-...",
                        "default": [],
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of listings to emit.",
                        "default": 50
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
