# Singapore HDB Resale Prices — Transaction Data API (`nexgendata/sg-hdb-resale-prices`) Actor

Track Singapore HDB resale prices with price-per-sqft and lease detail. Clean JSON for analysts, researchers and AI agents.

- **URL**: https://apify.com/nexgendata/sg-hdb-resale-prices.md
- **Developed by:** [NexGenData](https://apify.com/nexgendata) (community)
- **Categories:** Business, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 singapore hdb resale transaction records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Singapore HDB Resale Prices

Track Singapore HDB resale prices with price-per-sqft and lease detail. Built for analysts, researchers, fintech builders and AI agents.

### 📊 What you get
Clean JSON, one record per transaction (full output has 17 fields):

- `address` — Address
- `block` — Block
- `data_source` — Source of the data
- `flat_model` — Flat model
- `flat_type` — Flat type
- `floor_area_sqft` — Floor area sqft
- `floor_area_sqm` — Floor area sqm
- `is_million_dollar_flat` — Is million dollar flat
- `lease_commence_year` — Lease commence year
- `price_per_sqft_sgd` — Price per sqft sgd
 Records include a `data_source` field.

**Pricing:** $0.05 per transaction (Pay-Per-Event) — about **20 transactions per $1**.

### 🤖 Use with AI agents
Structured JSON built for LLM and agent pipelines — point Claude, the OpenAI Agents SDK, an n8n flow or any MCP-aware client at it and pull Singapore HDB resale prices with PSF and lease data on demand.

**Sample agent prompt:**
````

List million-dollar HDB flats sold this year with price per sqft.

````

**Agentic payments (x402):** Supports agentic payment via x402 — agents can call this actor with USDC, no API key required.

### ⏰ Run on a schedule
This is a monitoring play — schedule a recurring pull:
```json
{
  "limit": 50
}
````

### 🔗 Related Singapore actors

**Singapore data suite:** [ACRA Company Search](https://apify.com/nexgendata/singapore-acra-companies), [SGX Announcements](https://apify.com/nexgendata/sgx-company-announcements), [GeBIZ Tenders](https://apify.com/nexgendata/singapore-gebiz-tenders), [HDB Resale](https://apify.com/nexgendata/singapore-hdb-resale-tracker)

**Cross-market hubs:** [APAC Disclosure Monitor](https://apify.com/nexgendata/apac-disclosure-monitor), [APAC IPO Calendar Sweep](https://apify.com/nexgendata/apac-ipo-calendar-sweep)

***

*Data from public Singapore sources.*

# Actor input Schema

## `town` (type: `string`):

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.

## `flat_type` (type: `string`):

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.

## `min_price_sgd` (type: `integer`):

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.

## `max_price_sgd` (type: `integer`):

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.

## `transaction_month_from` (type: `string`):

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` (type: `string`):

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` (type: `boolean`):

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).

## `limit` (type: `integer`):

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).

## Actor input object example

```json
{
  "town": "ALL",
  "flat_type": "ALL",
  "min_price_sgd": 0,
  "max_price_sgd": 0,
  "million_dollar_only": false,
  "limit": 10
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "town": "ALL",
    "flat_type": "ALL",
    "min_price_sgd": 0,
    "max_price_sgd": 0,
    "transaction_month_from": "",
    "transaction_month_to": "",
    "million_dollar_only": false,
    "limit": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgendata/sg-hdb-resale-prices").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "town": "ALL",
    "flat_type": "ALL",
    "min_price_sgd": 0,
    "max_price_sgd": 0,
    "transaction_month_from": "",
    "transaction_month_to": "",
    "million_dollar_only": False,
    "limit": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("nexgendata/sg-hdb-resale-prices").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "town": "ALL",
  "flat_type": "ALL",
  "min_price_sgd": 0,
  "max_price_sgd": 0,
  "transaction_month_from": "",
  "transaction_month_to": "",
  "million_dollar_only": false,
  "limit": 10
}' |
apify call nexgendata/sg-hdb-resale-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=nexgendata/sg-hdb-resale-prices",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
