{
  "openapi": "3.0.1",
  "info": {
    "title": "Willhaben.at Fast Scraper (Immobilien, Cars & Marketplace)",
    "description": "Ultra-fast, no-browser Willhaben.at scraper extracting up to 100 listings per HTTP request from __NEXT_DATA__ JSON. Supports Real Estate, Used Cars, Marketplace, stateful New-Ads monitoring across runs, and full Markdown details.",
    "version": "0.1",
    "x-build-id": "weWqSWobHdCFRCBfk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ak_scrapers~willhaben-fast-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ak_scrapers-willhaben-fast-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/ak_scrapers~willhaben-fast-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ak_scrapers-willhaben-fast-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/ak_scrapers~willhaben-fast-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ak_scrapers-willhaben-fast-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": {
          "startUrls": {
            "title": "Direct Willhaben Search URLs (Optional)",
            "type": "array",
            "description": "Paste Willhaben search URLs from your browser (Immobilien, Gebrauchtwagen, Marktplatz, Jobs). Preserves all filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category (used if Start URLs is empty)",
            "enum": [
              "immobilien_rent",
              "immobilien_buy",
              "houses_buy",
              "houses_rent",
              "cars",
              "marketplace"
            ],
            "type": "string",
            "description": "Select Willhaben vertical.",
            "default": "immobilien_rent"
          },
          "region": {
            "title": "Region / Bundesland (Real Estate)",
            "type": "string",
            "description": "Austrian state (e.g. wien, niederoesterreich, oberoesterreich, steiermark, tirol, salzburg, kaernten, vorarlberg, burgenland).",
            "default": "wien"
          },
          "keyword": {
            "title": "Search Keyword (Optional)",
            "type": "string",
            "description": "Optional keyword query (e.g. 'Terrasse', 'BMW', 'iPhone 16').",
            "default": ""
          },
          "mode": {
            "title": "Scraping Mode",
            "enum": [
              "fast_summary",
              "full_details"
            ],
            "type": "string",
            "description": "'fast_summary' extracts 100 structured listings per request; 'full_details' also visits each ad page for full Markdown description, coordinates, deposit, and heating.",
            "default": "fast_summary"
          },
          "maxItems": {
            "title": "Max Listings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of unique listings to return.",
            "default": 100
          },
          "priceFrom": {
            "title": "Min Price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price filter in EUR."
          },
          "priceTo": {
            "title": "Max Price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price filter in EUR."
          },
          "areaFrom": {
            "title": "Min Living Area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum living area in square meters (Real Estate)."
          },
          "areaTo": {
            "title": "Max Living Area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum living area in square meters (Real Estate)."
          },
          "privateOnly": {
            "title": "Private Sellers Only (Privat)",
            "type": "boolean",
            "description": "Filter out commercial agencies/dealers.",
            "default": false
          },
          "sort": {
            "title": "Sort Order",
            "enum": [
              "newest",
              "price_asc",
              "price_desc",
              "relevance"
            ],
            "type": "string",
            "description": "Sort order for search results.",
            "default": "newest"
          },
          "publishedWithinHours": {
            "title": "Only Published Within Last N Hours (Optional)",
            "minimum": 0.1,
            "type": "number",
            "description": "Filter listings published within the last N hours (ideal for scheduled alerts)."
          },
          "onlyNewAds": {
            "title": "Stateful Monitor: Only Return New Ads Since Last Run",
            "type": "boolean",
            "description": "Stores seen ad IDs in Apify Key-Value Store so scheduled runs only output and bill brand-new listings.",
            "default": false
          },
          "stateStoreName": {
            "title": "State Key-Value Store Name",
            "type": "string",
            "description": "Named Apify Key-Value Store used when 'onlyNewAds' is enabled.",
            "default": "willhaben-seen-ads"
          },
          "includeMarkdown": {
            "title": "Include Markdown Description (Full Details mode)",
            "type": "boolean",
            "description": "Include clean Markdown formatting alongside plain text in full_details mode.",
            "default": true
          },
          "concurrency": {
            "title": "Detail Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of parallel detail page requests in full_details mode.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy (Residential / Austria) recommended for large or frequent runs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "AT"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}