{
  "openapi": "3.0.1",
  "info": {
    "title": "Willhaben Vienna Real Estate Listings",
    "description": "Normalize buyer-owned, advertiser-authorized, partner-interface, or licensed Willhaben exports into stable evidence rows with property facts, freshness, gaps, review priority, and current-run settlement. No Willhaben login, scraping, API call, URL fetch, or automatic property decision.",
    "version": "0.2",
    "x-build-id": "STuay2hhrdczeKGhG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zinin~willhaben-vienna/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zinin-willhaben-vienna",
        "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/zinin~willhaben-vienna/runs": {
      "post": {
        "operationId": "runs-sync-zinin-willhaben-vienna",
        "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/zinin~willhaben-vienna/run-sync": {
      "post": {
        "operationId": "run-sync-zinin-willhaben-vienna",
        "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": {
          "schemaVersion": {
            "title": "Contract version",
            "enum": [
              "2.0"
            ],
            "type": "string",
            "description": "Closed public input contract version.",
            "default": "2.0"
          },
          "authorization": {
            "title": "Authorization confirmation",
            "enum": [
              "I confirm I am authorized to process and deliver these Willhaben listing records"
            ],
            "type": "string",
            "description": "Required for listings. This is a buyer attestation, not independent verification by the Actor."
          },
          "sourceContext": {
            "title": "Source context",
            "enum": [
              "buyer_owned_listing_export",
              "advertiser_authorized_export",
              "willhaben_partner_interface_export",
              "other_licensed_property_export"
            ],
            "type": "string",
            "description": "Required buyer-attested origin category for listing records."
          },
          "listings": {
            "title": "Authorized listing records",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "One to 100 closed listing records. Records that pass this public shape but fail runtime semantics contribute to one free diagnostic; duplicate listingId values are delivered once.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "listingId",
                "title",
                "price",
                "currency",
                "dealType",
                "sourceName",
                "sourceLicense"
              ],
              "properties": {
                "listingId": {
                  "title": "Listing ID",
                  "description": "Buyer-supplied listing id for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "listingUrl": {
                  "title": "Recorded listing URL",
                  "description": "Optional www.willhaben.at listing reference; recorded but never fetched.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 700,
                  "pattern": "^https://www\\.willhaben\\.at/iad/immobilien/d/"
                },
                "title": {
                  "title": "Title",
                  "description": "Buyer-supplied title for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500,
                  "pattern": "\\S"
                },
                "price": {
                  "title": "Price",
                  "description": "Buyer-supplied price for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": 0,
                  "maximum": 10000000000
                },
                "currency": {
                  "title": "Currency",
                  "description": "Buyer-supplied currency for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "pattern": "^[A-Za-z]{3}$"
                },
                "dealType": {
                  "title": "Deal Type",
                  "description": "Buyer-supplied deal type for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "enum": [
                    "rent",
                    "sale"
                  ]
                },
                "propertyType": {
                  "title": "Property Type",
                  "description": "Buyer-supplied property type for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "\\S"
                },
                "rooms": {
                  "title": "Rooms",
                  "description": "Buyer-supplied rooms for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": 0,
                  "maximum": 100
                },
                "areaSqm": {
                  "title": "Area Sqm",
                  "description": "Buyer-supplied area sqm for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": 0,
                  "maximum": 10000000
                },
                "location": {
                  "title": "Location",
                  "description": "Buyer-supplied location for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "minLength": 1,
                  "maxLength": 300,
                  "pattern": "\\S"
                },
                "latitude": {
                  "title": "Latitude",
                  "description": "Buyer-supplied latitude for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": -90,
                  "maximum": 90
                },
                "longitude": {
                  "title": "Longitude",
                  "description": "Buyer-supplied longitude for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "number",
                  "nullable": true,
                  "minimum": -180,
                  "maximum": 180
                },
                "postedAt": {
                  "title": "Posted At",
                  "description": "Buyer-supplied posted at for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 40,
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$"
                },
                "description": {
                  "title": "Description",
                  "description": "Optional buyer-supplied summary, limited to 1000 characters. Remove names, phones, emails and confidential terms unless strictly necessary and authorized.",
                  "type": "string",
                  "nullable": true,
                  "minLength": 1,
                  "maxLength": 1000,
                  "pattern": "\\S"
                },
                "images": {
                  "title": "Images",
                  "description": "Optional recorded HTTPS image references; never fetched by this Actor.",
                  "type": "array",
                  "maxItems": 5,
                  "uniqueItems": true,
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 700,
                    "pattern": "^https://"
                  }
                },
                "sourceName": {
                  "title": "Authorized source label",
                  "description": "Buyer-supplied source name for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "\\S"
                },
                "sourceLicense": {
                  "title": "Rights statement",
                  "description": "Buyer-supplied processing and downstream delivery rights statement; recorded but not independently verified.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 700,
                  "pattern": "\\S"
                },
                "sourceRetrievedAt": {
                  "title": "Source retrieved at",
                  "description": "Buyer-supplied source retrieved at for the authorized property or listing record; recorded as submitted and not independently verified by the Actor.",
                  "type": "string",
                  "nullable": true,
                  "maxLength": 40,
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$"
                }
              }
            },
            "default": [
              {
                "listingId": "authorized-vienna-1001",
                "listingUrl": "https://www.willhaben.at/iad/immobilien/d/mietwohnungen/wien/wien-1020-leopoldstadt/authorized-example-1001/",
                "title": "Authorized Vienna apartment evidence",
                "price": 1290,
                "currency": "EUR",
                "dealType": "rent",
                "propertyType": "Wohnung",
                "rooms": 2,
                "areaSqm": 54.5,
                "location": "Wien, 2. Bezirk, Leopoldstadt",
                "latitude": 48.216,
                "longitude": 16.392,
                "postedAt": "2026-08-12T08:30:00Z",
                "description": "Buyer-supplied minimal listing summary with unnecessary personal contact data removed.",
                "images": [],
                "sourceName": "Advertiser-authorized listing export",
                "sourceLicense": "Buyer confirms authorization to process and deliver this listing record.",
                "sourceRetrievedAt": "2026-08-13T00:00:00Z"
              }
            ]
          },
          "deal_type": {
            "title": "Legacy deal type",
            "enum": [
              "mietwohnungen",
              "eigentumswohnung"
            ],
            "type": "string",
            "description": "Migration-only legacy input; never fetched and produces one free diagnostic."
          },
          "city": {
            "title": "Legacy city",
            "pattern": "\\S",
            "minLength": 1,
            "maxLength": 120,
            "type": "string",
            "description": "Migration-only legacy label; never used in a request."
          },
          "max_items": {
            "title": "Legacy maximum items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Accepted only as part of a legacy migration diagnostic; no listing is fetched."
          },
          "max_pages": {
            "title": "Legacy maximum pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Accepted only as part of a legacy migration diagnostic; no page is fetched."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}