# Singapore HDB Resale Price Comparables (`jpmarketdata/singapore-hdb-resale-price-comparables`) Actor

Export Singapore HDB registered resale comparables by month, town and flat type for price, floor area and lease analysis.

- **URL**: https://apify.com/jpmarketdata/singapore-hdb-resale-price-comparables.md
- **Developed by:** [h ichi](https://apify.com/jpmarketdata) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 record delivereds

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/actors/running/actors-in-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 Price Comparables

Export Singapore HDB registered resale comparables by month, town and flat type for price, floor area and lease analysis.

Independent tool by jpmarketdata using published Housing & Development Board statistics.

### Input

- **Registration month**. HDB resale registration month in YYYY-MM. The source begins in January 2017.
- **HDB town**. Exact uppercase HDB town name such as TOA PAYOH. Leave blank to match all towns.
- **Flat type**. Use the exact flat category maintained in HDB's source.
- **Maximum comparables**. The maximum number of matching observations from one source snapshot.

```json
{
  "registrationMonth": "2026-10",
  "town": "TOA PAYOH",
  "flatType": "4 ROOM",
  "maxRecords": 25
}
```

### Output

One matching resale observation per row. Use resale price, area and grouped property traits to study comparables in the selected cohort. HDB registration month can differ from the agreement date. HDB excludes some transactions that may not reflect market price. Figures are indicative. Identical visible rows can represent distinct source records.

The Coverage record reports requested scope, source identity and delivery counts. The requested source data is validated before output begins. Failed source retrieval has no record charge. Keep the source notice in Coverage together with the delivered dataset.

**Price**: $0.001 per delivered record.

### Limits

One registration month, one flat type, an optional town and up to 500 rows in one request. The source orders matching rows by its internal snapshot ID. Coverage exposes matching source totals and whether every matching row was delivered. An empty cohort or failed source check produces no paid records.

### Privacy

Project the fixed resale attributes at the source. Exclude block, street, unit, buyer and seller details, and withhold the internal source row ID from export.

### Sources and attribution

Source Housing & Development Board, [Resale flat prices based on registration date from Jan-2017 onwards](https://data.gov.sg/datasets/d_8b84c4ee58e3cfc0ece0d773c8ca6abc/view), from [Data.gov.sg Datastore Search](https://guide.data.gov.sg/developer-guide/dataset-apis/search-and-filter-within-dataset) under the [Singapore Open Data Licence](https://developers.data.gov.sg/open-data-licence). Each run's Coverage shows the dataset access time and licence link. For downstream reuse beyond this export, use the publisher's dataset and licence. API access follows the [data.gov.sg API terms](https://developers.data.gov.sg/privacy-and-terms#api-terms-of-service).

# Actor input Schema

## `registrationMonth` (type: `string`):

HDB resale registration month in YYYY-MM. The source begins in January 2017.

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

Exact uppercase HDB town name such as TOA PAYOH. Leave blank to match all towns.

## `flatType` (type: `string`):

Use the exact flat category maintained in HDB's source.

## `maxRecords` (type: `integer`):

The maximum number of matching observations from one source snapshot.

## Actor input object example

```json
{
  "registrationMonth": "2026-10",
  "town": "TOA PAYOH",
  "flatType": "4 ROOM",
  "maxRecords": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `coverage` (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 = {
    "registrationMonth": "2026-10",
    "town": "TOA PAYOH",
    "flatType": "4 ROOM",
    "maxRecords": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("jpmarketdata/singapore-hdb-resale-price-comparables").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 = {
    "registrationMonth": "2026-10",
    "town": "TOA PAYOH",
    "flatType": "4 ROOM",
    "maxRecords": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("jpmarketdata/singapore-hdb-resale-price-comparables").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 '{
  "registrationMonth": "2026-10",
  "town": "TOA PAYOH",
  "flatType": "4 ROOM",
  "maxRecords": 25
}' |
apify call jpmarketdata/singapore-hdb-resale-price-comparables --silent --output-dataset

```

## MCP server setup

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

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/gB70UuQQJKfUDXTHV/builds/Vo99Rw3Wz9OOwE0pv/openapi.json
