{
  "openapi": "3.0.1",
  "info": {
    "title": "Singapore HDB Resale Prices — Transaction Data API",
    "description": "Track Singapore HDB resale prices with price-per-sqft and lease detail. Clean JSON for analysts, researchers and AI agents.",
    "version": "0.0",
    "x-build-id": "DuY9wBNAcVabzSPJw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexgendata~sg-hdb-resale-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexgendata-sg-hdb-resale-prices",
        "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/nexgendata~sg-hdb-resale-prices/runs": {
      "post": {
        "operationId": "runs-sync-nexgendata-sg-hdb-resale-prices",
        "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/nexgendata~sg-hdb-resale-prices/run-sync": {
      "post": {
        "operationId": "run-sync-nexgendata-sg-hdb-resale-prices",
        "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": {
          "town": {
            "title": "HDB Town (exact match, UPPERCASE)",
            "enum": [
              "ALL",
              "ANG MO KIO",
              "BEDOK",
              "BISHAN",
              "BUKIT BATOK",
              "BUKIT MERAH",
              "BUKIT PANJANG",
              "BUKIT TIMAH",
              "CENTRAL AREA",
              "CHOA CHU KANG",
              "CLEMENTI",
              "GEYLANG",
              "HOUGANG",
              "JURONG EAST",
              "JURONG WEST",
              "KALLANG/WHAMPOA",
              "MARINE PARADE",
              "PASIR RIS",
              "PUNGGOL",
              "QUEENSTOWN",
              "SEMBAWANG",
              "SENGKANG",
              "SERANGOON",
              "TAMPINES",
              "TOA PAYOH",
              "WOODLANDS",
              "YISHUN"
            ],
            "type": "string",
            "description": "Filter to a single HDB town. HDB groups Singapore into 26 towns/estates. Examples: 'BUKIT TIMAH' (the most expensive HDB town — most million-dollar flats), 'BISHAN', 'ANG MO KIO', 'QUEENSTOWN', 'TOA PAYOH', 'TAMPINES', 'JURONG WEST', 'WOODLANDS', 'PUNGGOL', 'SENGKANG', 'CLEMENTI', 'BUKIT MERAH', 'KALLANG/WHAMPOA', 'MARINE PARADE', 'CENTRAL AREA'. Must be UPPERCASE exactly as HDB publishes. Leave empty to span all 26 towns.",
            "default": "ALL"
          },
          "flat_type": {
            "title": "Flat type (exact match, UPPERCASE)",
            "enum": [
              "ALL",
              "1 ROOM",
              "2 ROOM",
              "3 ROOM",
              "4 ROOM",
              "5 ROOM",
              "EXECUTIVE",
              "MULTI-GENERATION"
            ],
            "type": "string",
            "description": "HDB flat-type taxonomy. '1 ROOM' / '2 ROOM' (rare, mostly older Toa Payoh / Bukit Merah stock). '3 ROOM' (the legacy mass-market — ~70sqm). '4 ROOM' (Singapore's most-traded flat, ~90-105sqm — the median upgrade target). '5 ROOM' (~110-130sqm). 'EXECUTIVE' (~140-160sqm — premium, often Maisonette / Apartment models). 'MULTI-GENERATION' (rare 3-generation units). Leave 'ALL' to span every flat type.",
            "default": "ALL"
          },
          "min_price_sgd": {
            "title": "Minimum resale price (SGD)",
            "minimum": 0,
            "maximum": 5000000,
            "type": "integer",
            "description": "Lower bound on resale price in Singapore Dollars. Filters out cheaper transactions client-side after fetching from data.gov.sg. Useful for surfacing premium / million-dollar flats: set to 1000000 to find every million-dollar HDB resale (a heavily-tracked metric in Singapore property media). Leave 0 for no lower bound.",
            "default": 0
          },
          "max_price_sgd": {
            "title": "Maximum resale price (SGD)",
            "minimum": 0,
            "maximum": 5000000,
            "type": "integer",
            "description": "Upper bound on resale price in Singapore Dollars. Filters out expensive transactions client-side. Useful for first-time-buyer affordability research (set to 600000 to bound HDB grant + bank loan eligibility) or finding distressed / below-market sales. Leave 0 for no upper bound.",
            "default": 0
          },
          "transaction_month_from": {
            "title": "Transaction month from (YYYY-MM)",
            "type": "string",
            "description": "Lower bound on transaction month in 'YYYY-MM' format (e.g. '2024-01'). HDB publishes the registration month, not the OTP date. Use together with `transaction_month_to` to bound a window — for example '2025-01' to '2025-12' for full-year-2025 transactions. Leave empty for no lower bound (data starts at 2017-01)."
          },
          "transaction_month_to": {
            "title": "Transaction month to (YYYY-MM)",
            "type": "string",
            "description": "Upper bound on transaction month in 'YYYY-MM' format (e.g. '2026-03'). Pair with `transaction_month_from` to bound the window. HDB updates this dataset monthly with ~2,500-3,500 new transactions per release. Leave empty for no upper bound (returns up to the most recent published month)."
          },
          "million_dollar_only": {
            "title": "Only million-dollar flats (resale_price >= 1,000,000 SGD)",
            "type": "boolean",
            "description": "Quick filter for 'million-dollar HDB' transactions — the single most-tracked HDB metric in Singapore property media (Channel News Asia, Straits Times, Business Times all run regular features on million-dollar HDB sales). Equivalent to setting min_price_sgd=1000000. Useful for tracking the premium HDB market and identifying breakout estates (Bukit Timah, Bishan, Queenstown, Toa Payoh, Kallang/Whampoa most common).",
            "default": false
          },
          "limit": {
            "title": "Max transactions returned",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on total transactions returned in this run (1-2000). Each transaction is one dataset row. Premium pricing applies per row ($0.05/transaction). The most recent transactions are returned first (sorted by HDB registration order, descending).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}