# willhaben Scraper & API - Listings, Price Drops | $0.6/1K (`surefeed/willhaben-scraper`) Actor

Search willhaben.at marketplace, used cars and rentals by keyword, region, price and seller type, or paste any willhaben search URL. Get prices with willhaben's own price drops, GPS, seller and optional details; monitor only new or repriced listings.

- **URL**: https://apify.com/surefeed/willhaben-scraper.md
- **Developed by:** [gianluca de dominicis](https://apify.com/surefeed) (community)
- **Categories:** E-commerce, Real estate, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 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 & API — Listings, Price Drops & Cars

Get listings from **willhaben.at**, Austria's largest classifieds site: the marketplace (Marktplatz), **used cars** and **apartments for rent** — or any willhaben search you paste. Every listing comes with price, **willhaben's own price-drop data** (old price, drop amount, drop date), GPS coordinates, region, private/dealer seller and photos. Turn on **monitor mode** to get only new or repriced listings on every scheduled run.

- **Deal hunting from the first run** — `Only price drops` returns listings willhaben itself marks as reduced. No history needed.
- **Monitor & alerts** — `Monitor: only new or repriced listings` remembers earlier runs and returns what changed, with the previous price.
- **Cars and real estate specs** — mileage, year, fuel, gearbox, power; living area, rooms, price per m².
- **Fast and cheap** — 200 listings per page, no browser. Thousands of listings in under a minute.
- **Reliable** — if willhaben refuses a request, the run switches to Austrian residential IPs automatically; a page that still cannot be loaded never throws away listings already saved.

### Quick start

| You want | Input |
|---|---|
| Try it | Leave the prefilled `iphone` example and press Start (20 listings) |
| Cheap bikes in Vienna | `searchTerms: ["fahrrad"]`, `state: "wien"`, `maxPrice: 300` |
| Only reduced iPhones from private sellers | `searchTerms: ["iphone"]`, `sellerType: "private"`, `onlyPriceDrops: true` |
| BMWs with all your willhaben filters | Filter on willhaben.at, copy the URL into `searchUrls` |
| Daily alert for new rentals in Graz | Paste the willhaben search URL, set `onlyNewListings: true`, schedule daily |

```json
{
  "searchTerms": ["rennrad"],
  "category": "marketplace",
  "state": "wien",
  "maxPrice": 800,
  "onlyPriceDrops": true,
  "maxListingsPerSearch": 50
}
```

### Input

| Field | Meaning |
|---|---|
| `searchTerms` | Words to search, one per line. Empty + `category` cars/apartments browses the whole section |
| `category` | `marketplace`, `cars` or `apartments_rent` (for search terms) |
| `searchUrls` | Any willhaben.at search page, with all its filters. Single listing pages are rejected |
| `state` | Austrian state, e.g. `wien`, `steiermark`, `tirol` |
| `minPrice`, `maxPrice` | Price range in € |
| `sellerType` | `any`, `private`, `commercial` (not available for real estate) |
| `postedLast48Hours` | willhaben's "last 48 hours" filter |
| `onlyPriceDrops` | Only listings whose current price is below willhaben's old price |
| `sortBy` | `inherit`, `newest`, `price_asc`, `price_desc` |
| `maxListingsPerSearch` / `maxTotalListings` | Result limits (0 = none) |
| `maxSearchPagesPerSearch` / `maxRunSeconds` | Work limits (0 = none) |
| `includeDetails` | Full description, all images, seller profile and all attributes (extra event) |
| `onlyNewListings` / `monitorKey` | Monitor mode and an optional name to keep separate memories |
| `deduplicateAcrossSearches` | Return and charge each listing once per run (default on) |

An input willhaben cannot use (e.g. a listing URL instead of a search, or min price above max price) ends the run with an **"Input problem"** status message, no results and no charge.

### Output

```json
{
  "adId": "1924504450",
  "title": "iPhone 17 Pro 256 GB",
  "url": "https://www.willhaben.at/iad/kaufen-und-verkaufen/d/iphone-17-pro-256-gb-1924504450/",
  "price": 925,
  "priceText": "€ 925",
  "oldPrice": 1000,
  "priceDropped": true,
  "priceDropAmount": 75,
  "priceDropPercent": 7.5,
  "priceReducedAt": "2026-11-08T09:12:00Z",
  "postcode": "1010",
  "location": "Wien, 01. Bezirk, Innere Stadt",
  "district": "Wien",
  "state": "Wien",
  "latitude": 48.21492,
  "longitude": 16.368553,
  "publishedAt": "2026-11-10T04:29:24Z",
  "isPrivate": true,
  "sellerName": null,
  "shippingAvailable": true,
  "imageUrl": "https://cache.willhaben.at/mmo/0/192/450/4450_-2038568785_hoved.jpg",
  "imageCount": 3,
  "snippet": "Verkaufe mein iPhone 17 Pro mit 256 GB...",
  "specs": {},
  "changeType": "snapshot",
  "detailsStatus": "not_requested"
}
```

- `specs` holds section-specific fields when present: cars `mileageKm`, `year`, `fuel`, `transmission`, `powerKw`, `condition`, `doors`, `seats`; real estate `livingAreaM2`, `usableAreaM2`, `rooms`, `pricePerM2`, `propertyType`, `floor`, `outdoorArea`, `street`.
- With `includeDetails`: `description`, `imageUrls`, `firstPublishedAt`, `sellerProfileName`, `sellerRegisteredAt`, `sellerActiveAds`, `attributes`.
- With monitor mode, `changeType` is `new`, `price_decreased`, `price_increased` or `price_changed`, with `previousObservedPrice`, `priceChange` and `priceChangePercent`.

**Check `RUN_SUMMARY`** in the key-value store for pages read per search, skipped entries and why each search stopped (`stopReason`). A search that could not be completed is marked `error`; the listings saved before that point are kept.

### Pricing

Pay per event, no start fee:

| Event | Price |
|---|---|
| Listing | $0.60 per 1,000 |
| Listing details (only when obtained) | $2 per 1,000 |

Unchanged listings skipped by monitor mode, duplicates and invalid entries are never charged. Set a maximum cost per run in Apify and the Actor stops cleanly before exceeding it.

### Monitoring setup

1. Build your search (terms + filters, or a pasted willhaben URL).
2. Turn on `onlyNewListings`. The first run returns the current listings; later runs return only new and repriced ones.
3. Schedule it (e.g. hourly or daily) in Apify and connect an email, Slack or webhook integration to the run's dataset.
4. An empty dataset means nothing changed. A failed run is a separate signal and should not be treated as "no changes".

### Notes

- Data comes from public willhaben.at search and listing pages. Use it in line with willhaben's terms and applicable law; contact details of private sellers are not collected.
- Something wrong or missing? Open an issue with the run link and the expected result.

# Actor input Schema

## `searchTerms` (type: `array`):

What to search, one per line (e.g. iphone 15, rennrad, couch). Combined with Category and the filters below. Leave empty with Category = Used cars or Apartments to browse the whole section.

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

Section of willhaben used for the search terms. For any other section or detailed filters (car make, rooms, size...), set them on willhaben.at and paste the URL below.

## `searchUrls` (type: `array`):

Optional. Paste search result pages from willhaben.at with all filters you like, e.g. https://www.willhaben.at/iad/gebrauchtwagen/auto/gebrauchtwagenboerse?CAR_MODEL/MAKE=1005 . Single listing pages are not accepted.

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

Limit results to one Austrian state.

## `minPrice` (type: `integer`):

Optional lower price limit.

## `maxPrice` (type: `integer`):

Optional upper price limit.

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

Private sellers or dealers. Not available for real estate.

## `postedLast48Hours` (type: `boolean`):

willhaben's own 'last 48 hours' filter.

## `onlyPriceDrops` (type: `boolean`):

Return only listings willhaben marks as reduced (old price higher than current price). Great for deal hunting: works from the first run, no history needed.

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

Order in which listings are read.

## `maxListingsPerSearch` (type: `integer`):

Stop each search after this many saved listings. 0 = no limit.

## `maxTotalListings` (type: `integer`):

Stop the whole run after this many saved listings. 0 = no limit.

## `maxSearchPagesPerSearch` (type: `integer`):

Each page holds up to 200 listings. 0 = no limit.

## `maxRunSeconds` (type: `integer`):

Soft time limit: no new pages are started after it. 0 = no limit.

## `includeDetails` (type: `boolean`):

Open each listing for the full description, all images, first publication date, seller profile and all listing attributes. Charged as an extra event only when details are obtained.

## `onlyNewListings` (type: `boolean`):

Remembers what earlier runs of the same search saw (in your account) and returns only listings that are new or whose price changed, with the previous price. Schedule the Actor to get alerts.

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

Optional. Give separate monitors for the same search their own memory.

## `deduplicateAcrossSearches` (type: `boolean`):

Return and charge each listing once even if several searches find it.

## Actor input object example

```json
{
  "searchTerms": [
    "iphone"
  ],
  "category": "marketplace",
  "state": "any",
  "sellerType": "any",
  "postedLast48Hours": false,
  "onlyPriceDrops": false,
  "sortBy": "inherit",
  "maxListingsPerSearch": 20,
  "maxTotalListings": 0,
  "maxSearchPagesPerSearch": 0,
  "maxRunSeconds": 0,
  "includeDetails": false,
  "onlyNewListings": false,
  "deduplicateAcrossSearches": true
}
```

# Actor output Schema

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

Listings produced by the run.

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

Charged results, pages read per search, skipped entries and why each search stopped.

# 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 = {
    "searchTerms": [
        "iphone"
    ],
    "maxListingsPerSearch": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("surefeed/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 = {
    "searchTerms": ["iphone"],
    "maxListingsPerSearch": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("surefeed/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 '{
  "searchTerms": [
    "iphone"
  ],
  "maxListingsPerSearch": 20
}' |
apify call surefeed/willhaben-scraper --silent --output-dataset

```

## MCP server setup

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