# Hemnet.se Scraper - Swedish Real Estate Listings (`scraptivo/hemnet-se-scraper`) Actor

Collect Swedish property listings from Hemnet.se for for-sale, upcoming, and sold homes by URL or location name, with optional listing detail enrichment.

- **URL**: https://apify.com/scraptivo/hemnet-se-scraper.md
- **Developed by:** [Scraptivo](https://apify.com/scraptivo) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.

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

**Hemnet.se Scraper** collects property listings from [Hemnet.se](https://www.hemnet.se) and turns them into structured data for Swedish market research, price monitoring, and lead generation. Provide a location name such as `Stockholm`, a Hemnet search URL, or filters for for-sale, upcoming, or sold homes, then export address, asking price, rooms, living area, broker, and coordinates to JSON, CSV, or Excel. Use it to watch inventory, compare regions, and schedule recurring collection. Pricing is **$1.00 per 1,000 listings**, with optional listing details at **$1.00 per 1,000** additional.

### What can you automate with Hemnet.se Scraper?

- **Build Swedish listing databases** — Collect for-sale, upcoming, and sold homes by city, county, or property type.
- **Search by location name** — Enter `Stockholm`, `Malmö`, or `Södertälje` and let the Actor match the best Hemnet location.
- **Enrich with listing details** — Add broker contact, descriptions, open house times, energy data, and all images when **Listing Details** is on.
- **Filter by rooms, area, and price** — Narrow by property type, room count, living area, and price in SEK.
- **Schedule recurring collection** — Run weekly by region and push new listings into Sheets, a CRM, or an alert workflow.

### Who is this scraper for?

| Team | Workflow |
|---|---|
| Real estate investors | Track asking prices, sold prices, and inventory across Swedish municipalities. |
| Market researchers | Monitor for-sale, upcoming, and sold sections by region. |
| Lead-generation teams | Collect broker names and contact details when listing details are enabled. |
| Proptech products | Feed structured Hemnet listings into dashboards and alerts. |

### What data can you collect from Hemnet.se?

| Data group | Example fields | How it helps |
|---|---|---|
| Listing identity | `id`, `url`, `listingType`, `streetAddress`, `locationDescription` | Identify each home and deduplicate with `id`. |
| Commercial | `askingPrice`, `finalPrice`, price change labels | Compare listed and sold prices in SEK. |
| Property | `rooms`, `livingArea`, `landArea`, `housingForm` | Filter by size, type, and plot. |
| Broker | `broker` name, agency, contact info | See who listed the property. |
| Media | `thumbnail`, `images` | Review listing photos. |
| Location | `coordinates`, municipality context | Map listings and group by area. |
| Detail fields | labels, showings, full listing data | Appear when **Listing Details** is on. |

Search-result fields are always collected. Full broker contact, descriptions, and open house schedules appear only when listing details are enabled.

### How to use Hemnet.se Scraper

1. Open the [Hemnet.se Scraper](https://apify.com/scraptivo/hemnet-se-scraper) on Apify.
2. Paste Hemnet search URLs or enter location names such as `Stockholm`.
3. Choose listing type, property types, price filters, and toggle **Listing Details** if needed.
4. Run the Actor — it writes one dataset row per listing.
5. Export the dataset or connect it to your workflow.

```json
{
  "searchQueries": ["Stockholm"],
  "listingType": "for_sale",
  "itemTypes": ["villa", "lagenhet"],
  "minRooms": 3,
  "maxPrice": 5000000,
  "maxPages": 3,
  "listingDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

### Example workflow

#### Build a weekly Stockholm villa snapshot

1. Schedule a Monday run with `searchQueries` = `["Stockholm"]`, `listingType` = `"for_sale"`, and `itemTypes` = `["villa"]`.
2. Set `minRooms` and `maxPrice` to match your target segment.
3. Enable **Listing Details** when you need broker contact and open house times.
4. Send new rows to Google Sheets through a webhook after each run.
5. Deduplicate user-side against the stable `id` field.

The Actor does not merge results across runs — those steps happen in your pipeline.

### Automate and integrate your results

- **Schedules** — Run **weekly** for a market snapshot or **daily** when monitoring a single city segment.
- **Webhooks** — Push completed runs into Google Sheets, Make, Zapier, Slack, or a CRM.
- **Exports and API** — Download JSON, CSV, Excel, or HTML from the Apify Console, or start a run from the API:

```shell
curl -X POST "https://api.apify.com/v2/acts/scraptivo~hemnet-se-scraper/runs?token=YOUR-APIFY-TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "searchQueries": ["Stockholm"],
    "listingType": "for_sale",
    "maxPages": 3
  }'
```

Use the Hemnet listing `id` as the stable deduplication key across runs.

### Input reference

| Field | Type | Required | Default | What it controls |
|---|---|---:|---|---|
| `startUrls` | array | No | — | Direct Hemnet search result URLs. |
| `searchQueries` | array | No | `Stockholm` | Location names such as Stockholm or Malmö. |
| `listingType` | string | No | `for_sale` | For sale, upcoming, or sold section. |
| `itemTypes` | array | No | all | Villa, lägenhet, bostadsrätt, radhus, and other Hemnet types. |
| `minRooms` / `maxRooms` | number | No | — | Room count range (supports half rooms). |
| `minLivingArea` / `maxLivingArea` | integer | No | — | Living area range in m². |
| `minPrice` / `maxPrice` | integer | No | — | Price range in SEK. |
| `expandLocations` | integer | No | — | Expand search radius in km (1, 5, 10, 25, or 50). |
| `maxPages` | integer | No | `3` | Maximum search result pages per target. |
| `maxListings` | integer | No | `0` | Maximum total listings (`0` = unlimited within pages). |
| `listingDetails` | boolean | No | `false` | Fetch full listing detail pages. |
| `proxyConfiguration` | object | No | residential | Proxy settings. Residential proxy is recommended. |

#### Can I scrape sold homes on Hemnet?

Yes. Set `listingType` to `sold`, or paste a Hemnet sold-search URL in `startUrls`.

### Output example

```json
{
  "id": "21596414",
  "url": "https://www.hemnet.se/bostad/villa-5rum-kungshamn-sotenas-kommun-storemyrsgatan-5-21596414",
  "listingType": "for_sale",
  "streetAddress": "Storemyrsgatan 5",
  "locationDescription": "Kungshamn, Sotenäs kommun",
  "askingPrice": "5 795 000 kr",
  "rooms": "5 rum",
  "livingArea": "100+56 m²",
  "landArea": "526 m²",
  "housingForm": "Villa",
  "coordinates": {
    "latitude": 58.223,
    "longitude": 11.245
  }
}
```

### How much does it cost to scrape Hemnet.se?

Billing is pay-per-event. A one-time **Actor Start** fee of **$0.00005** applies per run.

| Event | When it is charged | Price |
|---|---|---|
| result | Each listing row from search results | **$1.00 per 1,000** |
| Listing Details | Each listing when `listingDetails` is on | **$1.00 per 1,000** |

A listing-only run of 1,000 properties costs about **$1.00** plus Actor Start. Adding details on every listing costs about **$2.00** plus Actor Start. Apify plan discounts may reduce these prices. Platform compute and proxy usage are billed separately on your Apify plan.

### Reliability and responsible use

- **Residential proxy recommended** — Default input uses Apify residential proxies for reliable Hemnet runs.
- **Conditional fields** — Broker contact, descriptions, and open house times appear only when listing details succeed.
- **Public data** — The Actor collects publicly visible listing information from Hemnet.se.
- **User responsibility** — Use collected data in line with applicable laws and Hemnet terms.

### Frequently asked questions

#### Can I scrape Hemnet listings by city name?

Yes. Add location names to `searchQueries`, such as `Stockholm` or `Malmö`. The Actor uses Hemnet autocomplete to match the best location.

#### Can I schedule Hemnet.se Scraper to run automatically?

Yes. Create an Apify schedule on a saved task. Separate tasks per city or listing type make monitoring easier.

#### What counts as one result?

Each property written to the dataset counts as one **result** event. When `listingDetails` is enabled, each successfully enriched listing also counts as one **Listing Details** event.

#### Why are broker contact fields empty?

Broker contact and open house data appear only when **Listing Details** is on and Hemnet publishes them for that listing.

#### How do I avoid duplicate records?

Within one run, listings are unique by `id`. Across runs the Actor appends results. Deduplicate user-side against `id` when combining datasets.

#### Do I need a proxy?

Residential proxy is recommended for reliable runs on Apify Cloud. The default input enables Apify residential proxies.

### Related Scraptivo automations

- [Finn.no Real Estate Scraper](https://apify.com/scraptivo/finn-no-scraper) — Norwegian property listings
- [Boliga Denmark Real Estate Scraper](https://apify.com/scraptivo/boliga-dk-scraper) — Danish property listings
- [Funda Netherlands Real Estate Scraper](https://apify.com/scraptivo/funda-nl-scraper) — Dutch property listings
- [Idealista Scraper](https://apify.com/scraptivo/idealista-scraper) — Spanish and Portuguese property listings
- [Realestate.com.au Scraper](https://apify.com/scraptivo/realestate-com-au-scraper) — Australian property listings

### Support and custom workflows

Need a different field, source, or delivery workflow? Contact Scraptivo at scraptivo@gmail.com. Include the Actor name, sample URL, required fields, and expected volume so we can assess the request.

# Actor input Schema

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

Direct Hemnet search result URLs to scrape. Supports for-sale (/bostader), upcoming (/kommande/bostader), and sold (/salda/bostader) pages with optional filters.

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

Location names to search on Hemnet (e.g. "Stockholm", "Södertälje", "Malmö"). The best autocomplete match is used. Combine with the filters below.

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

Which Hemnet listing section to scrape when using search queries.

## `itemTypes` (type: `array`):

Filter by property type. Leave empty to include all types.

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

Minimum number of rooms. Supports half rooms (e.g. 1.5). Leave empty for no minimum.

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

Maximum number of rooms. Supports half rooms (e.g. 3.5). Leave empty for no maximum.

## `minLivingArea` (type: `integer`):

Minimum living area in square meters. Leave empty for no minimum.

## `maxLivingArea` (type: `integer`):

Maximum living area in square meters. Leave empty for no maximum.

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

Minimum asking/final price in SEK. Leave empty for no minimum.

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

Maximum asking/final price in SEK. Leave empty for no maximum.

## `expandLocations` (type: `integer`):

Expand the search radius around the selected location in kilometers (Hemnet "expand search area"). Allowed values: 1, 5, 10, 25, or 50. Leave empty to search only the exact location.

## `maxPages` (type: `integer`):

Maximum number of search result pages to scrape per search target (50 listings per page). Default is 3.

## `maxListings` (type: `integer`):

Maximum number of listings to scrape in total across all search targets (0 = unlimited within maxPages).

## `listingDetails` (type: `boolean`):

Fetch full listing detail pages for each result (address, description, broker contact, open houses, all images, and more). Billed as listing-details events.

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

Proxy settings for anti-bot protection. Apify residential proxies are recommended.

## Actor input object example

```json
{
  "startUrls": [],
  "searchQueries": [
    "Stockholm"
  ],
  "listingType": "for_sale",
  "itemTypes": [],
  "maxPages": 3,
  "maxListings": 0,
  "listingDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Link to the default dataset containing scraped Hemnet listings

## `run` (type: `string`):

Link to the run in Apify Console

# 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": [],
    "searchQueries": [
        "Stockholm"
    ],
    "itemTypes": [],
    "maxPages": 3,
    "maxListings": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraptivo/hemnet-se-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": [],
    "searchQueries": ["Stockholm"],
    "itemTypes": [],
    "maxPages": 3,
    "maxListings": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("scraptivo/hemnet-se-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": [],
  "searchQueries": [
    "Stockholm"
  ],
  "itemTypes": [],
  "maxPages": 3,
  "maxListings": 0
}' |
apify call scraptivo/hemnet-se-scraper --silent --output-dataset

```

## MCP server setup

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