# Swiss Property Scraper — Flatfox Rent & Buy Listings (`yugenox/swiss-property-scraper`) Actor

Scrape Swiss property listings from Flatfox: apartments, houses, rooms and parking to rent or buy, by canton, town or postcode. Rooms, living area, net/gross rent and charges, price, street, postcode, canton, coordinates, move-in date, agency and photos. No login.

- **URL**: https://apify.com/yugenox/swiss-property-scraper.md
- **Developed by:** [Yugenox Corp](https://apify.com/yugenox) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listings

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?

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

## Swiss Property Scraper — Flatfox Rent & Buy Listings

Get Swiss property listings from **Flatfox** as clean, structured data: apartments, houses, rooms in shared flats, parking and commercial space, **for rent or for sale**, anywhere in Switzerland. Search by **canton, town or postcode**, filter by rooms, price, living area and publication date, and get the newest listings first.

Every row carries the numbers analysts need: **net rent, service charges and gross rent**, asking price, rooms, living area, floor, full street address, postcode, **canton**, coordinates, move-in date, agency, photo count, features and the full description.

### What can you use it for?

- **Rent indexes and market research** — net vs. gross rent per m² by canton, town or postcode.
- **Relocation services** — daily feeds of new apartments in the towns your clients move to.
- **Property investors** — track asking prices and new listings for sale in a region.
- **Proptech and lead generation** — see which agencies and property managers list where.

### Input

| Field | What it does |
|---|---|
| Rent or buy | `rent` (default), `buy` or `all` |
| Locations | Cantons (`ZH`, `Kanton Bern`, `Vaud`), towns (`Zürich`, `Lausanne`, `St. Gallen`) or postcodes (`8004`). Empty = all of Switzerland |
| Property types | Apartment, house, room in a shared flat, parking, commercial, storage, restaurant, agriculture, building land |
| Rooms from / to, Price from / to, Living area from | Filters (price = monthly rent for rentals, asking price for sales) |
| Published within (days) | Only recent listings |
| Max listings | Limit for the run, newest first (0 = everything that matches) |
| Include description | Full text, on by default |

Example:

```json
{ "dealType": "rent", "locations": ["Zürich", "Winterthur"], "objectCategories": ["APARTMENT"], "roomsMin": 3, "priceMax": 3500, "maxListings": 500 }
```

### Output

One row per listing (trimmed real example, description left out):

```json
{
  "id": "flatfox-86522001",
  "source": "flatfox",
  "url": "https://flatfox.ch/de/wohnung/kornerstrasse-10-8004-zurich/86522001/",
  "dealType": "rent",
  "objectCategory": "APARTMENT",
  "title": "3 Zimmer-Wohnung in Zürich mieten",
  "rooms": 3,
  "livingArea": 78,
  "floor": 4,
  "price": 1790,
  "priceUnit": "month",
  "rentNet": null,
  "rentCharges": null,
  "rentGross": 1790,
  "currency": "CHF",
  "street": "Körnerstrasse 10",
  "zip": 8004,
  "city": "Zürich",
  "canton": "ZH",
  "lat": 47.37404,
  "lng": 8.52187,
  "availableFrom": "2026-11-07",
  "availability": "immediately",
  "publishedAt": "2026-11-06T14:30:44.408Z",
  "agency": "NOVAC-SOLUTIONS AG (Wohnung)",
  "isPrivateListing": false,
  "photoCount": 10,
  "isTemporary": true,
  "features": ["parquetflooring", "dishwasher", "washingmachine"],
  "tourUrl": "https://my.matterport.com/show/?m=Cyryg1bufr8"
}
```

All fields: id, source, listingId, url, dealType, objectCategory, objectType, title, rooms, livingArea, propertyArea, floor, price, priceUnit, rentNet, rentCharges, rentGross, currency, street, zip, city, canton, address, lat, lng, availableFrom, availability, publishedAt, createdAt, agency, agencyCity, isPrivateListing, photoCount, yearBuilt, yearRenovated, isFurnished, isTemporary, features, reference, descriptionTitle, description, videoUrl, tourUrl, scrapedAt.

### Pricing

**$1.00 per 1,000 listings** (pay per result) plus a tiny $0.001 start fee per run. You only pay for listings saved to your dataset; filtered-out listings are free.

### Tips

- Postcodes and towns are the fastest; a whole canton or all of Switzerland works too (large areas take a few minutes).
- Schedule a daily run with **Published within = 1** to get each day's new listings.
- Net rent and charges are filled when the lister gives them; `price` always holds the displayed amount.

### FAQ

**Is it legal to scrape Flatfox?**
This actor reads only publicly visible listing data, the same information anyone can see on flatfox.ch without an account, and it respects the site's robots.txt. As with any data, check that your use complies with the laws that apply to you (for example Swiss data protection law) — consult a lawyer if unsure.

**Does it access any private data?**
No. It never logs in and only reads public listings. Agency names are business information. For listings by private persons no name is output, and personal e-mail addresses and phone numbers in descriptions are removed.

**Does it cover Homegate, ImmoScout24 or Comparis?**
Not at the moment — this actor covers Flatfox, with every listing type for rent and sale.

**What happens if the site is unavailable?**
The run still finishes successfully with whatever was collected and a plain explanation in the status message; you are only charged for listings delivered.

# Actor input Schema

## `dealType` (type: `string`):

Listings for rent, for sale, or both.

## `locations` (type: `array`):

Cantons ("ZH", "Kanton Bern", "Vaud"), towns ("Zürich", "Lausanne", "St. Gallen") or postcodes ("8004"). Each is searched; leave empty for all of Switzerland.

## `objectCategories` (type: `array`):

Only these property types. Empty = all.

## `roomsMin` (type: `number`):

Minimum number of rooms (Swiss count, e.g. 3.5).

## `roomsMax` (type: `number`):

Maximum number of rooms.

## `priceMin` (type: `integer`):

Minimum price: monthly rent for rentals, asking price for sales. Listings without a comparable price are left out when set.

## `priceMax` (type: `integer`):

Maximum price: monthly rent for rentals, asking price for sales.

## `livingAreaMin` (type: `integer`):

Minimum living area.

## `publishedWithinDays` (type: `integer`):

Only listings published in the last N days.

## `maxListings` (type: `integer`):

Maximum number of listings for the whole run, newest first. 0 = everything that matches.

## `includeDescription` (type: `boolean`):

Add the full listing description (personal e-mails and phone numbers removed).

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

Apify Proxy (datacenter) is the default and comes with every Apify plan.

## `_noResidential` (type: `boolean`):

Internal test switch. This actor never uses residential proxies anyway.

## Actor input object example

```json
{
  "dealType": "rent",
  "locations": [
    "8004"
  ],
  "maxListings": 20,
  "includeDescription": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "_noResidential": false
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped listings.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, counts and requests.

# 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 = {
    "dealType": "rent",
    "locations": [
        "8004"
    ],
    "maxListings": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/swiss-property-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 = {
    "dealType": "rent",
    "locations": ["8004"],
    "maxListings": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/swiss-property-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 '{
  "dealType": "rent",
  "locations": [
    "8004"
  ],
  "maxListings": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/swiss-property-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/swiss-property-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/P6QxdHBkRtMki1Hs7/builds/dAgtrIGd47ci527sl/openapi.json
