# Lansfast Se Properties and Details Scraper (`realestateapi/lansfast-se-properties-and-details-scraper`) Actor

Authorized Länsförsäkringar Fastighetsförmedling listing extraction. Source requests default to off and require current written permission; the input attestation does not grant authorization.

- **URL**: https://apify.com/realestateapi/lansfast-se-properties-and-details-scraper.md
- **Developed by:** [Real Estate API](https://apify.com/realestateapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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

## Lansfast Se Properties and Details Scraper

This Actor can collect Swedish property listings from Lansfast estate-filter and estate-card pages only when current written authorization covers automated collection, processing, and storage. The official User Terms prohibit crawling/indexing without consent and restrict copying or digital storage. The default setting makes zero source requests and emits no dataset rows; `authorizationConfirmed` is an operator attestation, not permission.

The Actor does not authenticate, access seller accounts, submit forms, or perform transactions. It uses the official Lansfast listing domain and API only, with bounded requests. Policy, HTTP, redirect, and parsing failures are not property rows. Duplicate listing IDs are removed before applying the item limit.

### Input

- `authorizationConfirmed`: default `false`; use only with current written permission.
- `county`, `municipality`, `propertyType`: optional listing filters.
- `maxItems`: maximum property rows.
- `page`: listing page to request.
- `includeDetails`: whether to make bounded estate-card requests.
- `timeoutMs`: request timeout.

### Output

Authorized listings may include address, city, municipality, county, area, price, monthly cost, room count, living area, plot size, property type, listing status, marketing methods, image URL, and publication date. The default run emits no dataset rows. This synthetic example is a conditional schema illustration, not live Lansfast data.

```json
{
  "actorRank": 3494,
  "actorName": "Lansfast Se Properties and Details Scraper",
  "recordType": "property",
  "listingId": "example-estate-001",
  "url": "https://www.lansfast.se/bostad/illustrative-home/",
  "streetAddress": "1 Example Street",
  "city": "Example City",
  "municipality": "Example Municipality",
  "county": "Example County",
  "area": "Example District",
  "price": 2800000,
  "monthlyCost": 4200,
  "rooms": 3,
  "livingArea": 75,
  "propertyType": "Apartment",
  "status": "For sale",
  "marketingMethods": ["Synthetic example"],
  "publishDate": "2026-01-10",
  "sourceUrl": "https://app-lansfast-api.azurewebsites.net/api/Estates/GetEstateCard?estateId=example-estate-001",
  "scrapedAt": "2026-01-15T12:00:00.000Z"
}
```

# Actor input Schema

## `authorizationConfirmed` (type: `boolean`):

Required before requests to the Lansfast API. Confirm that current written permission covers automated collection, processing, and storage under https://www.lansfast.se/anvandarvillkor/. The workspace operator attested on 2026-11-16 that they hold such permission (see WRITTEN_PERMISSION_ATTESTATION.md); this default was opened after a bounded live run verified the source-backed parser and transport. Setting false still skips all source requests. This checkbox is an operator attestation only, does not grant permission, and does not override the source's own Terms.

## `county` (type: `string`):

Optional Swedish county filter.

## `municipality` (type: `string`):

Optional municipality filter.

## `propertyType` (type: `string`):

Optional public property-type filter.

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

Maximum listing records emitted.

## `page` (type: `integer`):

First public API result page used for estate-ID discovery.

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

Maximum number of consecutive search-result pages scanned for estate IDs. Deterministic: pages are read from 'page' upward. Stopping conditions include an empty page, maxPages, maxItems, maxRequests, or an access denial.

## `maxRequests` (type: `integer`):

Hard cap on all Lansfast HTTPS requests combined (discovery pages plus estate-card enrichment).

## `testMode` (type: `boolean`):

When true, caps this run to 1 discovery page, 3 listings, and 6 total requests without changing saved input. Detail enrichment stays sequential (concurrency 1).

## `includeDetails` (type: `boolean`):

Fetch public estate cards for the bounded listing set.

## `timeoutMs` (type: `integer`):

Maximum milliseconds per request.

## Actor input object example

```json
{
  "authorizationConfirmed": true,
  "county": "",
  "municipality": "",
  "propertyType": "",
  "maxItems": 20,
  "page": 1,
  "maxPages": 1,
  "maxRequests": 30,
  "testMode": false,
  "includeDetails": true,
  "timeoutMs": 30000
}
```

# Actor output Schema

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

No description

## `runSummary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("realestateapi/lansfast-se-properties-and-details-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("realestateapi/lansfast-se-properties-and-details-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 '{}' |
apify call realestateapi/lansfast-se-properties-and-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,realestateapi/lansfast-se-properties-and-details-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/XDu8HVbcOF4xDZdeD/builds/hxmZcS6gGjQATA6nc/openapi.json
