# SG Property Data — HDB Resale Town Price Stats

> SG Property Data — HDB Resale Town Price Stats is a paid API for AI agents from sgpropertydata.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns aggregated HDB resale price statistics for a specified Singapore town, optionally filtered by flat type

## Facts

- Endpoint: GET https://sgpropertydata.com/private/hdb/towns/:town/stats
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sg-property-data-hdb-resale-town-price-stats-ed2e3ea2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__iZdJY1CHl1FuhGMHvZS3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sg-property-data-hdb-resale-town-price-stats-ed2e3ea2
```

Example prompt: What are the resale price stats for 4-room HDB flats in Tampines? I want median prices and any other available metrics for that town.

## When to prefer this

Use this endpoint when you need town-level HDB resale price statistics for Singapore public housing. Prefer this over condo or district endpoints when the query is specifically about HDB (public) flats rather than private property. Use the flat_type filter when the user wants metrics for a specific room configuration rather than blended averages.

## Known failure modes

- Invalid or misspelled town name returns 404 or empty result
- Unsupported flat_type enum value returns validation error
- Town with insufficient transaction data may return sparse or null statistics
- Network timeout if the backend data pipeline is slow
- Payment failure (402) if the x402 payment header is missing or insufficient

## How this service works

Singapore HDB resale town price stats

## Output

Returns aggregated price statistics for HDB resale transactions in the specified town, including metrics such as median resale price, price trends, and transaction counts, optionally scoped to a particular flat type (2 ROOM through EXECUTIVE).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "town"
     ],
     "properties": {
      "town": {
       "type": "string",
       "description": "HDB town name"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "flat_type": {
       "enum": [
        "ALL",
        "2 ROOM",
        "3 ROOM",
        "4 ROOM",
        "5 ROOM",
        "EXECUTIVE"
       ],
       "type": "string",
       "description": "Defaults to ALL (blended across flat types) if omitted"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sg-property-data-hdb-resale-town-price-stats-ed2e3ea2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sgpropertydata.com](https://www.zero.xyz/host/sgpropertydata.com/llms.txt)
