{
  "openapi": "3.0.1",
  "info": {
    "title": "Willhaben API & Scraper: Export Austrian Ads, Cars & Homes",
    "description": "Scrape Willhaben (willhaben.at) without login: marketplace ads, flats, houses, land, cars and motorbikes by keyword, category, state, price or search URL. Price, location, seller, photos, optional full description and phone. Over 200 000 ads per search, new ads and price drops. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "0lCsrBxWyk7RolH0X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~willhaben-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-willhaben-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/s_actors~willhaben-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-willhaben-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/s_actors~willhaben-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-willhaben-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "section": {
            "title": "Section",
            "enum": [
              "marketplace",
              "flatsRent",
              "flatsBuy",
              "housesRent",
              "housesBuy",
              "land",
              "commercialRent",
              "cars",
              "motorbikes"
            ],
            "type": "string",
            "description": "Which part of Willhaben to search. Marketplace = everything for sale (use the category below); the other sections return flats, houses, land, commercial property, cars or motorbikes with their own fields (rooms, living area; make, model, year, mileage).",
            "default": "marketplace"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to search for, like in the Willhaben search box: \"iphone 15\", \"golf\", \"dreizimmerwohnung\". One search per keyword. Empty = every ad of the section, category and state.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Marketplace category",
            "enum": [
              "antiques",
              "baby",
              "beauty",
              "boats",
              "books",
              "computers",
              "services",
              "leisure",
              "games",
              "home-garden",
              "cameras-tv",
              "car-parts",
              "fashion",
              "phones",
              "toys",
              "sports",
              "pets",
              "watches-jewelry",
              "household"
            ],
            "type": "string",
            "description": "Only ads of this main category (marketplace section only). Empty = all categories. For a sub-category type its number in \"Category number\" or paste a Willhaben URL."
          },
          "categoryId": {
            "title": "Category number",
            "minimum": 1,
            "type": "integer",
            "description": "The number at the end of a category URL, for example 4552 for willhaben.at/iad/kaufen-und-verkaufen/marktplatz/fahrraeder-radsport/fahrraeder-4552 (marketplace section only). Overrides the category above."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Bundesländer: \"Wien\", \"Niederösterreich\", \"Oberösterreich\", \"Steiermark\", \"Tirol\", \"Salzburg\", \"Kärnten\", \"Vorarlberg\", \"Burgenland\". One search per state. Empty = all of Austria. Use Willhaben URLs for a city or district.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Willhaben URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set (any section, category, city, price, rooms, make...), or links of single ads (https://www.willhaben.at/iad/.../d/...-1234567890). A search URL keeps its own filters; an ad link returns that ad with full details. Job pages and profiles are not supported.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Ads per search",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum ads for each keyword / state pair and each URL. Willhaben shows at most 199 800 ads of a search: above that the Actor cuts the search by state and price on its own and merges the parts, so a whole section can be exported.",
            "default": 100
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or above this amount (per month for rentals)."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at or below this amount (per month for rentals)."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "private",
              "dealer"
            ],
            "type": "string",
            "description": "Only private sellers or only dealers, agents and businesses. Empty = both."
          },
          "last48Hours": {
            "title": "Only ads of the last 48 hours",
            "type": "boolean",
            "description": "Only ads published in the last two days.",
            "default": false
          },
          "minArea": {
            "title": "Living area from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Real estate sections: smallest living area."
          },
          "maxArea": {
            "title": "Living area to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Real estate sections: largest living area."
          },
          "carMake": {
            "title": "Make",
            "type": "string",
            "description": "Cars and motorbikes: make as on Willhaben, for example \"VW\", \"BMW\", \"Mercedes-Benz\", \"Audi\"."
          },
          "carModel": {
            "title": "Model",
            "type": "string",
            "description": "Cars and motorbikes: model of the make above, for example \"Golf\", \"3er\"."
          },
          "minYear": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Cars and motorbikes: first model year."
          },
          "maxYear": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Cars and motorbikes: last model year."
          },
          "minMileage": {
            "title": "Minimum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Cars and motorbikes: at least this many kilometres."
          },
          "maxMileage": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Cars and motorbikes: at most this many kilometres."
          },
          "extraFilters": {
            "title": "More filters",
            "type": "object",
            "description": "Any other Willhaben filter as {\"name\": \"value\"}, with the names Willhaben uses in the address bar, for example {\"NO_OF_ROOMS_BUCKET\": \"3X3\", \"ENGINE/FUEL\": \"100004\"}. Easiest: set the filters on willhaben.at and paste the URL in \"Willhaben URLs\"."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "priceAsc",
              "priceDesc",
              "nearest",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first is the steadiest while ads are added during a run and the right one for monitoring.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Open the page of every ad to add the full description, labelled attributes, category path, all photos and the seller: name, phone, website, member since, number of ads. Included in the price of the ad, the run is slower.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new and price-changed",
            "type": "boolean",
            "description": "Output only ads that were not returned for the same search in the previous runs with the same monitor name, plus ads whose price changed (fields isNew, previousPrice, priceChange, priceChangePct). Sorted newest first, a run stops at the first group of pages with nothing new. Schedule the Actor to get new ads every hour. The first run returns everything.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen ads apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}