{
  "openapi": "3.0.1",
  "info": {
    "title": "Willhaben Scraper — Austria Marketplace Ads & Prices",
    "description": "Scrape willhaben.at, Austria's largest marketplace: ads by category, keyword and state or district. Title, price, price drops, condition, shipping or pickup, category, attributes, postcode, town, photos and dates; optional full description. Private sellers' data is never collected. No login.",
    "version": "0.1",
    "x-build-id": "vgcvAtM1QUGxbTlLK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~willhaben-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-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/yugenox~willhaben-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-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/yugenox~willhaben-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-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": {
          "categories": {
            "title": "🗂️ Categories",
            "type": "array",
            "description": "willhaben marketplace categories, by German name as on willhaben (\"Fahrräder\", \"E-Bikes\", \"Smartphones / Telefonie\", \"Mode / Accessoires\"), by id (4552) or as a category link. Top-level categories: Antiquitäten / Kunst, Baby / Kind, Beauty / Gesundheit / Wellness, Boote / Yachten / Jetskis, Bücher / Filme / Musik, Computer / Software, Dienstleistungen, Freizeit / Instrumente / Kulinarik, Games / Konsolen, Haus / Garten / Werkstatt, Kameras / TV / Multimedia, KFZ-Zubehör / Motorradteile, Mode / Accessoires, Smartphones / Telefonie, Spielen / Spielzeug, Sport / Sportgeräte, Tiere / Tierbedarf, Uhren / Schmuck, Wohnen / Haushalt / Gastronomie. Every sub-category works too. Each category is searched separately, every result page.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Words to look for, e.g. \"Cube Stereo\" or \"iPhone 15\". With categories: every ad in those categories whose title or description contains all words of a keyword (no limit). Without categories: willhaben's own page for that keyword (its first 30 best matches, when willhaben has a page for the keyword; others are skipped, not charged).",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "📍 Locations",
            "type": "array",
            "description": "Austrian states (\"Wien\", \"Tirol\", \"Steiermark\", or in English: \"Vienna\", \"Upper Austria\" …) or a state and district separated by a comma (\"Oberösterreich, Linz Land\", \"Wien, Simmering\", \"Oberösterreich, Linz\"). Each location is searched separately. Empty = all of Austria. A district willhaben doesn't know is skipped, not charged.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max ads",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of ads for the whole run, shared fairly between your searches. 0 = everything.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Also open every ad's own page for the full description (search results only carry the first ~250 characters), every item attribute (brand, size, model …), the category names and the first-published date. Slower (one extra page per ad) and charged per ad.",
            "default": false
          },
          "startUrls": {
            "title": "🔗 willhaben links",
            "type": "array",
            "description": "Optional: willhaben marketplace links. Category or search pages (filters in the link such as price, condition (Zustand), private/dealer and keyword are applied while reading), keyword pages (willhaben.at/iad/kaufen-und-verkaufen/l/…) or single ads (willhaben.at/iad/kaufen-und-verkaufen/d/…). Real estate, cars and jobs links are not supported.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "newest",
              "price-asc",
              "price-desc",
              "relevance"
            ],
            "type": "string",
            "description": "Order of the results. Newest first is willhaben's default for categories; keyword pages default to relevance."
          },
          "priceMin": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads at or above this price."
          },
          "priceMax": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads at or below this price. 0 finds free items (zu verschenken)."
          },
          "conditions": {
            "title": "Condition",
            "type": "array",
            "description": "Only items in these conditions. Empty = any (also ads without a condition).",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like-new",
                "refurbished",
                "used",
                "defective",
                "display-item"
              ],
              "enumTitles": [
                "New (Neu)",
                "Like new (Neuwertig)",
                "Refurbished (Generalüberholt)",
                "Used (Gebraucht)",
                "Defective (Defekt)",
                "Display item (Ausstellungsstück)"
              ]
            }
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "all",
              "private",
              "dealer"
            ],
            "type": "string",
            "description": "Private sellers, dealers or both. No seller's name, profile, phone, e-mail or address is ever collected.",
            "default": "all"
          },
          "delivery": {
            "title": "Handover",
            "enum": [
              "any",
              "shipping",
              "pickup"
            ],
            "type": "string",
            "description": "Only ads that offer shipping, or only ads that can be picked up.",
            "default": "any"
          },
          "payliveryOnly": {
            "title": "PayLivery only",
            "type": "boolean",
            "description": "Only ads you can buy online through willhaben PayLivery (buyer protection and delivery).",
            "default": false
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only ads published (or pushed to the top) in the last N days. With newest-first order the run stops as soon as it reaches older ads — ideal for daily monitoring. Empty = any time."
          },
          "maxPagesPerSearch": {
            "title": "Max result pages per search",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Each result page holds up to 100 ads. With filters or keywords inside categories, a search stops after this many pages (default 50 = 5,000 ads checked); without filters it reads as many as Max ads needs. 0 = default."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan. If willhaben refuses datacenter IPs for a while, the run switches to residential proxies when your account has them.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}