# SG Property Data — HDB Town Price Statistics

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

Returns computed price metrics (median PSF, CAGR, percentile distribution, yearly trends, and remaining lease years) for HDB resale flats in a specified Singapore town, optionally filtered by flat type.

## Facts

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

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-town-price-statistics-c9b4aa9d
```

Example prompt: What are the current HDB resale price stats for Tampines — specifically 4-room flats? I want to see the median PSF, CAGR, and how prices have changed year-over-year.

## When to prefer this

Use this endpoint when you need aggregated, pre-computed HDB resale price statistics at the town level — including CAGR, PSF percentiles, and lease data — without having to process raw transaction records yourself. Prefer this over raw URA/HDB APIs when you need derived metrics like CAGR and remaining lease statistics ready to consume. Use the flat_type filter when the user cares about a specific flat configuration rather than a blended market view.

## Known failure modes

- Invalid or unrecognized town name returns 400 or empty result
- Town name spelling mismatch (e.g. 'Ang Mo Kio' vs 'ANG MO KIO') may cause no match
- Insufficient transaction data for a town/flat_type combination may return low-confidence or null CAGR
- Network or upstream data refresh lag may cause stale snapshot values
- Payment failure (x402) returns 402 before data is served

## How this service works

District, market-segment, town, and project-level price trends, CAGR, and rental yield for Singapore private residential property (condo and landed) and HDB resale flats, computed from URA and HDB records. REST and MCP access, priced per call for AI agents.

## Output

A JSON object containing: a CAGR value in percent per year with confidence level; a price snapshot with median, P25, and P75 PSF plus transaction count; a yearly breakdown array with median PSF and YoY change percent per year; and the median remaining lease years for the town and flat type specified.

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cagr": {
   "unit": "percent_per_year",
   "value": 2.1,
   "confidence": "high"
  },
  "snapshot": {
   "p25_psf": 510,
   "p75_psf": 565,
   "median_psf": 540,
   "transaction_count": 38
  },
  "yearly_breakdown": [
   {
    "year": 2025,
    "median_psf": 540,
    "yoy_change_pct": 1.8
   }
  ],
  "median_remaining_lease_years": 61.3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sg-property-data-hdb-town-price-statistics-c9b4aa9d/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)
