{
  "openapi": "3.0.1",
  "info": {
    "title": "Hong Kong Property Scraper – HK Sale & Rent Listings (No API)",
    "description": "Hong Kong Property scraper (hkp.com.hk), no API needed: about 8K for-sale and 3K for-rent listings with price, rent, price before cuts, saleable area, price per sq ft, bedrooms, floor, estate and coordinates. Filter by region, estate, bedrooms, school net, price and area. JSON/CSV/Excel export.",
    "version": "1.0",
    "x-build-id": "0hVGsHw3qLvag4QD3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/claude_code_reviewer~hkp-scraper-en/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-claude_code_reviewer-hkp-scraper-en",
        "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~hkp-scraper-en/runs": {
      "post": {
        "operationId": "runs-sync-claude_code_reviewer-hkp-scraper-en",
        "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~hkp-scraper-en/run-sync": {
      "post": {
        "operationId": "run-sync-claude_code_reviewer-hkp-scraper-en",
        "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": {
          "dealType": {
            "title": "🏠 Sale or rent",
            "enum": [
              "buy",
              "rent"
            ],
            "type": "string",
            "description": "Scrape for-sale or for-rent listings.",
            "default": "buy"
          },
          "regions": {
            "title": "📍 Regions",
            "maxItems": 3,
            "uniqueItems": true,
            "type": "array",
            "description": "Which regions to scrape. Leave empty for all of Hong Kong. Accepts Hong Kong Island, Kowloon, New Territories (Chinese names also work).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "bulkRegions": {
            "title": "📋 Regions (one per line)",
            "type": "string",
            "description": "Paste many at once: one region per line. Merged with the field above.",
            "default": ""
          },
          "estateIds": {
            "title": "🏘 Estate IDs",
            "type": "array",
            "description": "Only listings in these estates. Use Hong Kong Property estate IDs such as E000004317 (The Long Beach) — copy them from the estate_id field of any run. Leave empty for all estates.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "bulkEstateIds": {
            "title": "📋 Estate IDs (one per line)",
            "type": "string",
            "description": "Paste many at once: one estate ID per line. Merged with the field above.",
            "default": ""
          },
          "bedrooms": {
            "title": "🛏 Bedrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Only listings with these bedroom counts (multi-select). Leave empty for no filter. The site can only filter studio to 3 bedrooms; 4+ cannot be filtered.",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3"
              ],
              "enumTitles": [
                "Studio",
                "1 bedroom",
                "2 bedrooms",
                "3 bedrooms"
              ]
            },
            "default": []
          },
          "schoolNet": {
            "title": "🎓 Primary school net",
            "minimum": 1,
            "maximum": 999,
            "type": "integer",
            "description": "Only listings in this primary school net, e.g. 41 (Kowloon City) or 62 (Yuen Long). Leave empty for no filter."
          },
          "priceMin": {
            "title": "💰 Minimum price (HKD)",
            "minimum": 1,
            "type": "integer",
            "description": "Sale listings: asking price. Rent listings: monthly rent. In Hong Kong dollars, e.g. 5000000 for sale or 15000 for rent. Leave empty for no limit."
          },
          "priceMax": {
            "title": "💰 Maximum price (HKD)",
            "minimum": 1,
            "type": "integer",
            "description": "Sale listings: asking price. Rent listings: monthly rent. In Hong Kong dollars. Leave empty for no limit."
          },
          "netAreaMin": {
            "title": "📐 Minimum saleable area (sq ft)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Lower bound for saleable area in square feet. Leave empty for no limit."
          },
          "netAreaMax": {
            "title": "📐 Maximum saleable area (sq ft)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper bound for saleable area in square feet. Leave empty for no limit."
          },
          "sort": {
            "title": "↕️ Sort order",
            "enum": [
              "default",
              "latest",
              "price",
              "price_desc",
              "sale_perc_desc",
              "net_area",
              "net_area_desc",
              "net_ft_price",
              "net_ft_price_desc"
            ],
            "type": "string",
            "description": "How results are ordered. Use \"Newest first\" to monitor new listings.",
            "default": "latest"
          },
          "language": {
            "title": "🌐 Data language",
            "enum": [
              "zh-hk",
              "en"
            ],
            "type": "string",
            "description": "Language for region, estate, building, floor and orientation names. Field names are always English snake_case.",
            "default": "en"
          },
          "maxItems": {
            "title": "🔢 Max listings",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum listings to return in this run (all regions combined). Default 50, max 500.",
            "default": 50
          },
          "onlyNew": {
            "title": "🆕 Only new listings (monitoring)",
            "type": "boolean",
            "description": "When on, returns only listings that earlier runs with the same state name have not returned; already-seen listings are skipped and not charged. The first run behaves like a normal scrape and builds the memory. Off by default.",
            "default": false
          },
          "stateKey": {
            "title": "🔑 State name (optional)",
            "type": "string",
            "description": "Name of the memory that tracks which listings were already returned. Leave empty to derive it from sale/rent and the filters, so the same scheduled input resumes where it left off. Set your own name to keep separate memories for different schedules or integrations (most API callers reuse the same input). Letters, digits, \"_\" and \"-\" only, 1–100 characters. Only used when \"Only new listings\" is on."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy (Apify residential, Hong Kong exit by default)",
            "type": "object",
            "description": "Defaults to Apify residential proxy with a Hong Kong exit. hkp.com.hk returns 403 to datacenter IPs (tested: datacenter 3/3 blocked, residential Hong Kong 6/6 OK), so residential is required for this Actor to work. Each listing is about 3 KB of JSON, so proxy traffic cost is negligible. Change only for your own proxy or local testing.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "HK"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}