Search willhaben ads
willhaben (Austria) marketplace ads for a keyword (or, with vertical, rental and for-sale apartments and houses, used cars and motorbikes) with category, state, price, condition and other attribute filters, seller type, last 48 hours, buyer protection and sort: price, location, coordinates, published, changed and end dates, photos and attributes. filters lists every filter value with the param and value to pass back (attribute_ids for treeAttributes values, category for ATTRIBUTE_TREE values). Private sellers' names, phone numbers and email addresses are never returned (masked in ad text).
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
vertical | marktplatz | apartments_rent | apartments_buy | houses_rent | houses_buy | cars | motorbikes | Site section to search: marktplatz (default, the marketplace), apartments_rent, apartments_buy, houses_rent, houses_buy, cars or motorbikes. Each section has its own filters (e.g. rooms, property type, make, fuel); pass them back through filters. |
q | string | Keywords. Example: iphone |
category | string | Category id (ATTRIBUTE_TREE value from filters). |
state | burgenland | kaernten | niederoesterreich | oberoesterreich | salzburg | steiermark | tirol | vorarlberg | wien | Austrian state. |
area_id | string | District area id (from filters). |
price_min | string | Minimum price (EUR). |
price_max | string | Maximum price (EUR). |
area_min | number | Minimum living area in m² (real-estate verticals only). |
area_max | number | Maximum living area in m² (real-estate verticals only). |
year_min | integer | Earliest first-registration year (cars and motorbikes only). |
year_max | integer | Latest first-registration year (cars and motorbikes only). |
mileage_max | integer | Maximum mileage in km (cars and motorbikes only). |
attribute_ids | string | treeAttributes values from filters (condition, delivery, brand...), comma-separated. |
seller_type | private | business | private or business. |
last_48h | string | true: ads from the last 48 hours. |
buyer_protection | string | true: ads with buyer protection and shipping. |
filters | string | Other site filters as param:value. |
sort | relevance | newest | distance | price_asc | price_desc | Sort order. |
limit | integer | Results per page (max 90, default 30). |
page | integer | Results page, 1 for the first. Pass back next_page; null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/willhaben/v1/search" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/willhaben/v1/search",
params={},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/willhaben/v1/search");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).