# 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ocrad/comparis-ch-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Comparis.ch Scraper — Swiss Property Listings, GPS & Vendors",
        "description": "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.",
        "version": "1.0",
        "x-build-id": "5MhSg577ITqPDPKxn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ocrad~comparis-ch-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ocrad-comparis-ch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/ocrad~comparis-ch-scraper/runs": {
            "post": {
                "operationId": "runs-sync-ocrad-comparis-ch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/ocrad~comparis-ch-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-ocrad-comparis-ch-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "url"
                ],
                "properties": {
                    "url": {
                        "title": "Search results URL",
                        "pattern": "^https?://([a-z]{2}\\.|www\\.)?comparis\\.ch/",
                        "type": "string",
                        "description": "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": {
                        "title": "Max pages",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "How many search result pages to scrape (10 listings each). Pages are pre-built upfront using the 0-based ?page= query parameter.",
                        "default": 1
                    },
                    "detailedInfo": {
                        "title": "Scrape detail pages",
                        "type": "boolean",
                        "description": "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.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. Defaults to Apify Proxy (auto). Switch to a RESIDENTIAL group if you see 403 errors.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
