# Singapore HDB Property Information Scraper (`hipersoft/singapore-hdb-property-information`) Actor

Export master data for every HDB block in Singapore (~13,300 blocks): address, town, year completed, max floor, total units, unit mix by flat type (sold & rental) and amenities (market/hawker, carpark, commercial, pavilion). Filter by town, street, year. Public open data, no key.

- **URL**: https://apify.com/hipersoft/singapore-hdb-property-information.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Categories:** Real estate, Other
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.002 / block scraped

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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Property Information Scraper

Export **master data for every HDB block in Singapore** — around **13,300 blocks** — into clean JSON, CSV or Excel. Each row has **address, town, year completed, max floor, total dwelling units, the full unit mix by flat type (sold & rental) and building amenities**. Powered by HDB's **open data** (data.gov.sg) — fast, no browser, no login, no key.

Perfect for **property tools, real-estate research, neighbourhood analysis, town planning and enriching HDB address data**.

### What you get, per block

- 📍 **Location** — block, street, address, **town** (full name, decoded from HDB codes)
- 🏢 **Building** — year completed, max floor level, total dwelling units
- 🏠 **Unit mix (sold)** — 1/2/3/4/5-room, executive, multi-generation, studio apartment
- 🔑 **Unit mix (rental)** — 1/2/3-room and other rental units
- 🛒 **Amenities** — residential, commercial, market/hawker, multi-storey carpark, precinct pavilion, miscellaneous

### Filters

- **`town`** — full name (e.g. `Tampines`) or HDB code (e.g. `TAP`)
- **`street`** — match block+street text
- **`yearFrom` / `yearTo`** — year-completed range
- **`hasMarketHawker`** — only blocks with a market or hawker centre
- **`maxItems`** — cap the export (~13,300 total)

### Example input

```json
{ "town": "Bishan", "hasMarketHawker": true, "maxItems": 100 }
```

### Output

```json
{
  "block": "151A",
  "street": "BISHAN ST 11",
  "address": "151A BISHAN ST 11",
  "townCode": "BH",
  "town": "Bishan",
  "maxFloorLevel": 25,
  "yearCompleted": 1997,
  "totalDwellingUnits": 120,
  "amenities": { "residential": true, "commercial": false, "marketHawker": true, "multistoreyCarpark": true, "precinctPavilion": false, "miscellaneous": false },
  "unitsSold": { "oneRoom": 0, "twoRoom": 0, "threeRoom": 40, "fourRoom": 60, "fiveRoom": 20, "executive": 0, "multiGeneration": 0, "studioApartment": 0 },
  "unitsRental": { "oneRoom": 0, "twoRoom": 0, "threeRoom": 0, "other": 0 },
  "sourceUrl": "https://data.gov.sg/collections/150/view",
  "collectedAt": "2026-07-30T12:00:00.000Z"
}
```

### Notes

Data is © HDB, published under the **Singapore Open Data Licence** (commercial reuse permitted). Use responsibly and in line with the licence terms.

# Actor input Schema

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

Filter by town — full name (e.g. Tampines) or HDB code (e.g. TAP). Leave empty for all.

## `street` (type: `string`):

Match blocks whose block+street contains this text. Leave empty for all.

## `yearFrom` (type: `integer`):

Only blocks completed in or after this year.

## `yearTo` (type: `integer`):

Only blocks completed in or before this year.

## `hasMarketHawker` (type: `boolean`):

Return only blocks that have a market or hawker centre.

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

Maximum blocks to return. There are ~13,300 in total.

## Actor input object example

```json
{
  "hasMarketHawker": false,
  "maxItems": 20000
}
```

# 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": "",
    "street": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/singapore-hdb-property-information").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": "",
    "street": "",
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/singapore-hdb-property-information").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": "",
  "street": ""
}' |
apify call hipersoft/singapore-hdb-property-information --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hipersoft/singapore-hdb-property-information",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/20hbtBVby8lpZrJkm/builds/q8xhL7xOjqDmjREih/openapi.json
