# Sweden Real Estate Scraper (`mrdoe/sweden-real-estate-scraper`) Actor

Scrape Sweden real estate listings from Fastighetsbyran, Svensk Fastighetsformedling, Maklarhuset, Boplats, and SGS. Extract property details, prices, rent, location, images, listing URLs, agencies, and publicly available agent contact data.

- **URL**: https://apify.com/mrdoe/sweden-real-estate-scraper.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Categories:** Automation, E-commerce, Other
- **Stats:** 2 total users, 1 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

![Sweden Real Estate Scraper hero](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/sweden-real-estate-scraper--hero.png)

## Sweden Real Estate Scraper

Scrape and normalize Swedish property listings from multiple sources into one unified schema - property details, pricing, location, images, listing information, and publicly available agency/agent contact information.

### What does Sweden Real Estate Scraper do?

Give this Actor one or more **listing/search page URLs** from any of the supported sources and it returns one normalized record per property, regardless of which site it came from. The source is automatically detected from each start URL's domain.

#### Supported sources

| Source | Type | Domain |
| --- | --- | --- |
| Fastighetsbyrån | For sale | fastighetsbyran.se / .com |
| Svensk Fastighetsförmedling | For sale | svenskfast.se |
| Mäklarhuset | For sale | maklarhuset.se |
| Boplats | Rental | boplats.se |
| SGS Studentbostäder | Rental (student housing) | sgs.se |

Each source uses the same extraction approach as its dedicated single-source Actor (fastighetsbyran-scraper, svenskfast-scraper, maklarhuset-scraper, boplats-scraper, sgsstudentbostader-scraper) - reading embedded/preloaded JSON or server-rendered listing markup directly off the listing page wherever possible, so runs stay fast and don't require visiting every property's detail page unless the source itself only publishes full listing data there (Boplats, SGS).

Not affiliated with or endorsed by any of the above. Only publicly visible listing data is collected - no login, CAPTCHA bypass, or access-control circumvention is used.

### How to use Sweden Real Estate Scraper

![How Sweden Real Estate Scraper works](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/sweden-real-estate-scraper--how-it-works.png)

1. [Sign up](https://apify.com/sign-up) for a free Apify account.
2. Open this Actor and click **Try for free** (or **Start**).
3. Enter one or more **Start URLs** from any supported source, for example:
   - `https://www.fastighetsbyran.com/sv/sverige/till-salu`
   - `https://www.svenskfast.se/bostad/`
   - `https://www.maklarhuset.se/bostad/sverige`
   - `https://boplats.se/sok?types=1hand`
   - `https://sgs.se/en/our-properties/`
4. Set **Max listings** (default `10`, shared across all start URLs) and leave **Proxy configuration** on.
5. Click **Start** and export results as JSON, CSV, Excel, or via API.

### Input

![Sweden Real Estate Scraper input options](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/sweden-real-estate-scraper--input.png)

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `startUrls` | array | Yes | `https://www.fastighetsbyran.com/sv/sverige/till-salu` | Listing/search page URLs from any supported source. Source is auto-detected per URL. |
| `maxItems` | integer | No | `10` | Maximum listings to scrape across **all** start URLs combined. Set `0` for unlimited. |
| `proxyConfiguration` | object | Yes | `{ "useApifyProxy": true }` | Apify Proxy configuration. |

### Output

![Sweden Real Estate Scraper dataset output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/sweden-real-estate-scraper--output.png)

![Sweden Real Estate Scraper data fields](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/sweden-real-estate-scraper--fields.png)

Each dataset item is one normalized property listing.

**Property**: `listingId`, `title`, `propertyType`, `listingType` (`sale` or `rent`), `rooms`, `bedrooms`, `livingArea`, `supplementalArea`, `plotArea`, `buildYear`, `floor`, `totalFloors`

**Financial**: `price`, `currency`, `pricePerSqm`, `monthlyFee`, `operatingCost`

**Location**: `address`, `postalCode`, `locality`, `municipality`, `county`, `country`, `latitude`, `longitude`

**Listing**: `url`, `image`, `images`, `status`, `listingDate`, `updatedAt`

**Contact** (see below): `agency`, `agentName`, `agentTitle`, `agentPhone`, `agentEmail`, `agentUrl`, `contactUrl`, `contactAvailable`

**Source metadata**: `source`, `sourceUrl`, `scrapedAt`

A field is `null` (or `[]` for array fields) whenever the source listing doesn't publish that value - nothing is guessed or fabricated. Not every source publishes every field (e.g. Fastighetsbyrån publishes coordinates but not postal code; Svensk Fastighetsförmedling publishes postal code but not coordinates), and rental sources (Boplats, SGS) don't have a purchase `price` - they use `monthlyFee` instead.

#### Public listing contact / agent information

When a source publicly displays contact information for a listing or its agency, this Actor extracts it into the `agency`, `agentName`, `agentTitle`, `agentPhone`, `agentEmail`, `agentUrl`, and `contactUrl` fields. `contactAvailable` is `true` whenever at least one of those fields is populated.

- **Boplats** publishes a named landlord/contact person, phone, and/or email directly on the listing page - these are extracted in full.
- **Fastighetsbyrån**, **Svensk Fastighetsförmedling**, and **Mäklarhuset** publish the agency/chain name on their search-result pages, but individual broker names, phone numbers, and emails are only shown on each property's own detail page - this Actor doesn't visit those pages, so only the agency name is available for these three sources.
- **SGS Studentbostäder** is a queue-based student housing foundation with no per-listing agent - only the foundation's name is available.

Not every listing provides full contact details, and this Actor never infers, searches for, or fabricates contact information beyond what's publicly displayed on the pages it reads.

#### Example item

```json
{
    "listingId": "6A8386C805783A646F49B08B",
    "title": "Mandolingatan 80, Frölunda Torg",
    "propertyType": null,
    "listingType": "rent",
    "rooms": 2,
    "bedrooms": 2,
    "livingArea": 50,
    "price": null,
    "currency": "SEK",
    "monthlyFee": "10 786 SEK/month",
    "address": "Mandolingatan 80",
    "locality": "Göteborg",
    "country": "Sweden",
    "url": "https://boplats.se/objekt/1hand/6A8386C805783A646F49B08B",
    "image": "https://boplats.se/bilder/1hand/6A8386C805113A5622FFB08B/detail/754/495",
    "images": ["https://boplats.se/bilder/1hand/6A8386C805113A5622FFB08B/detail/754/495"],
    "agency": null,
    "agentEmail": "info@poseidon.goteborg.se",
    "contactAvailable": true,
    "source": "boplats",
    "sourceUrl": "https://boplats.se/objekt/1hand/6A8386C805783A646F49B08B",
    "scrapedAt": "2026-08-17T23:17:11.706Z"
}
```

Export results as JSON, CSV, Excel, XML, or via the [Apify API](https://docs.apify.com/api/v2) once a run finishes.

### Pricing

This Actor is billed on a **pay-per-result** basis (~$1 per 1,000 dataset items). A default cap of 10 listings per run keeps trial runs inexpensive; raise `maxItems` for larger runs.

### FAQ

**Is this legal?** This Actor only collects publicly available property listing data. It is not affiliated with or endorsed by any of the supported sites. Please respect each site's Terms of Service and applicable data protection laws (GDPR).

**Does every listing include agent contact info?** No. Contact fields are only populated when the source publicly displays them on the page this Actor reads - see "Public listing contact / agent information" above for what's available per source. This Actor does not guarantee seller/agent contacts and does not claim complete coverage of the Swedish property market.

**Can I add more sources?** Not yet - this Actor currently supports the five sources listed above. Start URLs from other domains are skipped with a warning rather than failing the run.

Found a bug or have a feature request? Use the Issues tab on this Actor's Apify Store page.

# Actor input Schema

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

Listing/search page URLs from Fastighetsbyrån, Svensk Fastighetsförmedling, Mäklarhuset, Boplats, or SGS Studentbostäder. The source is auto-detected from each URL's domain.

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

Maximum number of listings to scrape across all start URLs combined. Set to 0 for unlimited.

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

Proxy settings for the run.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.fastighetsbyran.com/sv/sverige/till-salu"
    }
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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.fastighetsbyran.com/sv/sverige/till-salu"
        }
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/sweden-real-estate-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.fastighetsbyran.com/sv/sverige/till-salu" }],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/sweden-real-estate-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.fastighetsbyran.com/sv/sverige/till-salu"
    }
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call mrdoe/sweden-real-estate-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/sweden-real-estate-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/KmGRCYQUgnfvxqS0x/builds/PaLYP8vXuOh5MHhKR/openapi.json
