# Singapore HDB Resale Prices (`zriil/singapore-hdb-resale`) Actor

Singapore HDB resale flat transactions from the official data.gov.sg dataset (2017 to latest month). Filter by month, town, flat type and price; get price per sqm / sqft and remaining lease in years. Monitor mode returns only new transactions.

- **URL**: https://apify.com/zriil/singapore-hdb-resale.md
- **Developed by:** [zriil](https://apify.com/zriil) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 resale transaction

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Singapore HDB Resale Flat Prices (Official data.gov.sg)

Every **HDB resale flat transaction** in Singapore from January 2017 to the latest month, from the official data.gov.sg dataset — with **price per sqm and per sqft** and **remaining lease in years** already calculated. Filter by month, town, flat type and price, or turn on monitoring to get only new transactions.

Useful for property agents, buyers and sellers checking comparable prices, analysts tracking town-level trends, and apps or dashboards that need clean, current HDB data.

### What you get

| Field | Example |
|---|---|
| `month` | `2026-11` (registration month) |
| `town`, `streetName`, `block` | `Punggol`, `Sumang Walk`, `256C` |
| `flatType`, `flatModel` | `4 ROOM`, `Model A` |
| `storeyRange` | `10 TO 12` |
| `floorAreaSqm`, `floorAreaSqft` | `93`, `1001` |
| `resalePrice` | `670000` (SGD) |
| `pricePerSqm`, `pricePerSqft` | `7204`, `669` |
| `leaseCommenceYear`, `remainingLease`, `remainingLeaseYears` | `2016`, `89 years 02 months`, `89.17` |
| `source` | Required attribution |

### Input

- **From / To month** (`YYYY-MM`): defaults to the last 3 months. Data starts 2017-01.
- **Towns** and **flat types**: pick any; empty means all.
- **Min / max price**.
- **Only new results (monitoring)**: remembers what earlier runs returned and gives you only new transactions — pair it with an Apify schedule (e.g. weekly) to get a feed of new deals, and pay only for new records. Use different **monitor names** for different watch lists.
- **Max results**: caps how many transactions you are charged for.

### Pricing

You pay per transaction returned. Failed queries are not charged.

### Notes

- Contains information from "Resale flat prices based on registration date from Jan-2017 onwards" from data.gov.sg, made available under the terms of the Singapore Open Data Licence version 1.0. Attribution (with access date) is included in every record.
- The data is published at block and storey-range level by HDB; it does not identify individual units or owners.
- Requests are spaced at least 2 seconds apart to respect the public API.
- Not affiliated with HDB or data.gov.sg.

# Actor input Schema

## `monthFrom` (type: `string`):

YYYY-MM. Default: 3 months ago. Data starts 2017-01.

## `monthTo` (type: `string`):

YYYY-MM. Default: current month.

## `towns` (type: `array`):

Leave empty for all towns.

## `flatTypes` (type: `array`):

Leave empty for all flat types.

## `minPrice` (type: `integer`):

Lowest resale price to keep.

## `maxPrice` (type: `integer`):

Highest resale price to keep.

## `onlyNew` (type: `boolean`):

Remember what earlier runs returned and only return transactions not seen before (per monitor name). Pair with an Apify schedule. The first run returns all current matches. You are charged only for new records.

## `monitorName` (type: `string`):

Separate memory per name, e.g. one monitor per town. Letters, digits and dashes.

## `maxItems` (type: `integer`):

Stop after this many transactions (you are charged per transaction returned).

## Actor input object example

```json
{
  "onlyNew": false,
  "monitorName": "default",
  "maxItems": 1000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("zriil/singapore-hdb-resale").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 = {}

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

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

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

```

## CLI example

```bash
echo '{}' |
apify call zriil/singapore-hdb-resale --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zriil/singapore-hdb-resale"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OvxSW5W23TkzYeyn2/builds/YVcyCPhx0ns4nt6AV/openapi.json
