# Comparis.ch Scraper — Swiss Property Listings, GPS & Vendors (`ocrad/comparis-ch-scraper`) Actor

Scrape comparis.ch Swiss property marketplace: prices, addresses, rooms, living space, GPS coordinates, features, vendor contact and images. Works in EN/DE/FR/IT. Export JSON/CSV/Excel.

- **URL**: https://apify.com/ocrad/comparis-ch-scraper.md
- **Developed by:** [Ocrad](https://apify.com/ocrad) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

### Comparis.ch Property Scraper

***

By providing any comparis.ch search URL, you can retrieve structured property data across multiple result pages.

***

#### **📋 Example Output**

**Basic record** (`detailedInfo: false`):

```json
{
  "id": "37618587",
  "url": "https://en.comparis.ch/immobilien/marktplatz/details/show/37618587",
  "title": "17m2 Lagerraum Zürich - Birmensdorferstrasse 20",
  "price": "CHF 425",
  "priceValue": "425",
  "currency": "CHF",
  "address": "Birmensdorferstrasse 20, 8004 Zürich",
  "city": "8004 Zürich",
  "typeAndIntro": "Commercial property",
  "availability": "active",
  "tags": [],
  "imageUrl": "https://en.comparis.ch/immobilien/api/image/getdirect?guid=8376091f-1d4f-478c-a37e-57300822518e&w=458&h=344&rm=3&mw=1024&mh=1024",
  "images": [
    "https://en.comparis.ch/immobilien/api/image/getdirect?guid=8376091f-1d4f-478c-a37e-57300822518e&w=458&h=344&rm=3&mw=1024&mh=1024",
    "https://en.comparis.ch/immobilien/api/image/getdirect?guid=18ce2ac0-3a1a-4c62-b63b-d83572bfce68&w=458&h=344&rm=3&mw=1024&mh=1024",
    "https://en.comparis.ch/immobilien/api/image/getdirect?guid=397d7025-6972-4853-aa67-f09819b20aa1&w=458&h=344&rm=3&mw=1024&mh=1024",
    "… 5 more"
  ],
  "areaSize": "17 m²",
  "essentialInformation": [
    "17 m²"
  ],
  "yearBuilt": null,
  "listedAt": "2026-07-08T00:39:14",
  "remarksHtml": "<p>An der Birmensdorferstrasse 20 in Zürich kann ein beheizter Lagerraum von 17.0m2 gemietet werden. Der Raum befindet sich im 3. Obergeschoss und ist bequem mit dem Personen- oder Warenlift erreichba…",
  "scrapedAt": "2026-07-08T14:47:28.487Z"
}
```

**Detailed record** (`detailedInfo: true`, additional fields):

```json
{
  "title": "17 m²",
  "address": "Birmensdorferstrasse 20",
  "images": [
    "https://en.comparis.ch/immobilien/api/image/getdirect?guid=8376091f-1d4f-478c-a37e-57300822518e&w=%WIDTH%&h=%HEIGHT%&rm=2&mw=1024&mh=1024",
    "https://en.comparis.ch/immobilien/api/image/getdirect?guid=18ce2ac0-3a1a-4c62-b63b-d83572bfce68&w=%WIDTH%&h=%HEIGHT%&rm=2&mw=1024&mh=1024",
    "https://en.comparis.ch/immobilien/api/image/getdirect?guid=397d7025-6972-4853-aa67-f09819b20aa1&w=%WIDTH%&h=%HEIGHT%&rm=2&mw=1024&mh=1024",
    "… 5 more"
  ],
  "priceType": "Rent per month",
  "bedrooms": null,
  "bathrooms": null,
  "rooms": null,
  "levels": null,
  "livingSpaceArea": "17 m²",
  "propertyFeatures": {
    "Property type": "Commercial property",
    "Available": "Immediately",
    "Floor space": "17 m&sup2;",
    "Ceiling height": "270 cm",
    "Attic": "Yes"
  },
  "featureGroups": [
    {
      "groupName": "Features",
      "items": [
        "Lift"
      ]
    }
  ],
  "description": "An der Birmensdorferstrasse 20 in Zürich kann ein beheizter Lagerraum von 17.0m2 gemietet werden. Der Raum befindet sich im 3. Obergeschoss und ist bequem mit dem Personen- oder Warenlift erreichbar. …",
  "coordinates": {
    "lat": 47.37269137833107,
    "lon": 8.526386137034725
  },
  "comparisPoints": null,
  "vendor": {
    "name": "storabble",
    "contact": "Oliver Meyer",
    "street": "Lerchenfeldstrasse 3",
    "zipAndCity": "9014 St. Gallen",
    "phone": null
  },
  "documentLinks": [],
  "sharingUrl": "https://en.comparis.ch/immobilien/marktplatz/details/show/37618587"
}
```

#### ⚙️ **Configuration**

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `url` | String | *(required)* | Comparis.ch search URL with filters pre-applied. |
| `maxPages` | Integer | `1` | Number of result pages to scrape (1–1000). Each page typically contains 10 listings. |
| `detailedInfo` | Boolean | `false` | Visit each listing's detail page for full property data (slower, more data). |
| `proxyConfiguration` | Object | Apify Proxy (auto) | Proxy settings. Switch to a RESIDENTIAL group if you see blocks or empty results. |

##### Example Input

```json
{
  "url": "https://en.comparis.ch/immobilien/marktplatz/zuerich/mieten",
  "maxPages": 5,
  "detailedInfo": false
}
```

##### Getting your search URL

1. Go to [comparis.ch property marketplace](https://en.comparis.ch/immobilien)
2. Apply your filters (location, rent/buy, price, rooms …)
3. Copy the full URL from your browser address bar (en/de/fr/it subdomains all work)
4. Paste it as the `url` input

***

#### 💬 **Support and Feedback**

Need help or have suggestions? Reach out via Apify support channels or leave feedback on the Actor's page.

***

#### **Is it legal to scrape comparis.ch data?**

It is legal to scrape publicly available data such as property prices, addresses, and listing details. However, you should be aware that results may contain personal information (agent names, contact details).

Personal data is protected by the Swiss Federal Act on Data Protection (FADP) and other regulations. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, please consult your lawyers. You can also read Apify's blog post on the legality of web scraping.

# Actor input Schema

## `url` (type: `string`):

A comparis.ch property marketplace search URL with your filters already applied in the browser (e.g. https://en.comparis.ch/immobilien/marktplatz/zuerich/mieten). German/French/Italian URLs work too.

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

How many search result pages to scrape (10 listings each). Pages are pre-built upfront using the 0-based ?page= query parameter.

## `detailedInfo` (type: `boolean`):

Visit each listing's detail page to extract full specs, features, GPS coordinates, vendor contact, all images and document links. Slower and uses more requests.

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

Proxy settings. Defaults to Apify Proxy (auto). Switch to a RESIDENTIAL group if you see 403 errors.

## Actor input object example

```json
{
  "url": "https://en.comparis.ch/immobilien/marktplatz/zuerich/mieten",
  "maxPages": 1,
  "detailedInfo": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `id` (type: `string`):

Comparis Ad ID

## `url` (type: `string`):

Full listing detail URL

## `title` (type: `string`):

Listing title

## `price` (type: `string`):

Formatted price string (e.g. CHF 425)

## `priceValue` (type: `string`):

Numeric price value

## `currency` (type: `string`):

Price currency (CHF)

## `priceType` (type: `string`):

Price type, e.g. Rent per month / Purchase price (detail mode)

## `address` (type: `string`):

Street address

## `city` (type: `string`):

Postal code and city

## `typeAndIntro` (type: `string`):

Property type text

## `availability` (type: `string`):

Ad status label

## `tags` (type: `string`):

Array of tag / badge strings

## `imageUrl` (type: `string`):

Primary image URL

## `images` (type: `string`):

Array of all image URLs

## `areaSize` (type: `string`):

Area string from the result card (e.g. 17 m²)

## `yearBuilt` (type: `string`):

Year of construction when provided

## `listedAt` (type: `string`):

Listing date from the result card

## `bedrooms` (type: `string`):

Not separated by Comparis; see rooms (always null)

## `bathrooms` (type: `string`):

Not separated by Comparis; see propertyFeatures (always null)

## `rooms` (type: `string`):

Number of rooms (Swiss room count, detail mode)

## `levels` (type: `string`):

Floor from the main data table (detail mode)

## `livingSpaceArea` (type: `string`):

Living space / area string (detail mode)

## `propertyFeatures` (type: `string`):

Object of label to value pairs from Main data + Attributes (detail mode)

## `featureGroups` (type: `string`):

Array of grouped feature lists, e.g. Features: Lift (detail mode)

## `description` (type: `string`):

Plain-text listing description (detail mode)

## `coordinates` (type: `string`):

GPS coordinates object {lat, lon} from map data (detail mode)

## `comparisPoints` (type: `string`):

Comparis quality points score (detail mode)

## `vendor` (type: `string`):

Vendor / advertiser contact object: name, contact person, street, zipAndCity, phone (detail mode)

## `documentLinks` (type: `string`):

Array of document link URLs (detail mode)

## `sharingUrl` (type: `string`):

Canonical sharing URL of the ad (detail mode)

## `scrapedAt` (type: `string`):

ISO 8601 timestamp when the record was scraped

# 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 = {
    "url": "https://en.comparis.ch/immobilien/marktplatz/zuerich/mieten",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ocrad/comparis-ch-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 = {
    "url": "https://en.comparis.ch/immobilien/marktplatz/zuerich/mieten",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ocrad/comparis-ch-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 '{
  "url": "https://en.comparis.ch/immobilien/marktplatz/zuerich/mieten",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ocrad/comparis-ch-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ocrad/comparis-ch-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/iCKIWU3ZXdAWKFikV/builds/5MhSg577ITqPDPKxn/openapi.json
