# Homegate Rental Extractor (`kawsar/homegate-rental-extractor`) Actor

Homegate Rental Extractor that scrapes Homegate.ch rental search and listing pages, so you get Swiss rent, rooms, photos, and addresses in one dataset.

- **URL**: https://apify.com/kawsar/homegate-rental-extractor.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Homegate Rental Extractor: scrape Homegate.ch rental listings

Homegate Rental Extractor scrapes rental listings from Homegate.ch search pages. Paste a matching-list URL you already filtered on the site and you get rent in CHF, rooms, living space, address, coordinates, and photo URLs from the result cards.

It pages through Homegate search results until it hits your max. One dataset row per property. German, French, Italian, and English Homegate search URLs all work.

### Use cases

- Watch asking rents in Zurich, Bern, or smaller towns without opening every card
- Export Homegate listing images and addresses for a weekly market note
- Keep a sheet of rooms, living space, and CHF rent for one canton
- Recheck the same search URL on a schedule and see what was added
- Pull filtered Homegate search results into Sheets or a webhook

### What data does this actor extract?

Data comes from Homegate search cards only.

| Field | Type | What it is |
|-------|------|------------|
| `listingId` | string | Homegate listing ID |
| `listingUrl` | string | Public listing page |
| `searchUrl` | string | Search URL that produced the row |
| `offerType` | string | Usually `RENT` |
| `listingTier` | string | Card placement such as PREMIUM or STANDARD |
| `listingTitle` | string | Headline in the language you picked |
| `listingDescription` | string | Listing text, HTML stripped |
| `categories` | array | Homegate categories such as APARTMENT or HOUSE |
| `priceGross` | number | Gross rent from the search card |
| `currency` | string | Usually CHF |
| `priceInterval` | string | Usually MONTH |
| `rooms` | number | Room count, including half rooms |
| `livingSpaceSqm` | number | Living space in m² |
| `floor` | number | Floor number when the search card has it |
| `yearBuilt` | integer | Construction year when published |
| `street` | string | Street address |
| `postalCode` | string | Swiss postcode |
| `locality` | string | City or town |
| `region` | string | Canton or region |
| `country` | string | Country code |
| `latitude` | number | Latitude |
| `longitude` | number | Longitude |
| `imageUrls` | array | Listing photo URLs |
| `imageCount` | integer | How many photos were found |
| `features` | array | Flags such as balcony, garage, pets\_allowed |
| `publishedAt` | string | When the listing was created |
| `scrapedAt` | string | UTC time this row was written |

Fields that only appear on individual listing pages (net rent, extra charges, available-from, agency phone) are not collected.

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `startUrls` | array | Effretikon search URL | Homegate rental search pages. One URL per line. |
| `outputLanguage` | string | `auto` | Language for titles and descriptions: auto, de, en, fr, or it. |
| `maxItems` | integer | `20` | Cap on listings per run (1 to 1000). |
| `requestTimeoutSecs` | integer | `60` | Per-request timeout in seconds. |

#### Example input

```json
{
    "startUrls": [
        "https://www.homegate.ch/rent/real-estate/city-effretikon/matching-list?be=50000"
    ],
    "outputLanguage": "auto",
    "maxItems": 20,
    "requestTimeoutSecs": 60
}
```

A city search looks like `https://www.homegate.ch/rent/real-estate/city-effretikon/matching-list`. The German equivalent is `https://www.homegate.ch/mieten/immobilien/ort-zuerich/trefferliste`.

If Homegate already applied location or price filters, leave them in the URL. The actor does not invent a second filter form.

### Example output

```json
{
    "listingId": "4003444710",
    "listingUrl": "https://www.homegate.ch/rent/4003444710",
    "searchUrl": "https://www.homegate.ch/rent/real-estate/city-effretikon/matching-list?be=50000&ep=1",
    "offerType": "RENT",
    "listingTier": "PREMIUM",
    "listingTitle": "Frisch renoviertes 5.5-Zimmer-Reihenhaus mit Garten in familienfreundlicher Siedlung",
    "listingDescription": "Dieses frisch renovierte Einfamilienhaus in ruhiger, familienfreundlicher Lage...",
    "categories": ["HOUSE", "ROW_HOUSE"],
    "priceGross": 3670,
    "currency": "CHF",
    "priceInterval": "MONTH",
    "rooms": 5.5,
    "livingSpaceSqm": 125,
    "floor": null,
    "yearBuilt": 1978,
    "street": "Lindenstrasse 82",
    "postalCode": "8307",
    "locality": "Effretikon",
    "region": "ZH",
    "country": "CH",
    "latitude": 47.428689311663,
    "longitude": 8.699511310228,
    "imageUrls": [
        "https://media2.homegate.ch/listings/v2/hgonif/4003444710/image/28168b01d5f9dbe5baa6404d6e84babb.jpg"
    ],
    "imageCount": 15,
    "features": ["balcony", "garage", "washing_machine", "pets_allowed", "quiet", "child_friendly", "wheelchair_accessible", "old_building"],
    "publishedAt": "2026-09-04T15:04:31.497Z",
    "scrapedAt": "2026-09-12T06:18:49.024578+00:00"
}
```

`floor` stays null when the search card has no floor value (common for houses). Apartment cards often include it.

### How it works

1. You paste one or more Homegate.ch rental search URLs.
2. The actor loads each search page through built-in bypass infrastructure and reads the cards on it.
3. Search URLs are paged with Homegate's `ep` parameter until `maxItems` is reached.
4. Each property is written as one dataset row you can download as JSON or CSV.

### Integrations

Connect Homegate Rental Extractor to other apps with [Apify integrations](https://apify.com/integrations). Typical setups go to Google Sheets, Make, Zapier, or a webhook when a run finishes.

### FAQ

**Can this actor scrape Homegate rentals by city?**
Yes. Open the city on Homegate, copy the matching-list URL, and paste it into `startUrls`.

**Does the Homegate rental extractor collect listing images?**
Yes. Photo URLs are stored in `imageUrls` from the search cards.

**How many Homegate listings can I extract per run?**
Up to 1000. The default is 20.

**Do German, French, or Italian Homegate URLs work?**
Yes. `/mieten/`, `/louer/`, and `/affittare/` search paths are accepted. Use `outputLanguage` if you want titles in a specific language.

**Why are agency phone and available-from missing?**
Those fields are not on Homegate search cards. This actor only reads search pages.

Copy a Homegate rent search, set `maxItems`, and run Homegate Rental Extractor when you want Swiss rental listings in a dataset instead of a browser tab.

# Actor input Schema

## `startUrls` (type: `array`):

Homegate.ch rental search pages. Example: /rent/real-estate/city-effretikon/matching-list. Filters you set on Homegate stay in the URL.

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

Language used for listing titles and descriptions. Auto uses the listing's primary language.

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

Maximum number of rental listings to extract per run.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.homegate.ch/rent/real-estate/city-effretikon/matching-list?be=50000"
  ],
  "outputLanguage": "auto",
  "maxItems": 20,
  "requestTimeoutSecs": 60
}
```

# Actor output Schema

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

Homegate Rental Extractor scrapes rental listings from Homegate.ch search pages. Paste a matching-list URL with your filters already applied. You get rent in CHF, rooms, living space, street and postcode, map coordinates, photo URLs, and the publish date.

# 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 = {
    "startUrls": [
        "https://www.homegate.ch/rent/real-estate/city-effretikon/matching-list?be=50000"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/homegate-rental-extractor").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 = { "startUrls": ["https://www.homegate.ch/rent/real-estate/city-effretikon/matching-list?be=50000"] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/homegate-rental-extractor").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 '{
  "startUrls": [
    "https://www.homegate.ch/rent/real-estate/city-effretikon/matching-list?be=50000"
  ]
}' |
apify call kawsar/homegate-rental-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/homegate-rental-extractor"
        }
    }
}
```

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/puvisXIAr4AvgDjWm/builds/Yc9rT2sW0uav781Vc/openapi.json
