# FlatFox.ch Properties Scraper (`lexis-solutions/flatfox-ch-properties-scraper`) Actor

Scrape property listings from FlatFox.ch. Download data with prices, pictures, addresses, and property details in Excel, JSON, and CSV.

- **URL**: https://apify.com/lexis-solutions/flatfox-ch-properties-scraper.md
- **Developed by:** [Lexis Solutions](https://apify.com/lexis-solutions) (community)
- **Categories:** Real estate, Lead generation
- **Features:** Limited permissions
- **Stats:** 29 total users, 1 monthly users, 0.0% runs succeeded, 16 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

### What is Flatfox.ch Properties Scraper?

![banner](https://lexis-solutions-apify.fra1.cdn.digitaloceanspaces.com/banners/flatfox.png)

Flatfox.ch Properties Scraper is a web scraping tool that allows you to extract data from property listings on FlatFox.ch, a website where you can rent or share living spaces in Switzerland.

### What data can I extract from FlatFox.ch?

Using this scraper, you will be able to extract the following data from FlatFox.ch:

- Pricing Information
- Photos
- Description
- Property Type
- Floor Area
- Number of Rooms
- Year Built
- Year Renovated
- Agency Name
- Address and availability

<table>
<tr>
<td> 🏷️ Type</td>
<td> 💲 Price </td>
</tr>
<tr>
<td> 📸 Images</td>
<td> 📍 Address </td>
</tr>
<tr>
<td> ℹ️ Info</td>
<td> 📅 Available </td>
</tr>
</table>

### Why scrape FlatFox.ch

🏡 Get detailed property listings for a comprehensive overview of available options.

💸 Analyze rental prices in different neighborhoods and make informed decisions.

📊 Monitor market trends and track changes in property availability using historical data.

✍️ Research amenities and features offered by different landlords.

### How to scrape FlatFox.ch

Flatfox.ch Properties Scraper was designed for fast and high-performance scraping. It doesn't need any proxies or integrations to extract data successfully. Just enter your search URL and start extracting data!

Here's how you can scrape property listings on FlatFox.ch:

1. [Create](https://apify.com/sign-up) an Apify account.
2. Open [Flatfox.ch Properties Scraper.](https://apify.com/lexis-solutions/flatfox-ch-properties-scraper)
3. Add one or more URLs to scrape (from the website search).
4. Click "Start" and wait for the data to be extracted.
5. Download your data in JSON, XML, CSV, Excel, or HTML.

### How much does it cost to scrape FlatFox.ch?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

Check out the video below for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

[How much does web scraping with Apify cost?](https://www.youtube.com/watch?v=-wyz2iscZ30 "How much does web scraping with Apify cost?")

### Input

The input for Flatfox.ch Properties Scraper should be one or more FlatFox.ch URLs. Click on the [input tab](https://apify.com/lexis-solutions/flatfox-ch-properties-scraper/input-schema) for a full explanation of an input example in JSON.

```json
{
  "location": "geneva",
  "type": "SALE",
  "minRooms": 3,
  "maxItems": 1
}
```

### Limitations

FlatFox.ch only provides 400 listings per search. If you need more data, you can run the scraper multiple times with different search parameters.

### Output sample

The extracted data will be wrapped into a dataset which you can find in the **Storage** tab.

Here is a sample result in JSON. You can choose in which format to download your FlatFox.ch data: JSON, JSONL, Excel, HTML, CSV, or XML.

```json
{
  "id": 1303263,
  "offer_type": "SALE",
  "status": "act",
  "category": "APARTMENT",
  "dateCreated": "2024-08-27T05:02:09.537315+02:00",
  "image": "https://flatfox.ch/thumb/ff/2024/08/q4ieb0wdbcwtfdvz9tfcjwtw9jz4a24gqbcitmuga9kre061t1.jpg?signature=UmsxBFPpeDUP2FVSigDZ_cVPUiA4wndcS2xpGcc70Jo",
  "priceUnit": "sell",
  "rentNet": null,
  "rentGross": null,
  "url": "https://flatfox.ch/en/flat/1219-le-lignon/1303263/",
  "title": "1219 Le Lignon - CHF 1’090’000",
  "description": "Ce spacieux appartement, situé au 16ème étage, ...",
  "street": null,
  "city": "Le Lignon",
  "zipcode": 1219,
  "latitude": 46.20406244385692,
  "longitude": 6.095970827774912,
  "volume": null,
  "surfaceLiving": 148,
  "floor": 16,
  "isFurnished": false,
  "isTemporary": false,
  "yearBuilt": 1975,
  "yearRenovated": null,
  "agencyName": "Union Suisse des Propriétaires Fonciers"
}
```

### Is it legal to scrape FlatFox.ch?

Note that personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. We also recommend that you read our blog post: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### Integrations and Flatfox.ch Properties Scraper

Last but not least, Flatfox.ch Properties Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, Datawrapper, and LangChain, or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Flatfox.ch Properties Scraper successfully finishes a run.

### Using Flatfox.ch Properties Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPi package.

Check out the [Apify API reference](https://docs.apify.com/api/v2) docs for full details or click on the [API tab](https://apify.com/lexis-solutions-flatfox-ch-properties-scraper/api) for code examples.

### Need to scrape other real estate websites?

Check out our other real estate scrapers:

- Denmark Properties Scraper - [Boligsiden.dk](https://apify.com/lexis-solutions/boligsiden-dk-scraper)
- Sweden Properties Scraper - [Hemnet.se](https://apify.com/lexis-solutions/hemnet-se-scraper)

### Want something custom-built?

This FlatFox Properties Scraper doesn’t exactly do what you need? You can always build your own! Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find). We can help you with custom solutions or data extraction projects.

Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions)

### Support Our Work 💝

If you're happy with our work and scrapers, you're welcome to leave us a company review [here](https://apify.com/partners/find/lexis-solutions/review) and leave a review for the scrapers you're subscribed to. It will take you less than a minute but it will mean a lot to us!

# Actor input Schema

## `location` (type: `string`):

Search query

## `minRooms` (type: `integer`):

Minimum number of rooms

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

Property type

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

Maximum number of items to scrape

## Actor input object example

```json
{
  "location": "geneva",
  "type": "RENT",
  "maxItems": 10
}
```

# 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 = {
    "location": "geneva",
    "type": "RENT",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/flatfox-ch-properties-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 = {
    "location": "geneva",
    "type": "RENT",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/flatfox-ch-properties-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 '{
  "location": "geneva",
  "type": "RENT",
  "maxItems": 10
}' |
apify call lexis-solutions/flatfox-ch-properties-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/flatfox-ch-properties-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/lsUSBuIvIe6GTRcZo/builds/LSa4jny6fF97zYFRc/openapi.json
