# Willhaben Scraper (`crawlerbros/willhaben-scraper`) Actor

Scrape Willhaben.at - Austria's largest classifieds marketplace. Search for cars, real estate, items, and jobs. Get ad titles, prices, locations, sellers, images, and listing URLs.

- **URL**: https://apify.com/crawlerbros/willhaben-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (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 $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## Willhaben Scraper

Scrape **Willhaben.at** — Austria's largest online classifieds marketplace with over 12 million monthly visitors and millions of listings in cars, real estate, furniture, electronics, and more.

### What You Can Scrape

- **Marktplatz (all classifieds / items for sale)** — electronics, furniture, clothing, sports equipment, and more
- **Cars & vehicles (Gebrauchtwagen)** — second-hand vehicles with make, model, mileage, and pricing
- **Real estate — rent apartment**
- **Real estate — buy apartment**
- **Real estate — rent house**
- **Real estate — buy house**
- **Real estate — land / plots**

Every mode supports an optional free-text keyword search, price-range filtering, and 5 sort orders (relevance, newest, price ascending/descending, distance).

### Input Parameters

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `mode` | select | `searchAll`, `searchItems`, `searchCars`, `searchRealEstateRentApartment`, `searchRealEstateBuyApartment`, `searchRealEstateRentHouse`, `searchRealEstateBuyHouse`, `searchRealEstateLand` | `searchItems` |
| `query` | string | Keyword to search for (e.g. `sofa`, `iPhone`, `BMW`). Leave empty to browse the category unfiltered. | — |
| `sortBy` | select | `relevance`, `newest`, `priceAsc`, `priceDesc`, `distance` | `relevance` |
| `priceMin` | integer | Minimum price in EUR | — |
| `priceMax` | integer | Maximum price in EUR | — |
| `maxItems` | integer | Maximum listings to return (1–1000) | `20` |

### Output Fields

| Field | Description |
|-------|-------------|
| `adId` | Unique Willhaben ad ID |
| `heading` | Listing title |
| `price` | Price in EUR (float) |
| `currency` | Always `EUR` |
| `priceDisplay` | Formatted price string as shown on the site |
| `oldPrice` | Previous price, if the listing shows a price reduction |
| `pricePerSquareMeter` | EUR/m² (real estate only) |
| `location` | Locality / neighbourhood |
| `district` | District |
| `state` | Austrian state (Bundesland) |
| `postcode` | Postal code |
| `address` | Street address, where public |
| `country` | Country (always Österreich) |
| `latitude` / `longitude` | Geo-coordinates |
| `propertyType` | Property type (real estate only, e.g. "Erdgeschoßwohnung") |
| `rooms` | Number of rooms (real estate only) |
| `livingAreaSqm` | Living area in m² (real estate only) |
| `floor` | Floor number (real estate only) |
| `carMake` | Vehicle make (cars only) |
| `carModel` | Vehicle model (cars only) |
| `carModelDetail` | Full model/trim string (cars only) |
| `mileageKm` | Odometer reading in km (cars only) |
| `status` | Ad status (e.g. "aktiv") |
| `publishedDate` | Listing publication date (ISO 8601) |
| `imageUrl` | First image URL |
| `imageUrls` | Up to 20 image URLs |
| `adUrl` | Direct link to the listing |
| `seller` | Seller / organisation name, where public |
| `isPrivate` | `true` if listed by a private seller, `false` if a dealer/business |
| `scrapedAt` | ISO timestamp of scrape |
| `mode` | Scraping mode used |

### Example Input

```json
{
  "mode": "searchItems",
  "query": "sofa",
  "sortBy": "relevance",
  "maxItems": 20
}
```

### Example Output

```json
{
  "adId": "812599769",
  "heading": "Sofa, Couch, Schlafsofa, modernes Sofa",
  "price": 650,
  "currency": "EUR",
  "priceDisplay": "€ 650",
  "location": "Wien, 20. Bezirk, Brigittenau",
  "district": "Wien",
  "state": "Wien",
  "postcode": "1200",
  "country": "Österreich",
  "latitude": 48.24867,
  "longitude": 16.377491,
  "status": "aktiv",
  "publishedDate": "2026-07-25T17:46:00Z",
  "imageUrl": "https://cache.willhaben.at/mmo/9/812/599/769_-877990258_hoved.jpg",
  "adUrl": "https://www.willhaben.at/iad/kaufen-und-verkaufen/d/sofa-couch-schlafsofa-812599769/",
  "isPrivate": true,
  "mode": "searchItems",
  "scrapedAt": "2026-08-06T09:54:55.262149+00:00"
}
```

### FAQs

**What is Willhaben?**
Willhaben.at is Austria's most popular online marketplace for buying and selling second-hand goods, cars, and real estate — similar to eBay Kleinanzeigen or Blocket in other European markets.

**Do I need an account to scrape?**
No. The scraper accesses publicly available listing data without requiring a Willhaben account, login, or cookies.

**Can I filter by price?**
Yes. Use `priceMin` and `priceMax` (in EUR) to narrow results in any mode.

**Can I sort results?**
Yes. Use `sortBy`: `relevance` (default), `newest`, `priceAsc`, `priceDesc`, or `distance`.

**How many listings can I scrape?**
Up to 1,000 listings per run using the `maxItems` parameter.

**Does every field appear on every record?**
No — fields that don't apply to a listing (e.g. `carMake` on a real-estate ad) or aren't published by the seller are omitted rather than returned as null/empty.

# Actor input Schema

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

Which Willhaben category to search.

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

Keyword to search for (e.g. 'sofa', 'iPhone', 'BMW'). Leave empty to browse the whole category unfiltered.

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

Result ordering.

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

Minimum price in Euro.

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

Maximum price in Euro.

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

Maximum number of listings to return.

## Actor input object example

```json
{
  "mode": "searchItems",
  "query": "sofa",
  "sortBy": "relevance",
  "maxItems": 20
}
```

# Actor output Schema

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

Dataset containing all scraped Willhaben listings.

# 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 = {
    "mode": "searchItems",
    "query": "sofa",
    "sortBy": "relevance",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/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 = {
    "mode": "searchItems",
    "query": "sofa",
    "sortBy": "relevance",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/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 '{
  "mode": "searchItems",
  "query": "sofa",
  "sortBy": "relevance",
  "maxItems": 20
}' |
apify call crawlerbros/willhaben-scraper --silent --output-dataset

```

## MCP server setup

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