# Comparis Ch Real Estate Scraper (`agenscrape/comparis-ch-real-estate-scraper`) Actor

Extract real estate listings from Comparis.ch - Switzerland's top property marketplace. Get property details, prices, addresses, images, and contact info. Fast, reliable, and easy to use for market analysis and research.

- **URL**: https://apify.com/agenscrape/comparis-ch-real-estate-scraper.md
- **Developed by:** [Agenscrape](https://apify.com/agenscrape) (community)
- **Categories:** Real estate, Lead generation, Agents
- **Stats:** 23 total users, 3 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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.

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 Real Estate Scraper

Extract comprehensive real estate listings data from Comparis.ch, Switzerland's leading property marketplace.

### Features

- **Fast & Reliable**: Efficient data extraction with automatic retry mechanisms
- **Comprehensive Data**: Extract property details, prices, addresses, contact information and more
- **Easy to Use**: Simply provide search URLs and get structured data
- **High Quality**: Returns clean, structured data ready for analysis

### What Data Can You Extract?

- Property URL and ID
- Title and description
- Property type
- Address and location
- Price information (listing price, value, currency)
- Property area/size
- Publication date
- Images
- Contact information
- Essential property details
- Partner/advertiser information
- Deal type (rent/buy)
- Premium listing status
- And much more...

### How to Use

1. **Get Your Search URL**: Go to [Comparis.ch](https://www.comparis.ch/immobilien) and search for properties using filters (location, price, type, etc.)
2. **Copy the URL**: Copy the search results page URL from your browser
3. **Add to Input**: Paste the URL in the "Search URL" field
4. **Set Max Results**: Specify how many listings to scrape (default: 100, set to 0 for unlimited)
5. **Run**: Click "Start" and wait for results

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| Search URL | String | Yes | Comparis.ch search result URL |
| Max Results | Integer | No | Maximum number of listings to scrape (default: 100, 0 = unlimited) |

### Output

The actor stores data in the Apify dataset. Each listing is a separate item with detailed property information including:

- Property details (title, type, address, area)
- Pricing information
- Contact details
- Images and media
- Listing metadata
- Partner information

### Example Output

```json
{
  "ad_url": "https://www.comparis.ch/immobilien/marktplatz/details/show/12345678",
  "AdId": "12345678",
  "Title": "Beautiful 3.5 room apartment in Zurich",
  "PropertyTypeText": "Apartment",
  "Address": "Zurich | 8001",
  "Price": "CHF 2,500",
  "PriceValue": 2500,
  "Currency": "CHF",
  "AreaValue": 85,
  "DealType": 10,
  "Date": "2024-01-15",
  "EssentialInformation": "3.5 rooms | 85 m²",
  "ImageUrl": "https://.../",
  "PartnerName": "Real Estate Agency"
}
```

### Use Cases

- Real estate market analysis
- Price monitoring and comparison
- Property research
- Investment opportunity identification
- Market trend analysis
- Competitive analysis for real estate agencies

### Performance

- Processes search results quickly
- Handles multiple search URLs in one run
- Automatic error handling and retries
- Optimized for efficiency

### Tips

- Use specific search filters on Comparis.ch to target exact properties you need
- Multiple search URLs can be processed in a single run
- Data is automatically deduplicated by property ID
- Check the overview tab for a quick preview of results

### Questions?

Need help or have questions? Contact support through the Apify platform.

# Actor input Schema

## `searchUrl` (type: `string`):

Comparis.ch search URL to scrape

## `maxResults` (type: `integer`):

Maximum number of listings to scrape (max 200)

## Actor input object example

```json
{
  "searchUrl": "https://www.comparis.ch/immobilien/result/list?requestobject=%7B%22DealType%22%3A10%2C%22SiteId%22%3A0%2C%22RootPropertyTypes%22%3A%5B%5D%2C%22PropertyTypes%22%3A%5B%5D%2C%22RoomsFrom%22%3Anull%2C%22RoomsTo%22%3Anull%2C%22FloorSearchType%22%3A0%2C%22LivingSpaceFrom%22%3Anull%2C%22LivingSpaceTo%22%3Anull%2C%22PriceFrom%22%3Anull%2C%22PriceTo%22%3Anull%2C%22ComparisPointsMin%22%3A0%2C%22AdAgeMax%22%3A0%2C%22AdAgeInHoursMax%22%3Anull%2C%22DistanceFromGeoLocationKm%22%3Anull%2C%22MinAvailableDate%22%3Anull%2C%22MinChangeDate%22%3Anull%2C%22WithImagesOnly%22%3Afalse%2C%22WithPointsOfInterestOnly%22%3Afalse%2C%22Keyword%22%3Anull%2C%22WithVirtualToursOnly%22%3Afalse%2C%22ConstructionDateFrom%22%3Anull%2C%22ConstructionDateTo%22%3Anull%2C%22LastRenovationFrom%22%3Anull%2C%22LastRenovationTo%22%3Anull%2C%22NumberOfParkingLotsFrom%22%3Anull%2C%22NumberOfParkingLotsTo%22%3Anull%2C%22SurfaceOfLandFrom%22%3Anull%2C%22SurfaceOfLandTo%22%3Anull%2C%22WithChildrenOnly%22%3Afalse%2C%22WithPetsOnly%22%3Afalse%2C%22WithWheelchairOnly%22%3Afalse%2C%22WithLiftOnly%22%3Afalse%2C%22WithBalconyOnly%22%3Afalse%2C%22WithGardenOnly%22%3Afalse%2C%22ElevationDistanceSorting%22%3Anull%2C%22SortingCriteria%22%3A3%2C%22SortingDirection%22%3A2%7D",
  "maxResults": 200
}
```

# 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 = {
    "searchUrl": "https://www.comparis.ch/immobilien/result/list?requestobject=%7B%22DealType%22%3A10%2C%22SiteId%22%3A0%2C%22RootPropertyTypes%22%3A%5B%5D%2C%22PropertyTypes%22%3A%5B%5D%2C%22RoomsFrom%22%3Anull%2C%22RoomsTo%22%3Anull%2C%22FloorSearchType%22%3A0%2C%22LivingSpaceFrom%22%3Anull%2C%22LivingSpaceTo%22%3Anull%2C%22PriceFrom%22%3Anull%2C%22PriceTo%22%3Anull%2C%22ComparisPointsMin%22%3A0%2C%22AdAgeMax%22%3A0%2C%22AdAgeInHoursMax%22%3Anull%2C%22DistanceFromGeoLocationKm%22%3Anull%2C%22MinAvailableDate%22%3Anull%2C%22MinChangeDate%22%3Anull%2C%22WithImagesOnly%22%3Afalse%2C%22WithPointsOfInterestOnly%22%3Afalse%2C%22Keyword%22%3Anull%2C%22WithVirtualToursOnly%22%3Afalse%2C%22ConstructionDateFrom%22%3Anull%2C%22ConstructionDateTo%22%3Anull%2C%22LastRenovationFrom%22%3Anull%2C%22LastRenovationTo%22%3Anull%2C%22NumberOfParkingLotsFrom%22%3Anull%2C%22NumberOfParkingLotsTo%22%3Anull%2C%22SurfaceOfLandFrom%22%3Anull%2C%22SurfaceOfLandTo%22%3Anull%2C%22WithChildrenOnly%22%3Afalse%2C%22WithPetsOnly%22%3Afalse%2C%22WithWheelchairOnly%22%3Afalse%2C%22WithLiftOnly%22%3Afalse%2C%22WithBalconyOnly%22%3Afalse%2C%22WithGardenOnly%22%3Afalse%2C%22ElevationDistanceSorting%22%3Anull%2C%22SortingCriteria%22%3A3%2C%22SortingDirection%22%3A2%7D",
    "maxResults": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("agenscrape/comparis-ch-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 = {
    "searchUrl": "https://www.comparis.ch/immobilien/result/list?requestobject=%7B%22DealType%22%3A10%2C%22SiteId%22%3A0%2C%22RootPropertyTypes%22%3A%5B%5D%2C%22PropertyTypes%22%3A%5B%5D%2C%22RoomsFrom%22%3Anull%2C%22RoomsTo%22%3Anull%2C%22FloorSearchType%22%3A0%2C%22LivingSpaceFrom%22%3Anull%2C%22LivingSpaceTo%22%3Anull%2C%22PriceFrom%22%3Anull%2C%22PriceTo%22%3Anull%2C%22ComparisPointsMin%22%3A0%2C%22AdAgeMax%22%3A0%2C%22AdAgeInHoursMax%22%3Anull%2C%22DistanceFromGeoLocationKm%22%3Anull%2C%22MinAvailableDate%22%3Anull%2C%22MinChangeDate%22%3Anull%2C%22WithImagesOnly%22%3Afalse%2C%22WithPointsOfInterestOnly%22%3Afalse%2C%22Keyword%22%3Anull%2C%22WithVirtualToursOnly%22%3Afalse%2C%22ConstructionDateFrom%22%3Anull%2C%22ConstructionDateTo%22%3Anull%2C%22LastRenovationFrom%22%3Anull%2C%22LastRenovationTo%22%3Anull%2C%22NumberOfParkingLotsFrom%22%3Anull%2C%22NumberOfParkingLotsTo%22%3Anull%2C%22SurfaceOfLandFrom%22%3Anull%2C%22SurfaceOfLandTo%22%3Anull%2C%22WithChildrenOnly%22%3Afalse%2C%22WithPetsOnly%22%3Afalse%2C%22WithWheelchairOnly%22%3Afalse%2C%22WithLiftOnly%22%3Afalse%2C%22WithBalconyOnly%22%3Afalse%2C%22WithGardenOnly%22%3Afalse%2C%22ElevationDistanceSorting%22%3Anull%2C%22SortingCriteria%22%3A3%2C%22SortingDirection%22%3A2%7D",
    "maxResults": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("agenscrape/comparis-ch-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 '{
  "searchUrl": "https://www.comparis.ch/immobilien/result/list?requestobject=%7B%22DealType%22%3A10%2C%22SiteId%22%3A0%2C%22RootPropertyTypes%22%3A%5B%5D%2C%22PropertyTypes%22%3A%5B%5D%2C%22RoomsFrom%22%3Anull%2C%22RoomsTo%22%3Anull%2C%22FloorSearchType%22%3A0%2C%22LivingSpaceFrom%22%3Anull%2C%22LivingSpaceTo%22%3Anull%2C%22PriceFrom%22%3Anull%2C%22PriceTo%22%3Anull%2C%22ComparisPointsMin%22%3A0%2C%22AdAgeMax%22%3A0%2C%22AdAgeInHoursMax%22%3Anull%2C%22DistanceFromGeoLocationKm%22%3Anull%2C%22MinAvailableDate%22%3Anull%2C%22MinChangeDate%22%3Anull%2C%22WithImagesOnly%22%3Afalse%2C%22WithPointsOfInterestOnly%22%3Afalse%2C%22Keyword%22%3Anull%2C%22WithVirtualToursOnly%22%3Afalse%2C%22ConstructionDateFrom%22%3Anull%2C%22ConstructionDateTo%22%3Anull%2C%22LastRenovationFrom%22%3Anull%2C%22LastRenovationTo%22%3Anull%2C%22NumberOfParkingLotsFrom%22%3Anull%2C%22NumberOfParkingLotsTo%22%3Anull%2C%22SurfaceOfLandFrom%22%3Anull%2C%22SurfaceOfLandTo%22%3Anull%2C%22WithChildrenOnly%22%3Afalse%2C%22WithPetsOnly%22%3Afalse%2C%22WithWheelchairOnly%22%3Afalse%2C%22WithLiftOnly%22%3Afalse%2C%22WithBalconyOnly%22%3Afalse%2C%22WithGardenOnly%22%3Afalse%2C%22ElevationDistanceSorting%22%3Anull%2C%22SortingCriteria%22%3A3%2C%22SortingDirection%22%3A2%7D",
  "maxResults": 200
}' |
apify call agenscrape/comparis-ch-real-estate-scraper --silent --output-dataset

```

## MCP server setup

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