# ImmoScout24.ch Scraper (`anyxsolutions/immoscout24-scraper`) Actor

Scrapes immoscout24.ch property search results and listing pages, returning prices, rooms, living space, address, geo coordinates, and lister details.

- **URL**: https://apify.com/anyxsolutions/immoscout24-scraper.md
- **Developed by:** [Anyx Solutions](https://apify.com/anyxsolutions) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

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

![banner](generated)

## ImmoScout24.ch Scraper

**Swiss property listings from immoscout24.ch — search results and full listing details as clean JSON.**

Scrapes immoscout24.ch property search results and listing pages, returning prices, rooms, living
space, address, geo coordinates, and lister details. Point it at any rent or buy search on
immoscout24.ch and it pages through the results; give it individual listing URLs and it returns the
complete listing record, including the advertiser. Both page kinds are protected by DataDome, so the
Actor drives a stealth browser over Swiss residential proxies and scrapes the page the site actually
serves a visitor. Built for property analysts, relocation services, proptech teams, and anyone
tracking the Swiss housing market.

### ⚡ Quick start

```json
{
  "startUrls": [
    { "url": "https://www.immoscout24.ch/en/real-estate/rent/city-bern" }
  ],
  "maxItems": 5
}
```

### 🧩 Input

| Field                | Type    | Required | Default                                                                                     | Description                                                                                                                                      |
| -------------------- | ------- | -------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `startUrls`          | array   | yes      | —                                                                                           | immoscout24.ch URLs to scrape. Search result pages (`/real-estate/...`) and single listing pages (`/rent/<id>`, `/buy/<id>`) are both supported. |
| `maxItems`           | integer | no       | `5`                                                                                         | Maximum number of listings to return per start URL. Search pages are paginated automatically until this limit is reached.                        |
| `proxyConfiguration` | object  | no       | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "CH" }` | Proxy settings. ImmoScout24.ch blocks datacenter and unproxied traffic, so Swiss residential proxies are used by default.                        |

### 📤 Output

Every listing is one dataset row. The `itemType` field tells the two shapes apart: `search` for a
result card from a search page and `property` for a full listing page. Both carry the listing `id`
and a canonical `url`; nested objects such as `address`, `characteristics`, `prices`, and `lister`
keep the site's own field names.

#### Fields

| Field                 | Type    | Description                                                                                                                                |
| --------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `itemType`            | string  | `search` or `property`.                                                                                                                    |
| `id`                  | string  | Listing ID.                                                                                                                                |
| `url`                 | string  | Canonical listing URL on immoscout24.ch.                                                                                                   |
| `listingType`         | object  | Listing tier on the search page, e.g. `{ "type": "PREMIUM" }` (search only).                                                               |
| `listing`             | object  | Core listing record: `address`, `categories`, `characteristics`, `localization`, `meta`, `offerType`, `platforms`, `prices` (search only). |
| `listingCard`         | object  | Card display settings on the results page (search only).                                                                                   |
| `listingScores`       | object  | Listing completeness and package scores (search only).                                                                                     |
| `listerBranding`      | object  | Advertiser logo and partner status (search only).                                                                                          |
| `remoteViewing`       | boolean | Whether a remote viewing is offered (search only).                                                                                         |
| `offerType`           | string  | `RENT` or `BUY` (property only).                                                                                                           |
| `availableFrom`       | string  | Availability date, `YYYY-MM-DD`, when published (property only).                                                                           |
| `address`             | object  | Street, postal code, locality, region, country, and geo coordinates (property only).                                                       |
| `bfs`                 | object  | Swiss federal statistics municipality data (property only).                                                                                |
| `categories`          | array   | Property categories, e.g. `APARTMENT` (property only).                                                                                     |
| `characteristics`     | object  | Rooms, living space, floor, year built, amenities (property only).                                                                         |
| `contactForm`         | object  | Contact form settings for the listing (property only).                                                                                     |
| `externalIds`         | object  | Advertiser reference numbers (property only).                                                                                              |
| `legacy`              | object  | Legacy listing attributes kept by the site (property only).                                                                                |
| `lister`              | object  | Advertiser: legal name, address, website, contacts, logo (property only).                                                                  |
| `localization`        | object  | Title, description, and images per language (property only).                                                                               |
| `meta`                | object  | Created and updated timestamps (property only).                                                                                            |
| `newConstructionData` | object  | New-build project details, when the listing is one.                                                                                        |
| `platforms`           | array   | Platforms the listing is published on (property only).                                                                                     |
| `prices`              | object  | Currency and rent or purchase prices (property only).                                                                                      |
| `publishers`          | array   | Publisher tags attached to the listing (property only).                                                                                    |
| `valueAddedServices`  | object  | Extra services advertised with the listing (property only).                                                                                |

<details><summary>Example output</summary>

```json
{
  "itemType": "property",
  "id": "4002086534",
  "url": "https://www.immoscout24.ch/rent/4002086534",
  "offerType": "RENT",
  "availableFrom": null,
  "address": {
    "street": "Belpstrasse 23",
    "postalCode": "3007",
    "locality": "Bern",
    "country": "CH",
    "geoCoordinates": {
      "latitude": 46.9446,
      "longitude": 7.4332,
      "accuracy": "HIGH"
    }
  },
  "categories": ["APARTMENT"],
  "characteristics": {
    "numberOfRooms": 1.5,
    "livingSpace": 23,
    "hasElevator": true
  },
  "prices": {
    "currency": "CHF",
    "rent": { "interval": "MONTH", "gross": 1650 }
  },
  "lister": {
    "legalName": "Example Immobilien AG",
    "website": { "value": "https://example.ch" }
  }
}
```

</details>

### 💡 Use cases

- **Market monitoring** — track asking rents and sale prices per city, canton, or postcode over time.
- **Relocation and lead generation** — collect fresh listings matching a client's criteria, with advertiser contacts.
- **Portfolio benchmarking** — compare your properties against comparable listings by rooms, living space, and year built.
- **Proptech data feeds** — power valuation models and map products with geo-coded listing data.

### ❓ FAQ

- **Do I need a proxy?** Yes. Both search result pages and listing pages are protected by DataDome, which blocks unproxied and datacenter traffic, so the Actor uses Apify Swiss residential proxies by default. It also drives a stealth browser rather than a plain HTTP client, so the protected pages render and are scraped like a real visit — leave the proxy default in place unless you have your own Swiss residential pool.
- **How do I search for properties to buy?** Use a `buy` search URL, e.g. `https://www.immoscout24.ch/en/real-estate/buy/city-zurich`. Any search you build on the site, including filters, works as a start URL.
- **How many results can I get?** `maxItems` caps listings per start URL and the Actor pages through the results automatically. Add more start URLs to widen coverage.
- **Why is `availableFrom` empty?** Many advertisers do not publish a date; the field is `null` when the site has none.
- **Why did a run return fewer items than expected?** The site may have changed its layout, or a proxy exit may have been challenged hard enough that the page never rendered. The Actor retries with a fresh session; if the shortfall persists, open an issue and we will update the Actor.

### 🔗 More scrapers by Anyx

- [Homegate Scraper](https://apify.com/anyxsolutions/homegate-scraper)
- [AutoScout24 Scraper](https://apify.com/anyxsolutions/autoscout24-scraper)
- [Jobs.ch Scraper](https://apify.com/anyxsolutions/jobs-ch-scraper)
- [Kleinanzeigen Scraper](https://apify.com/anyxsolutions/kleinanzeigen-scraper)
- [Google Search Scraper](https://apify.com/anyxsolutions/google-search-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

### 🖼 Image credit

Image credit: [immoscout24.ch](https://www.immoscout24.ch/)

# Actor input Schema

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

immoscout24.ch URLs to scrape, for example https://www.immoscout24.ch/en/real-estate/rent/city-bern. Search result pages (/real-estate/...) and single listing pages (/rent/<id>, /buy/<id>) are both supported.

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

Maximum number of listings to return per start URL. Search pages are paginated automatically until this limit is reached.

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

Apify proxy settings. ImmoScout24.ch blocks datacenter and unproxied traffic, so Swiss residential proxies are used by default.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.immoscout24.ch/en/real-estate/rent/city-bern"
    }
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CH"
  }
}
```

# 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.immoscout24.ch/en/real-estate/rent/city-bern"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/immoscout24-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.immoscout24.ch/en/real-estate/rent/city-bern" }] }

# Run the Actor and wait for it to finish
run = client.actor("anyxsolutions/immoscout24-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.immoscout24.ch/en/real-estate/rent/city-bern"
    }
  ]
}' |
apify call anyxsolutions/immoscout24-scraper --silent --output-dataset

```

## MCP server setup

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