# Hemnet Scraper — Swedish Property Listings & Sold Prices (`hipersoft/hemnet-scraper`) Actor

Scrape Swedish property listings and sold-price history from Hemnet: address, asking or sold price, size, rooms, price per m², broker, coordinates and listing URL. Search any Swedish location and export one clean row per property as JSON, CSV or Excel. For real-estate research, valuation and n8n.

- **URL**: https://apify.com/hipersoft/hemnet-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Categories:** Real estate, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0015 / listing scraped

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Scraper — Swedish Property Listings & Sold Prices

Scrape Swedish property data from **Hemnet** into clean, structured JSON, CSV or Excel. Search any Swedish **city, municipality, county or district** and pull both **for-sale listings** (asking prices) and **sold-price history** (final sale prices) — **address, price, living area, rooms, price per m², broker, coordinates and the listing URL** — one tidy row per property. Built for real-estate research, valuation, market analysis and automations.

### Features

- 🏠 **For-sale listings** — every active listing for your chosen area: asking price, size, rooms, broker and more.
- 💰 **Sold prices** — Hemnet's sold-price history with the **final sale price** and **sale date** for closed deals.
- 🔎 **Search by place name** — just type a Swedish location (e.g. `Stockholm`, `Göteborg`, `Malmö`, `Östermalm`) and it resolves the right area automatically.
- 🔗 **Paste a Hemnet URL** — already have a search open? Paste its URL and the area is picked up for you.
- 🎛️ **Filters** — narrow by price, number of rooms and living area.
- 📍 **Coordinates** — latitude and longitude for every property, ready for mapping and geo analysis.
- 📐 **Price per m²** — square-metre pricing included for quick comparisons.
- 📄 **Volume control** — set `maxItems` to balance coverage and cost.

### Input

```json
{
  "location": "Stockholm",
  "listingType": "forsale",
  "priceMin": 2000000,
  "priceMax": 6000000,
  "roomsMin": 2,
  "maxItems": 100
}
```

| Field | Description |
| --- | --- |
| `location` | Swedish place to search — city, municipality (kommun), county (län) or district. You can also paste a Hemnet search URL. |
| `listingType` | `forsale` for active listings (asking prices) or `sold` for sold-price history (final prices + sale dates). |
| `locationIds` | Optional. Exact Hemnet numeric location IDs; overrides `location` when set. |
| `priceMin` / `priceMax` | Optional. Price range in Swedish kronor (SEK). |
| `roomsMin` / `roomsMax` | Optional. Room-count range. |
| `livingAreaMin` / `livingAreaMax` | Optional. Living-area range in m². |
| `maxItems` | Maximum properties to collect (0 = no limit). |

#### How to search

Type any Swedish location into `location` and run. To target a very specific area, open [hemnet.se](https://www.hemnet.se), run a search, then paste the result-page URL into `location` — or read the numeric location ID from the URL and put it in `locationIds`.

### Use cases

- Build and refresh a Swedish property dataset for market and price analysis.
- Track sold prices by area for valuation and comparable-sales (comps) research.
- Monitor new for-sale listings in target neighbourhoods.
- Generate broker and agency lead lists by location.
- Feed structured property records into a CRM, spreadsheet or analytics pipeline.

### What you get

Each property is one dataset record. A for-sale example:

```json
{
  "id": "21755834",
  "listingType": "forsale",
  "type": "Lägenhet",
  "streetAddress": "Vapengatan 8",
  "area": "Aspudden",
  "municipality": "Stockholms kommun",
  "askingPrice": 3495000,
  "askingPriceFormatted": "3 495 000 kr",
  "soldPrice": null,
  "soldPriceFormatted": null,
  "soldDate": null,
  "livingArea": 44,
  "rooms": 2,
  "pricePerM2": "79 432 kr/m²",
  "brokerAgency": "Svensk Fastighetsförmedling Hägersten-Liljeholmen",
  "broker": null,
  "latitude": 59.30624,
  "longitude": 17.99659,
  "url": "https://www.hemnet.se/bostad/lagenhet-2rum-aspudden-stockholms-kommun-vapengatan-8-21755834",
  "publishedAt": "2026-08-01T12:00:00.000Z"
}
```

A sold example carries `soldPrice` and `soldDate` instead of an asking price.

#### Output schema

| Field | Type | Description |
|---|---|---|
| `id` | string | Hemnet's unique identifier for the property. |
| `listingType` | string | `forsale` or `sold`. |
| `type` | string | Housing form (e.g. `Lägenhet`, `Villa`). |
| `streetAddress` | string | Street address as shown on the listing. |
| `area` | string | Area / district name (for-sale listings). |
| `municipality` | string | Municipality (kommun). |
| `askingPrice` | integer | Asking price in SEK (for-sale). |
| `askingPriceFormatted` | string | Asking price as displayed. |
| `soldPrice` | integer | Final sale price in SEK (sold). |
| `soldPriceFormatted` | string | Final sale price as displayed. |
| `soldDate` | string | Date the property was sold (ISO). |
| `livingArea` | number | Living area in m². |
| `rooms` | number | Number of rooms. |
| `pricePerM2` | string | Price per square metre as displayed. |
| `brokerAgency` | string | Broker agency name. |
| `broker` | string | Broker name where shown. |
| `latitude` | number | Latitude of the property. |
| `longitude` | number | Longitude of the property. |
| `url` | string (URL) | Direct link to the property on Hemnet. |
| `publishedAt` | string | When the listing was published / the sale date (ISO). |

### Related Actors

- [Rightmove Scraper](https://apify.com/hipersoft/rightmove-scraper)
- [Redfin Scraper](https://apify.com/hipersoft/redfin-scraper)
- [Crexi Scraper](https://apify.com/hipersoft/crexi-scraper)
- [PropertyGuru Scraper](https://apify.com/hipersoft/propertyguru-scraper)

### FAQ

**Do I need a Hemnet account?**
No. Just enter a location and run.

**Can I get sold prices?**
Yes. Set `listingType` to `sold` to collect Hemnet's sold-price history — the final sale price and sale date for closed deals.

**How many properties can I collect?**
As many as your search returns. Use `maxItems` to control the volume and cost.

**What export formats are supported?**
JSON, CSV, Excel and XML, plus the Apify API for programmatic access.

**Can I use this with n8n?**
Yes. Use the [Apify node for n8n](https://docs.apify.com/platform/integrations/n8n) to run this Actor and pull its dataset straight into an n8n workflow — trigger it on a schedule, then route the property rows to a database, spreadsheet or messaging step.

**Can I connect it to other tools?**
The Hemnet Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JavaScript/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

### Notes

Returns only public Hemnet property data — the same information any visitor can see. This is an independent tool and is not affiliated with, endorsed by or connected to Hemnet; "Hemnet" is a trademark of its respective owner. Original clean-room implementation.

# Actor input Schema

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

Swedish place to search — a city, municipality (kommun), county (län) or district name, e.g. Stockholm, Göteborg, Malmö or Östermalm. You can also paste a full Hemnet search URL (any hemnet.se link that contains location\_ids) and its area is used automatically.

## `listingType` (type: `string`):

Choose 'forsale' for currently listed properties (asking prices) or 'sold' for sold-price history (final sale prices and sale dates).

## `locationIds` (type: `array`):

Optional. Exact Hemnet numeric location IDs to search, e.g. 18031 for Stockholms kommun. Use this to target specific areas precisely; when set it overrides the Location field. One ID per line.

## `priceMin` (type: `integer`):

Optional. Only include properties with an asking (or sold) price at or above this amount, in Swedish kronor.

## `priceMax` (type: `integer`):

Optional. Only include properties with an asking (or sold) price at or below this amount, in Swedish kronor.

## `roomsMin` (type: `integer`):

Optional. Only include properties with at least this many rooms.

## `roomsMax` (type: `integer`):

Optional. Only include properties with at most this many rooms.

## `livingAreaMin` (type: `integer`):

Optional. Only include properties with a living area at or above this many square metres.

## `livingAreaMax` (type: `integer`):

Optional. Only include properties with a living area at or below this many square metres.

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

Maximum number of properties to collect (0 = no limit; collect everything the search returns).

## Actor input object example

```json
{
  "location": "Stockholm",
  "listingType": "forsale",
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

The results as dataset items.

# 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 = {
    "location": "Stockholm"
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/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 = { "location": "Stockholm" }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/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 '{
  "location": "Stockholm"
}' |
apify call hipersoft/hemnet-scraper --silent --output-dataset

```

## MCP server setup

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