# Willhaben Real Estate Scraper (`bovi/willhaben-scraper`) Actor

Collect public Willhaben apartment rental and sale listings. Returns listing URLs, prices, property details, location, coordinates, publication dates, descriptions, and available photos.

- **URL**: https://apify.com/bovi/willhaben-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (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 $0.75 / 1,000 willhaben real estate scrapers

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

## Willhaben Real Estate Scraper

Collect public apartment listings from Willhaben.at for rent or sale. The Actor reads the search data rendered into Willhaben's public listing pages and writes one dataset item per advert. It does not require a Willhaben login, a browser, or an API key. Each record includes the advert ID, title, direct URL, and deal type, plus any published price, currency, property type, rooms, living area, location, coordinates, publication time, description excerpt, and photo URLs. Fields that Willhaben does not provide for an advert are omitted.

### Input

| Field | Required | Default | Description |
|---|---:|---|---|
| `deal_type` | Yes | `mietwohnungen` | `mietwohnungen` for apartment rentals or `eigentumswohnung` for apartments for sale. |
| `city` | Yes | `wien` | Willhaben URL slug. Vienna is verified; some other regions use different URL structures. |
| `maxResults` | No | `50` | Maximum number of dataset items. The Actor stops when this limit is reached. |
| `max_pages` | No | `3` | Maximum search-result pages to visit. |
| `proxyConfiguration` | No | Direct requests | Optional Apify proxy configuration. If omitted or disabled, requests go directly to Willhaben. |

Example input:

```json
{
  "deal_type": "mietwohnungen",
  "city": "wien",
  "maxResults": 10,
  "max_pages": 1,
  "proxyConfiguration": {"useApifyProxy": false}
}
```

### Example dataset item

This example is one record from the local direct-request run:

```json
{
  "id": "1203141205",
  "url": "https://www.willhaben.at/iad/immobilien/d/mietwohnungen/wien/wien-1030-landstrasse/hans-y-pauschalmiete-inkl-strom-heizung-internet-pool-gym-spa-vieles-mehr-flexible-laufzeiten-1203141205/",
  "title": "HANS-Y - Pauschalmiete (inkl. Strom, Heizung, Internet, Pool, Gym, Spa & vieles mehr) + flexible Laufzeiten!",
  "deal_type": "rent",
  "scraped_at": "2026-11-05T10:53:46.023540+00:00",
  "price": 1399,
  "currency": "EUR",
  "property_type": "Wohnung",
  "rooms": 2,
  "area_sqm": 43,
  "location": "Wien, 03. Bezirk, Landstraße",
  "lat": 48.1865712,
  "lng": 16.3907174,
  "posted_date": "2026-11-05T11:53:18Z",
  "description": "Tauche ein in eine neue Art des Wohnens und mache deinen Wohnraum zu deinem Wohntraum! Vollmöblierte 1- und 2-Zimmerapartments im HANS-Y umfassen u.g.: SKY POOL SPA-BEREICH mit SAUNA und INFRAROTKABINE FITNESSSTUDIO + YOGARAUM OUTDOOR-SPORTBEREICHE...",
  "images": [
    "https://cache.willhaben.at/mmo/5/120/314/1205_1915275914_hoved.jpg",
    "https://cache.willhaben.at/mmo/5/120/314/1205_304404952_hoved.jpg",
    "https://cache.willhaben.at/mmo/5/120/314/1205_-1373387326_hoved.jpg"
  ]
}
```

### Pricing

Apify bills dataset items according to the price configured for the Actor in the Store. The supplied champion reference lists a result event of **$0.000935 per item on the FREE tier**, scheduled from 16 November 2026; reference rates for paid tiers range from $0.000888 to $0.000795. The Actor start event is separate. Check the live Store listing for the applied rate; this build does not make charge API calls or embed pricing configuration.

The search page is public and can be fetched without the Apify proxy. Enable `proxyConfiguration` only if you want the Actor to use your configured Apify proxy.

# Actor input Schema

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

Use mietwohnungen for apartment rentals or eigentumswohnung for apartments for sale.

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

Willhaben URL slug. Vienna (wien) is verified; other regions may use different URL structures.

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

Maximum number of listing records to add to the dataset.

## `max_pages` (type: `integer`):

Maximum number of search-result pages to visit.

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

Optional Apify proxy settings. Omitted or disabled means direct requests without a proxy.

## Actor input object example

```json
{
  "deal_type": "mietwohnungen",
  "city": "wien",
  "maxResults": 10,
  "max_pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

URL of the default dataset items produced by this run.

# 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 = {
    "deal_type": "mietwohnungen",
    "city": "wien",
    "maxResults": 10,
    "max_pages": 1,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/willhaben-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 = {
    "deal_type": "mietwohnungen",
    "city": "wien",
    "maxResults": 10,
    "max_pages": 1,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/willhaben-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 '{
  "deal_type": "mietwohnungen",
  "city": "wien",
  "maxResults": 10,
  "max_pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/willhaben-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/willhaben-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/MfnPwdPjaeFna2jh7/builds/Fw0TEHrNFF7J0ivFi/openapi.json
