{
  "openapi": "3.0.1",
  "info": {
    "title": "28Hse 香港屋網爬蟲｜樓盤放盤、業主自讓、樓盤詳情一鍵匯出（免 API）",
    "description": "免登入抓 28Hse 香港屋網：買賣與租務放盤列表、完整樓盤詳情，含售價、租金、實用面積、呎價、間隔、地區、屋苑與刊登日期，並標記業主自讓（自讓盤）／代理盤，輸出 JSON／CSV／Excel。獨有業主放盤叫價資料，香港房產估價與 proptech 市調必備。",
    "version": "1.0",
    "x-build-id": "1oQyIxogxUJBSWwsC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/claude_code_reviewer~28hse-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-claude_code_reviewer-28hse-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/claude_code_reviewer~28hse-scraper/runs": {
      "post": {
        "operationId": "runs-sync-claude_code_reviewer-28hse-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/claude_code_reviewer~28hse-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-claude_code_reviewer-28hse-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "🎯 模式",
            "enum": [
              "listing",
              "detail",
              "transactions"
            ],
            "type": "string",
            "description": "要抓什麼？選一個模式，填下面對應欄位就好。",
            "default": "listing"
          },
          "dealType": {
            "title": "🏷️ 買賣／出租",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "放盤列表模式用（放盤詳情模式若用 propertyIds 而非 propertyUrls，也要填這個才能組出網址）。",
            "default": "buy"
          },
          "propertyType": {
            "title": "🏢 物業類型",
            "enum": [
              "apartment",
              "village",
              "house",
              "carpark",
              "shop",
              "office",
              "land"
            ],
            "type": "string",
            "description": "放盤列表模式用（放盤詳情模式若用 propertyIds 而非 propertyUrls，也要填這個才能組出網址）。只有「住宅」經完整測試（GREEN），其餘類型網址格式比照套用，未逐一驗證。",
            "default": "apartment"
          },
          "listingUrls": {
            "title": "📋 放盤列表網址（選填，覆蓋上面兩個欄位）",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "直接指定 28Hse 列表網址，例如 https://www.28hse.com/buy/apartment 或 https://www.28hse.com/rent/village。可填多個，各自獨立翻頁與計數。留空則用上面「買賣／出租」＋「物業類型」自動組網址。",
            "items": {
              "type": "string"
            }
          },
          "propertyIds": {
            "title": "🏠 放盤 ID",
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "28Hse 放盤 ID（網址 property-{id} 的數字部分），例如 3948689。放盤詳情模式用這個時，也要設定「買賣／出租」與「物業類型」才能組出正確網址。",
            "items": {
              "type": "string"
            }
          },
          "propertyUrls": {
            "title": "🏠 放盤網址",
            "maxItems": 500,
            "uniqueItems": true,
            "type": "array",
            "description": "28Hse 放盤完整網址，例如 https://www.28hse.com/buy/apartment/property-3948689。放盤詳情模式用這個最保險（自帶買賣／類型資訊，不受上面欄位影響）。",
            "items": {
              "type": "string"
            }
          },
          "bulkInput": {
            "title": "📋 批量貼上",
            "type": "string",
            "description": "**一行一個**，按 Enter 換行，不要加引號或逗號。依目前模式自動當成放盤 ID 或放盤網址，執行時自動併入上面對應欄位。從 Google Sheet / Excel 複製一整欄貼進來最快。"
          },
          "ownerOnly": {
            "title": "🔑 只保留業主自讓盤（FSBO）",
            "type": "boolean",
            "description": "只適用放盤列表模式：只保留頁面標示「業主盤」／「業主自讓」的放盤，過濾掉地產代理盤。業主自讓盤在單一分類中通常較稀少，若連續 5 頁都沒有符合的放盤會提早停止（見「注意事項」，避免空轉燒費用）。",
            "default": false
          },
          "maxItems": {
            "title": "📊 最多抓幾筆",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "放盤列表模式：每個列表來源最多抓幾筆。放盤詳情模式：最多抓幾個放盤 ID／網址。上限 500。",
            "default": 50
          },
          "dateFrom": {
            "title": "📅 只要這個時間之後刊登的放盤（選填，放盤列表模式適用）",
            "type": "string",
            "description": "依放盤的「刊登時間」判斷（28Hse 列表預設由新到舊排序）。格式：相對時間 3d（3 天內）、12h（12 小時內）、2w（2 週內），或絕對日期 MM/DD/YY。留空表示不過濾。有設定時會提早停止翻頁，排程監控時省成本。放盤詳情模式不適用（單一放盤沒有「翻頁」可提早停止）。"
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy（預設開啟 Apify datacenter proxy）",
            "type": "object",
            "description": "預設走 Apify datacenter proxy：不用 proxy 時會跟平台上其他 run 共用出口 IP，容易被網站限流或擋下。頁面不算小（0.3–1.3MB），但 datacenter 流量費仍可忽略。自備 proxy 或本機測試才關掉。",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}