# Hemnet Scraper: Swedish Homes and Sold Prices (`reventadata/hemnet-scraper`) Actor

Hemnet listings in Sweden as one table: homes for sale, or sold homes with final price, sale date and change against asking price. Get address, SEK prices, fees, rooms, areas, coordinates and broker and agency names.

- **URL**: https://apify.com/reventadata/hemnet-scraper.md
- **Developed by:** [reventadata](https://apify.com/reventadata) (community)
- **Categories:** Real estate, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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

Learn more: https://docs.apify.com/actors/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

## Hemnet Scraper: Swedish Homes for Sale and Sold Prices

> **Unofficial.** This Actor is not affiliated with, authorised by, endorsed by, or in any
> way officially connected to Hemnet. "Hemnet" is a trademark of its respective owner and is
> used here only to describe what this tool reads. It reads the same public pages a browser does.

Hemnet Scraper turns Hemnet search results into a clean table: homes for sale in Sweden, or homes already sold with their final price.

### What does it do?

Give it one or more places and it returns, for each home on Hemnet's public search pages: address, area, housing type, asking price, monthly fee, rooms, living and plot area, coordinates, the broker and brokerage, labels, thumbnails, and for sold homes the sale date, final price and the change against the asking price. Houses, apartments or every type; for sale or sold.

### Why use it?

- **Both sides of the market:** current listings and sold prices from one Actor, one row shape.
- **Numbers, not text:** prices, fees, areas and rooms come as numbers (SEK, square meters), with a flag when the price is on request.
- **Public data only:** broker and brokerage names the site shows are in the rows; nothing from behind a login.
- **Proxy handled for you:** the default settings are ready to run.

### How to use it

1. Add one or more entries to `locations`: a Hemnet location id, a place name as written in hemnet.se links (such as `stockholms-lan` or `malmo-kommun`), or a pasted hemnet.se search link.
2. Pick `For sale` or `Sold`, a housing type and an optional maximum price.
3. Set `maxItems` and run. Download the dataset as JSON, CSV, Excel or NDJSON.

Each search returns at most 2,500 homes (50 pages of 50). For a bigger area, search by municipality or district, or split by `maxPrice`. Homes from neighbouring areas that Hemnet adds after the exact matches are included; the `locationDescription` column shows where each one is.

#### Input

| Field | Type | Description |
|---|---|---|
| `searchType` | string | `forSale` (default) or `sold`. |
| `locations` | array | Location ids, place names as in hemnet.se links, or pasted hemnet.se search links. Required. |
| `housingType` | string | `any` (default), `villa` (houses) or `bostadsratt` (apartments). |
| `maxPrice` | integer | Maximum asking price in SEK. |
| `maxItems` | integer | Maximum homes saved (default 100). |

#### Sample input

```json
{
    "searchType": "forSale",
    "locations": ["17744"],
    "housingType": "villa",
    "maxItems": 10
}
```

#### Output

Each dataset item contains the fields below. Fields that do not apply (for example `finalPrice` on a for-sale home) are `null`.

| Field | Type | Description |
|---|---|---|
| `id`, `url` | string | Hemnet id and link to the listing. |
| `searchType` | string | `forSale` or `sold`. |
| `address`, `locationDescription` | string | Street address; area and municipality. |
| `housingForm`, `housingFormCode` | string | Housing type name and code. |
| `askingPrice`, `finalPrice` | number | SEK. `finalPrice` is set on sold homes. |
| `priceOnRequest`, `priceFrom` | boolean | Price shown as "on request"; price is a starting price. |
| `priceChangePercent` | number | Sold homes: final against asking price, in percent. |
| `monthlyFee`, `pricePerSquareMeter` | number | SEK. |
| `rooms`, `livingAreaM2`, `supplementalAreaM2`, `plotAreaM2` | number | Rooms and areas. |
| `floor` | string | Floor, as printed. |
| `latitude`, `longitude` | number | Coordinates. |
| `description` | string | Start of the listing text. |
| `labels`, `imageUrls`, `showings` | array | Card labels, thumbnails, showing dates. |
| `brokerName`, `agencyName`, `agencyLogoUrl`, `brokerPhotoUrl` | string | Broker and brokerage. |
| `publishedAt`, `isUpcoming`, `isNewConstruction`, `projectId` | mixed | For-sale homes only. |
| `listingId`, `soldAt`, `soldAtLabel` | string | Sold homes only. |
| `searchLocationId`, `scrapedAt` | string | Which location found the home; when it was saved. |

#### Sample output

```json
{
    "id": "21578791",
    "url": "https://www.hemnet.se/bostad/villa-5rum-nynashamn-centralt-nynashamns-kommun-frejgatan-11-21578791",
    "searchType": "forSale",
    "address": "Frejgatan 11",
    "locationDescription": "Nynäshamn centralt, Nynäshamns kommun",
    "housingForm": "Villa",
    "askingPrice": 3995000,
    "currency": "SEK",
    "rooms": 5,
    "livingAreaM2": 90,
    "supplementalAreaM2": 30,
    "plotAreaM2": 1308,
    "brokerName": "Magnus Hallgren",
    "agencyName": "Notar",
    "searchLocationId": "17744",
    "scrapedAt": "2026-11-18T09:00:00Z"
}
```

### Pricing

Pay-per-event: **$0.001 per home** saved to the dataset (**$1.00 per 1,000 homes**), plus **$0.00005**
charged once when the run starts. No subscription. Each home is saved once, so repeats are not charged.

### Privacy & Compliance

This Actor reads only publicly accessible pages and returns the public data they show. It sends no login.
Broker and brokerage names are public on the listing and are part of the rows.

# Actor input Schema

## `searchType` (type: `string`):

Homes currently for sale, or homes already sold with their final price.

## `locations` (type: `array`):

Where to search. Each entry is a numeric Hemnet location id (for example 17744 for Stockholms län), a place name as written in hemnet.se links (for example stockholms-lan or malmo-kommun), or a pasted hemnet.se search link that carries location ids. One search runs per entry and repeated homes are saved once. Each search returns at most 2,500 homes, so use a municipality or a maxPrice band for big areas.

## `housingType` (type: `string`):

Limit the search to houses (villa) or apartments (bostadsratt), or read every type.

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

Only homes up to this asking price in Swedish kronor. Leave empty for no limit.

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

Stop after this many homes are saved to the dataset.

## Actor input object example

```json
{
  "searchType": "forSale",
  "locations": [
    "17744"
  ],
  "housingType": "villa",
  "maxItems": 10
}
```

# Actor output Schema

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

Homes read from Hemnet.

# 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 = {
    "locations": [
        "17744"
    ],
    "housingType": "villa",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("reventadata/hemnet-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 = {
    "locations": ["17744"],
    "housingType": "villa",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("reventadata/hemnet-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 '{
  "locations": [
    "17744"
  ],
  "housingType": "villa",
  "maxItems": 10
}' |
apify call reventadata/hemnet-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,reventadata/hemnet-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/gnGmfEGTDLk6gUjNb/builds/dhtwKZbQCNeKorLx6/openapi.json
