{
  "openapi": "3.0.1",
  "info": {
    "title": "OnTheHouse.com.au Scraper: Buy, Rent, Sold & History",
    "description": "Extract onthehouse.com.au buy, rent & sold listings by suburb, postcode or URL from $1.60-$2.00/1K rows ($0 detail fee by default). Get 59 fixed columns: prices, Cotality AVM estimates, multi-decade sales history, suburb rental yields & agent phones.",
    "version": "0.1",
    "x-build-id": "gRxfjlacDeCyOOjMj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kotaro001~onthehouse-com-au-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kotaro001-onthehouse-com-au-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/kotaro001~onthehouse-com-au-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kotaro001-onthehouse-com-au-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/kotaro001~onthehouse-com-au-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kotaro001-onthehouse-com-au-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": {
          "channel": {
            "title": "Channel",
            "enum": [
              "buy",
              "rent",
              "sold"
            ],
            "type": "string",
            "description": "Property market channel: buy (properties for sale), rent (rental listings), or sold (historical recorded sales with sold prices, dates and Cotality valuations). Each channel operates independently.",
            "default": "buy"
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Australian state code: NSW, VIC, QLD, WA, SA, TAS, ACT or NT. Upper and lower case both work.",
            "default": "QLD"
          },
          "suburb": {
            "title": "Suburb",
            "type": "string",
            "description": "Target Australian suburb or locality name (e.g. 'Buderim', 'Golden Beach', 'Richmond'). Combined with state and postcode to build the portal search URL.",
            "default": "Buderim"
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "Four-digit Australian postal code of the suburb (e.g. '4556', '4551', '3121'). OnTheHouse matches suburb, state, and postcode together.",
            "default": "4556"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Direct search catalog URLs from the portal. When provided, startUrls overrides the suburb/state search form above.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Optional filter: House, Unit, Townhouse, Apartment, Land. Matching is case-insensitive and filters listings after search pages are fetched.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price",
            "type": "integer",
            "description": "Minimum price or weekly rent in AUD. Listings marked Contact Agent or Auction without a numeric figure are preserved."
          },
          "maxPrice": {
            "title": "Max price",
            "type": "integer",
            "description": "Maximum price or weekly rent in AUD. Filters out listings exceeding this price threshold after pages are fetched."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "type": "integer",
            "description": "Minimum number of bedrooms (0 to 5). Applied after search pages are loaded."
          },
          "maxBedrooms": {
            "title": "Max bedrooms",
            "type": "integer",
            "description": "Maximum number of bedrooms (0 to 5). Applied after search pages are loaded."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "type": "integer",
            "description": "Minimum number of bathrooms (0 to 5). Applied after search pages are loaded."
          },
          "minCarSpaces": {
            "title": "Min car spaces",
            "type": "integer",
            "description": "Minimum number of garage bays or parking spaces (0 to 5). Applied after search pages are loaded."
          },
          "minLandSize": {
            "title": "Min land size (sqm)",
            "type": "integer",
            "description": "Minimum land parcel size in square metres. Applied after search pages are loaded; listings missing land area are preserved."
          },
          "maxLandSize": {
            "title": "Max land size (sqm)",
            "type": "integer",
            "description": "Maximum land parcel size in square metres. Applied after search pages are loaded."
          },
          "includeDetails": {
            "title": "Include detail pages",
            "type": "boolean",
            "description": "Open deep listing pages to unlock numeric prices behind Contact Agent listings, multi-decade sales history, floor area (sqm), features, and 4 Cotality suburb medians. Billed per detail page.",
            "default": false
          },
          "maxDetails": {
            "title": "Max detail pages",
            "type": "integer",
            "description": "Safety budget cap on deep listing detail visits per run when includeDetails is enabled (default: 50). Only active when 'Open detail pages' is checked. Zero additional charges if left disabled.",
            "default": 50
          },
          "maxItems": {
            "title": "Max listings",
            "type": "integer",
            "description": "Maximum listing records to output to your dataset.",
            "default": 20
          },
          "onlyEmitChanges": {
            "title": "Only emit changes",
            "type": "boolean",
            "description": "Change monitoring mode: emits only newly listed, price-adjusted, or delisted properties. Ideal for scheduled daily monitoring feeds.",
            "default": false
          },
          "includeRemovedListings": {
            "title": "Include removed listings",
            "type": "boolean",
            "description": "Emit a REMOVED row when an active listing disappears from search results during scheduled change monitoring.",
            "default": false
          },
          "stateKey": {
            "title": "Session ID / Change tracking slot",
            "type": "string",
            "description": "Optional session slot name for persistent price tracking & change detection. NOT an Apify API key or private password."
          },
          "minDaysOnMarket": {
            "title": "Minimum days on market",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings advertised for at least this many days (0 = no filter). If 0 results are returned, try resetting to 0 to include freshly listed properties.",
            "default": 0
          },
          "suburbs": {
            "title": "Suburbs (multi-area)",
            "type": "array",
            "description": "Optional list of multi-location strings (e.g. 'Buderim, QLD, 4556'). Each entry becomes an independent search, and all rows land in one dataset. You can also separate entries with a semicolon in the suburb field.",
            "items": {
              "type": "string"
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}