Dataspryva

Use Willhaben Marketplace, Cars & Real Estate Listings Scraper with Python

Search Willhaben.at classifieds, used cars, and real estate (rent or buy apartments, houses, land) by keyword, price range, and sort order. Get listing prices, locations, images, and category-specific details such as car mileage or living area.

1. Choose the data you need

Review the published README for supported collection modes, examples, and limits. The recipe below uses the current published input definition.

2. Prepare a source-based input

This JSON contains published prefills and required-field defaults. Review every value for your task before running it; it is not a promise of successful collection.

{
  "includeDetails": false,
  "includeRawAttributes": false,
  "maxItems": 3,
  "mode": "searchItems",
  "query": "sofa",
  "sortBy": "relevance"
}

Download input.example.json and save your reviewed copy as input.json.

FieldTypeRequiredDescription
modestringrequiredChoose a marketplace section, cars, real estate, jobs, or paste Willhaben URLs.
querystringoptionalFree-text keyword, e.g. 'sofa', 'iPhone', 'BMW', 'Wohnung'. Leave empty to browse the category.
startUrlsarrayoptional(mode=byUrls) Paste search, category, single listing, job search or single job URLs. Filters already in the URL are preserved.
statestringoptionalRestrict listings to one Austrian federal state (or other countries). Location overrides this when both are set.
locationstringoptionale.g. 'Wien', 'Graz', '1050'. Resolved through Willhaben's location search. For jobs it is sent as the job location.
radiusKmintegeroptional(mode=searchJobs) Radius around the location, 1-100 km.
sortBystringoptionalResult ordering. Jobs support relevance and newest; other orders are mapped to newest for jobs.
priceMinintegeroptionalMinimum listing price in euros. Ignored for jobs.
priceMaxintegeroptionalMaximum listing price in euros. Ignored for jobs.
maxItemsintegeroptionalMaximum listings or jobs to return.
includeDetailsbooleanoptionalAdd the full description, seller/contact data and extra car or real-estate details from each listing/job page. Slower and more expensive.
includeRawAttributesbooleanoptionalAdd every source attribute as a rawAttributes list. Useful for category-specific analysis; increases output size.
sellerTypestringoptionalFilter by private seller or commercial dealer. Applies to marketplace items and cars; ignored for real estate and jobs.
vehicleCategorystringoptional(mode=searchCars) Which vehicle section to search.
carMakestringoptional(mode=searchCars) Vehicle manufacturer.
carModelstringoptional(mode=searchCars) Model name, e.g. '3er-Reihe' or 'Golf'. Requires Car make.
yearFromintegeroptional(mode=searchCars) Earliest registration year.
yearTointegeroptional(mode=searchCars) Latest registration year.
mileageFromintegeroptional(mode=searchCars) Minimum mileage.
mileageTointegeroptional(mode=searchCars) Maximum mileage.
fuelTypestringoptional(mode=searchCars)
transmissionstringoptional(mode=searchCars)
bodyTypestringoptional(mode=searchCars)
carConditionstringoptional(mode=searchCars)
driveTypestringoptional(mode=searchCars)
colorstringoptional(mode=searchCars)
powerFromintegeroptional(mode=searchCars) Minimum engine power.
powerTointegeroptional(mode=searchCars) Maximum engine power.
realEstateCategorystringoptional(mode=searchRealEstate) Which property market to search.
propertySubtypestringoptional(mode=searchRealEstate) Optional subtype such as penthouse, detached house or building plot.
roomsstringoptional(mode=searchRealEstate) Room-count bucket.
livingAreaFromintegeroptional(mode=searchRealEstate)
livingAreaTointegeroptional(mode=searchRealEstate)
plotAreaFromintegeroptional(mode=searchRealEstate)
plotAreaTointegeroptional(mode=searchRealEstate)
freeAreaTypestringoptional(mode=searchRealEstate) Balcony, terrace, garden, etc.
equipmentstringoptional(mode=searchRealEstate) e.g. lift, cellar, parking, built-in kitchen.
availableNowbooleanoptional(mode=searchRealEstate) Only listings available now.
jobRegionstringoptional(mode=searchJobs)
employmentModestringoptional(mode=searchJobs)
jobPositionstringoptional(mode=searchJobs)
jobOperationAreastringoptional(mode=searchJobs)
jobCompanyTypestringoptional(mode=searchJobs)
jobTimeLimitstringoptional(mode=searchJobs)
incrementalModebooleanoptionalReturn only new/changed listings or jobs on recurring runs. The first run returns everything as NEW.
stateKeystringoptional(incrementalMode) Stable name for this search so later runs compare against the right state. Leave empty to derive it from the filters.
emitUnchangedbooleanoptional(incrementalMode) Also return records whose tracked fields did not change.
emitExpiredbooleanoptional(incrementalMode) After a complete scan, also emit listings/jobs that disappeared since the last run.

3. Start an Actor run

Set APIFY_TOKEN in your environment. Python 3.10 or newer is sufficient; this recipe uses no third-party packages.

Execution may incur charges. Review current pricing on Apify. The request asks for a 120-second timeout and a charge limit; these settings are subject to Apify’s pricing and do not guarantee an all-inclusive spending cap.

import json
import os
import urllib.request

# Save the schema-derived example as input.json; review and edit it first.
with open("input.json", encoding="utf-8") as stream:
    actor_input = json.load(stream)

token = os.environ["APIFY_TOKEN"]
request = urllib.request.Request(
    "https://api.apify.com/v2/acts/sSrZYqOzOQO2bTYr4/runs?timeout=120&maxTotalChargeUsd=0.50",
    data=json.dumps(actor_input).encode("utf-8"),
    headers={"Authorization": "Bearer " + token, "Content-Type": "application/json"},
    method="POST",
)
# This starts a potentially billable run. Do not automatically retry this POST.
with urllib.request.urlopen(request, timeout=40) as response:
    run = json.load(response)["data"]
print("Run ID:", run["id"])
print("Status:", run["status"])
# Inspect and download results in Apify Console once the run succeeds.

4. Inspect the actual results

Open the run in Apify Console and wait for a successful completion. Use the published output schema to locate results and the dataset schema to understand declared views. Missing or optional record fields must not be treated as guaranteed values.

Willhaben.at listings and jobs with prices, locations, seller data, car and property details, images and optional detail-page enrichment.

Questions before you run

Which inputs are required?

The published required fields are mode

What does this guide verify?

The fields, prefills, and schema links are rendered from the published build. This is a usage recipe, not a paid live extraction test. Source availability and collection results can vary.

What if the run request times out?

Check Apify Console before retrying. The first request may already have created a run. Do not automatically repeat a run-creation POST.

Generated from source build 10AHfQXOlb4fyOst2 and its README and schemas. Source changes regenerate this guide; no third-party editorial claims are inferred.