# Singapore Hdb Resale Prices Scraper (`bigibyte/singapore-hdb-resale-prices-scraper`) Actor

Extract official Singapore HDB resale flat transaction data instantly. Filter by town or search terms, track transaction trends, and export clean datasets to JSON, CSV, or Excel for easy market analysis

- **URL**: https://apify.com/bigibyte/singapore-hdb-resale-prices-scraper.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Prices Scraper

![Singapore HDB Resale Prices Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/singapore-hdb-resale-prices-scraper-cover.png)

The **Singapore HDB Resale Prices Scraper** collects public Housing and Development Board (HDB) resale transaction records from Singapore's open data platform. Retrieve resale prices, towns, flat types, floor areas, lease details, and transaction dates. Filter by town or search terms and export structured data for property research, market analysis, and price monitoring.

### What This Actor Does

This Actor retrieves HDB resale transaction records and organizes them into clean, structured dataset entries.

You can collect resale transactions across Singapore or narrow the results using town filters and full-text search. The Actor supports paginated collection, allowing it to retrieve multiple batches of records until it reaches your selected item limit or the available results are exhausted.

Each record includes transaction month, town, flat type, block, street name, storey range, floor area, flat model, lease information, and resale price. Duplicate records are skipped using their unique record identifiers. If a request fails.

### Key Features

- **HDB Resale Transaction Collection:** Retrieve public Singapore HDB resale transaction records.
- **Town Filtering:** Focus on transactions from specific towns, such as Ang Mo Kio.
- **Full-Text Search:** Search available records using text queries.
- **Paginated Collection:** Retrieve multiple batches of records up to your selected limit.
- **Property Details:** Collect flat types, floor areas, storey ranges, lease details, and resale prices.
- **Duplicate Prevention:** Avoid repeated records using unique record identifiers.
- **Flexible Exports:** Export results as JSON, CSV, Excel, and other supported dataset formats.

### Input Configuration

Configure the Actor using the following parameters:

| Parameter | Description | Default |
|---|---|---|
| `mode` | Collection mode. Use `records` to retrieve HDB resale transactions. | `records` |
| `filters` | Optional object containing filters such as town. | No filters |
| `q` | Optional full-text search query. | No query |
| `maxItems` | Maximum number of records to save. | `100` |
| `requestDelayMs` | Delay between requests, in milliseconds. | `1000` |

#### Input Example

```json
{
  "mode": "records",
  "filters": {
    "town": "ANG MO KIO"
  },
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

You can also search without a town filter:

```json
{
  "mode": "records",
  "q": "ANG MO KIO",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

Use the `filters` object to narrow results by available dataset fields, or `q` to perform a full-text search.

### Output Data

Each successfully collected HDB resale transaction is saved as a structured dataset record.

#### Output Example

```json
{
  "_id": 1,
  "month": "2017-01",
  "town": "ANG MO KIO",
  "flat_type": "2 ROOM",
  "block": "406",
  "street_name": "ANG MO KIO AVE 10",
  "storey_range": "10 TO 12",
  "floor_area_sqm": "44",
  "flat_model": "Improved",
  "lease_commence_date": "1979",
  "remaining_lease": "61 years 04 months",
  "resale_price": "232000",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Description |
|---|---|
| `_id` | Unique identifier of the source record. |
| `month` | Month of the resale transaction. |
| `town` | Singapore town where the flat is located. |
| `flat_type` | HDB flat type, such as 2 ROOM or 4 ROOM. |
| `block` | Block number of the property. |
| `street_name` | Street name of the property. |
| `storey_range` | Storey range of the flat. |
| `floor_area_sqm` | Flat floor area in square metres. |
| `flat_model` | HDB flat model classification. |
| `lease_commence_date` | Year the flat's lease commenced. |
| `remaining_lease` | Remaining lease duration, when available. |
| `resale_price` | Recorded resale transaction price. |
| `scrapedAt` | Timestamp when the record was collected. |

### Use Cases

- **Town-Level Price Research:** Collect resale transactions from a specific Singapore town and compare recorded prices.
- **Flat Type Comparisons:** Analyze resale prices across different flat types, floor areas, and storey ranges.
- **Property Market Monitoring:** Run the Actor periodically to track newly available transaction records.
- **Housing Market Analysis:** Study historical transaction months, lease details, and resale price patterns.
- **Real Estate Dashboards:** Integrate structured property records into dashboards and business intelligence tools.
- **Research and Reporting:** Export HDB transaction datasets for spreadsheets, reports, and analytical workflows.

### Usage and Limits

- The Actor supports the `records` mode.
- Use `filters` to narrow results by available dataset fields, such as `town`.
- Use `q` for full-text searches.
- The Actor retrieves records in batches and continues through available pages until the item limit is reached or no more matching records are available.
- The default output limit is **100 records per run**.
- The maximum output is **1,000 records per run**.
- `maxItems` controls how many records are retained.
- Duplicate records are skipped using their `_id` values.
- The default request delay is approximately 1,000 milliseconds.
- The dataset is provided through Singapore's public open data platform under the Singapore Open Data Licence. Follow the applicable licence and attribution requirements.

### Frequently Asked Questions

**1. What information does this Actor collect?**

It collects HDB resale transaction details, including transaction month, town, flat type, block, street name, floor area, lease information, and resale price.

**2. Can I collect resale prices from a specific town?**

Yes. Use the `filters` parameter with a town value, such as `{"town": "ANG MO KIO"}`, to narrow the results.

**3. Can I search across the dataset?**

Yes. Provide a full-text query through the `q` parameter to search available transaction records.

**4. Does this Actor support historical resale data?**

Yes. It retrieves the historical transaction records available in the source dataset, subject to your filters and item limit.

**5. How many records can I collect per run?**

The default limit is 100 records, and the maximum is 1,000 records per run.

**6. Can I export the results to Excel or CSV?**

Yes. You can export the collected dataset in JSON, CSV, Excel, and other supported formats.

**7. Can I schedule automatic data collection?**

Yes. Use Apify schedules to periodically refresh the dataset and monitor new resale transaction records.

### Related Tools

Explore other BigiByte data collection tools:

- **New Jersey Construction Permits Scraper** – Collect public construction permit and property-related records.
- **Edmonton Business Licences Scraper** – Retrieve structured business licence records from Edmonton's open data.
- **Providence Business Licenses Scraper** – Collect public business licence records for research and analysis.

Looking for a scraper tailored to your business requirements? BigiByte builds custom web scrapers, data extraction tools, and automation solutions to help you collect and organize the data you need.

Visit [BigiByte](https://bigibyte.com) to explore our services.

### Trademark Notice

Singapore HDB, data.gov.sg, and their associated names, logos, and trademarks are the property of their respective owners. They are used solely to identify the source of the collected information. This Actor is an independent product and does not imply any affiliation, sponsorship, or endorsement by the Housing and Development Board or the Singapore Government.

### Disclaimer

This Actor is an independent data collection tool, endorsed by, sponsored by, or officially associated with the Housing and Development Board. The collected information is provided for research and informational purposes. BigiByte does not guarantee the accuracy, completeness, or continued availability of the source data. Users should verify important property information against the original source before making financial, property, or commercial decisions. Users are responsible for complying with applicable data licences and usage requirements.

### Is Web Scraping Legal?

This Actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** If collected information includes personal data, privacy laws such as GDPR and CCPA may apply. Collect and process such information responsibly.
- **Copyrighted Content:** Some website content may be protected by copyright. Check applicable permissions before reproducing or redistributing it.
- **Platform Terms and Rate Limits:** Respect the source's terms of use, applicable restrictions, the Singapore Open Data Licence, and attribution requirements.

This information is provided for general guidance only and does not constitute legal advice.

For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to scrape.

## `filters` (type: `object`):

CKAN filters object, e.g. {"town":"ANG MO KIO"}.

## `q` (type: `string`):

Optional full-text search (q) passed to datastore_search.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Polite pacing in milliseconds (about 1 request per second by default).

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "records",
  "filters": {
    "town": "ANG MO KIO"
  },
  "q": "ANG MO KIO",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

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

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "filters": {
        "town": "ANG MO KIO"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/singapore-hdb-resale-prices-scraper").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 = { "filters": { "town": "ANG MO KIO" } }

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/singapore-hdb-resale-prices-scraper").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 '{
  "filters": {
    "town": "ANG MO KIO"
  }
}' |
apify call bigibyte/singapore-hdb-resale-prices-scraper --silent --output-dataset

```

## MCP server setup

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

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/UoaBA3lLTqoJquiBc/builds/FEsH4ydjwrTU6lnGk/openapi.json
