# Willhaben Scraper — Austria Classifieds & Prices (`crawloop/willhaben-scraper`) Actor

Willhaben scraper for Austrian classifieds. Each row has the EUR price, city, postcode, and photos for marketplace, property, cars, and jobs. Export JSON or monitor new ads.

- **URL**: https://apify.com/crawloop/willhaben-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, Real estate, Lead generation
- **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.
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?

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 Scraper

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by willhaben internet service GmbH & Co KG or its affiliates. Data is read from publicly accessible search and category pages only. No login. You are responsible for complying with applicable law (including GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

**Willhaben scraper** for Austrian classifieds. Each row is one listing: asking price in EUR, city, postcode, Bundesland, description snippet, and photos. Search marketplace, apartments, used cars, or jobs by keyword, or paste a results URL. Use it as a **willhaben scraper** and **willhaben.at API alternative** from **Python**, **Node.js**, **cURL**, or **Apify MCP**, and export the dataset as JSON.

**Best for:** rental and sale comps, used-car asking prices, marketplace price checks, job leads, and a scheduled run that saves only new ads and price changes.

| Actor | Role |
| :--- | :--- |
| Willhaben Scraper ◄── you are here | Austria classifieds: EUR price, city, postcode, new-ad monitor |
| [Kleinanzeigen Scraper](https://apify.com/crawloop/kleinanzeigen-scraper) | Germany classifieds |
| [Tutti.ch Scraper](https://apify.com/crawloop/tutti-ch-scraper) | Switzerland classifieds |
| [Gumtree Scraper](https://apify.com/crawloop/gumtree-scraper) | UK classifieds |
| [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper) | France classifieds |
| [Marktplaats Scraper](https://apify.com/crawloop/marktplaats-scraper) | Netherlands classifieds |
| [Sahibinden Scraper](https://apify.com/crawloop/sahibinden-scraper) | Turkey classifieds |

### When to use this Actor

- **A keyword** — Set Keyword to iphone and leave Search URLs empty. Category chooses the section.
- **Apartments, cars, or jobs** — Pick the category and leave Keyword empty, or add a keyword inside that section.
- **A results page you already opened** — Paste the category or search URL. Keyword and category are ignored when Search URLs is set.
- **New ads and price cuts** — Turn on monitor mode and schedule the same search. The first run stores a baseline and saves nothing. Later runs save new listing ids and price changes.

### When not to use this Actor

- **Hidden phone numbers** — Contact reveal is not called. A number the seller typed into the description stays inside `description`.
- **Street address or map coordinates** — Those fields are dropped. The row keeps city, postcode, district, and Bundesland.
- **A national dump in one run** — Cap `maxItems` (200). Split by category or keyword.
- **Logged-in seller tools** — This Actor reads public search pages only.

### Key features

- **Search cards** — Title, EUR price, city, postcode, Bundesland, description snippet, and photos. Property rows add rooms and living area. Car rows add make, year, mileage, and fuel. Default **256 MB**. Direct HTTP. No browser.
- **Five sections** — Marketplace, apartments for rent, apartments for sale, used cars, and jobs.
- **Pasted URL** — Category and search URLs. A car category landing page is followed to its result list when the landing page has no cards.
- **Private versus business** — `sellerType` is `private` or `business` when the card says so.
- **Monitor** — Named key-value store of listing id and last price for that search. The seed run saves nothing.

### Input

| Field | Required | Default | What it does |
| :--- | :--- | :--- | :--- |
| Search or category URLs | No | iPhone marketplace search | Wins over the filters below. |
| Keyword | No | — | Search text when URLs are empty. |
| Category | No | Marketplace | Section used when URLs are empty. |
| Maximum listings | No | 40 | Rows to save, up to 200. |
| Monitor mode | No | off | Baseline first, then new ids and price changes. |
| Monitor state store | No | willhaben-monitor | Named store for the baseline. |
| Proxy | No | Off | Turn on residential if a run is blocked. |

```json
{
  "keyword": "iphone",
  "category": "marketplace",
  "maxItems": 40,
  "monitorMode": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### Output

| Field | Meaning |
| :--- | :--- |
| `id` | Listing or job id |
| `url` | Public listing page |
| `title` | Listing title |
| `price` | Asking price, monthly rent, or salary amount in EUR |
| `location` | City or job location |
| `postcode` | Postcode on classifieds cards |
| `state` | Bundesland |
| `postedAt` | Publish time |
| `livingAreaM2` | Square meters when the property card shows them |
| `rooms` | Room count on property cards |
| `make`, `year`, `mileageKm`, `fuel` | Car card fields |
| `sellerType` | `private` or `business` |
| `sellerName` | Dealer, company, or public name on the card |
| `description` | Description snippet |
| `image`, `images` | First photo, then up to five photos |
| `vertical` | `marketplace`, `real-estate`, `cars`, or `jobs` |
| `changeType` | `new` or `price_change` on monitor runs |
| `previousPrice` | Prior price when `changeType` is `price_change` |
| `scrapedAt` | UTC timestamp |

```json
{
  "id": "1402998967",
  "url": "https://www.willhaben.at/iad/kaufen-und-verkaufen/d/phone-case-1402998967/",
  "title": "Phone case",
  "price": 5,
  "currency": "EUR",
  "location": "Wien",
  "postcode": "1010",
  "state": "Wien",
  "sellerType": "private",
  "vertical": "marketplace",
  "description": "Short description"
}
```

### Use cases

- Compare asking rents in one city and keep `livingAreaM2` and `sellerType` so agencies are separate from private landlords.
- Pull used cars with price, year, mileage, and fuel from one results URL.
- Schedule monitor mode each morning and export only listings whose price moved.
- For the same goods in Germany, run [Kleinanzeigen Scraper](https://apify.com/crawloop/kleinanzeigen-scraper). For Switzerland, run [Tutti.ch Scraper](https://apify.com/crawloop/tutti-ch-scraper).

### Integration examples

Replace `APIFY_TOKEN`. The slug below is the Store name.

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("crawloop/willhaben-scraper").call({
  keyword: "iphone",
  category: "marketplace",
  maxItems: 40,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("crawloop/willhaben-scraper").call(run_input={
    "category": "rentals",
    "maxItems": 40,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items))
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/crawloop~willhaben-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"category":"cars","keyword":"golf","maxItems":40}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store name `crawloop/willhaben-scraper`.

Example prompts:

- "Run Willhaben Scraper for rental apartments and return price, city, and living area as JSON"
- "Scrape Willhaben used cars for golf and summarize price, year, and mileage"
- "Run Willhaben Scraper in monitor mode for iphone, then use Kleinanzeigen Scraper for the same goods in Germany"

### Suite next step

This Actor covers Austrian classifieds. For the same goods in Germany, run [Kleinanzeigen Scraper](https://apify.com/crawloop/kleinanzeigen-scraper). For Switzerland, run [Tutti.ch Scraper](https://apify.com/crawloop/tutti-ch-scraper).

### FAQ

**Does this open every listing page?**
No. The search card already has the price, place, description snippet, and photos. One saved row is that card.

**Which sections are included?**
Marketplace, apartments for rent, apartments for sale, used cars, and jobs. A pasted search URL can target any public results page in those sections.

**What if the run is blocked?**
Turn the proxy on and choose residential, then retry.

**What does monitor mode skip?**
Listing ids already stored for that same search, unless the asking price changed. A quiet tick writes zero rows. The first run only fills the baseline.

**Are phone numbers included?**
No. Street address and coordinates are dropped. City, postcode, district, and Bundesland stay. A number written in the description stays in `description`.

**How do I export the rows?**
The run writes one listing per dataset row. Download JSON, CSV, or Excel from that dataset, or read it with the Node.js, Python, and cURL examples.

# Actor input Schema

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

willhaben search or category URLs. When this list is set, keyword and category are ignored.

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

Search text used when Search URLs is empty. Combined with Category.

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

Section used when Search URLs is empty.

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

How many listings to save. Monitor mode examines this many cards and saves only new ids and price changes.

## `monitorMode` (type: `boolean`):

The first run for a search stores a baseline and saves nothing. Later runs save new listings and price changes only.

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

Named key-value store that keeps the baseline between scheduled runs.

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

Off by default. Turn on residential if Cloudflare blocks a run.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.willhaben.at/iad/kaufen-und-verkaufen/marktplatz?keyword=iphone"
    }
  ],
  "category": "marketplace",
  "maxItems": 40,
  "monitorMode": false,
  "monitorStateStore": "willhaben-monitor",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset items — one listing per row.

# 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": [
        {
            "url": "https://www.willhaben.at/iad/kaufen-und-verkaufen/marktplatz?keyword=iphone"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/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 = { "startUrls": [{ "url": "https://www.willhaben.at/iad/kaufen-und-verkaufen/marktplatz?keyword=iphone" }] }

# Run the Actor and wait for it to finish
run = client.actor("crawloop/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 '{
  "startUrls": [
    {
      "url": "https://www.willhaben.at/iad/kaufen-und-verkaufen/marktplatz?keyword=iphone"
    }
  ]
}' |
apify call crawloop/willhaben-scraper --silent --output-dataset

```

## MCP server setup

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