# Taiwan Real Estate Transactions — Official Prices (實價登錄) (`taiwan-open-data/my-actor`) Actor

Official Taiwan property sale, pre-sale and rental prices from the Ministry of the Interior open data, as clean English JSON: ISO dates, TWD per ping and per m², building type, age and floors. For analysts, proptech and AI agents.

- **URL**: https://apify.com/taiwan-open-data/my-actor.md
- **Developed by:** [Taiwan Open Data](https://apify.com/taiwan-open-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 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/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

## Taiwan Real Estate Transactions — Official Actual Prices (實價登錄)

**Get the official sale, pre-sale and rental prices of every property deal in Taiwan as clean English JSON, and get only the new deals on a schedule.** These are the prices legally reported to the Ministry of the Interior (MOI), not asking prices from listing sites.

- 🏛️ **Official source**: MOI Real Estate Transaction Actual Price open data (實價登錄), released under Taiwan's Open Government Data License v1.0 (commercial reuse allowed with attribution).
- 🌐 **English, analysis-ready**: ISO dates (converted from the ROC calendar), building types, materials, uses and zoning translated, floors parsed to numbers, building age at sale computed.
- 📐 **Ping and m²**: unit prices in TWD per m² *and* per ping (坪), areas in both units.
- 🔔 **Scheduled monitor**: turn on `onlyNew` and schedule weekly. Each run returns only transactions you have not received before, so you pay only for new deals in the market you watch.
- 📊 **District medians included**: every run's `OUTPUT` has the median TWD per ping by district, free of charge.
- 🚩 **Flags for outliers**: related-party deals, parking-only deals, urban-renewal allocations, unregistered additions and more, parsed from the official notes.
- 🤖 **Agent-ready**: works from the Apify MCP server, so Claude, ChatGPT and other agents can answer "what did flats in Da'an sell for last quarter?" with real data.

### What you get

One record per registered transaction:

```json
{
  "id": "RPSNMLKKJIIGFAA76DA",
  "season": "112S4",
  "recordType": "sale",
  "cityEn": "Taipei City",
  "district": "文山區",
  "address": "臺北市文山區汀州路四段２９１號六樓",
  "transactionTargetEn": "land_building",
  "transactionDate": "2023-11-01",
  "totalPriceTwd": 6884471,
  "unitPriceTwdPerSqm": 58857,
  "unitPriceTwdPerPing": 194569,
  "buildingAreaSqm": 116.97,
  "buildingAreaPing": 35.38,
  "buildingTypeEn": "Residential high-rise (11+ floors, elevator)",
  "mainUseEn": "Residential",
  "mainMaterialEn": "Steel-reinforced concrete (SRC)",
  "completionDate": "2023-04-20",
  "buildingAgeYears": 0.6,
  "floors": [6],
  "totalFloors": 22,
  "rooms": 3, "livingRooms": 2, "bathrooms": 2,
  "hasElevator": true,
  "flags": ["urban_renewal"],
  "source": {"name": "Ministry of the Interior (Taiwan) …", "license": "Open Government Data License, version 1.0 (Taiwan)"}
}
```

Leases use `rentTwd` (monthly rent) instead of `totalPriceTwd` and add `furnished`, `rentalType`, `leasePeriod`, `equipment`. Pre-sale records add `projectName`, `buildingUnit` and `cancellation`.

The run's key-value store also gets an `OUTPUT` summary with the **median TWD per ping by district** for the records returned.

### Who uses it

- Proptech and real-estate analytics teams building Taiwan price indices or valuation models
- Investors and relocation advisers comparing districts in Taipei, Hsinchu, Taichung, Kaohsiung…
- Researchers and journalists studying Taiwan housing affordability
- AI agents that need trustworthy Taiwan property prices instead of guessing

### Input

| Field | Example | Notes |
|---|---|---|
| `cities` | `["Taipei City", "Hsinchu County"]` | English or Chinese names or letter codes. Empty = all 22 cities and counties. |
| `recordTypes` | `["sale"]` | `sale`, `presale`, `lease` |
| `seasons` | `["latest"]` or `["115S2", "115S1"]` | Quarterly files. `115S2` = 2026 Q2 (ROC year + 1911). |
| `districts` | `["大安區"]` | Chinese district names; partial match. |
| `minDate` / `maxDate` | `"2026-01-01"` / `"2026-06"` | Filter on transaction date. |
| `minPriceTwd` / `maxPriceTwd` | `10000000` | Total price (sales) or monthly rent (leases). |
| `transactionTargets` | `["land_building", "land_building_parking"]` | Skip land-only or parking-only deals. |
| `excludeRelatedParty` | `true` | Drop deals between relatives or co-owners. |
| `excludeParkingOnly` | `true` | Drop parking-space-only deals. |
| `onlyNew` | `true` | Scheduled monitor: only transactions not returned by earlier runs. |
| `monitorName` | `"daan-watch"` | Separate state per scheduled task. |
| `maxItems` | `1000` | Hard cap on records (and cost). |
| `includeRawFields` | `false` | Also return every original Chinese column. |

Example — flats sold in Taipei's Da'an district in the latest quarter, excluding related-party deals:

```json
{
  "cities": ["Taipei City"],
  "districts": ["大安區"],
  "transactionTargets": ["land_building", "land_building_parking"],
  "excludeRelatedParty": true,
  "maxItems": 500
}
```

Example — weekly alert for new flat sales in Hsinchu (schedule this as a task):

```json
{
  "cities": ["Hsinchu City", "Hsinchu County"],
  "transactionTargets": ["land_building", "land_building_parking"],
  "onlyNew": true,
  "monitorName": "hsinchu-flats",
  "seasons": ["latest"]
}
```

The first run saves what is already published and returns nothing; later runs return only new transactions. A run with nothing new costs only the start fee.

### Pricing

Pay per result: you are charged for each transaction record returned, plus a small start fee. Set `maxItems` to cap your spend. There is no charge for the district-median summary.

### Good to know

- **No personal names.** Addresses are returned exactly as the government publishes them (older records show house-number ranges; since the 2021 reform most show the full address). This Actor adds no personal data.
- **Reporting lag**: a quarter's file contains transactions *reported* in that quarter, which can include deals from earlier months. Use `minDate` / `maxDate` to filter by actual transaction date.
- **Unit price** (`unitPriceTwdPerSqm`) is the government's figure. It is empty for land-only and parking-only deals.
- District names stay in Chinese (as in the source) so they match official records exactly.

### Use with AI agents (MCP)

Connect any MCP client (Claude, Cursor, ChatGPT and others) to `https://mcp.apify.com/?tools=taiwan-open-data/my-actor` and sign in with Apify. Agents can call it with a small `maxItems` to answer questions with real, citable data. The same server is listed in the official MCP Registry as `io.github.Ray-Shi-Dev/taiwan-open-data`.

### Source and attribution

Data: Ministry of the Interior, Republic of China (Taiwan) — Real Estate Transaction Actual Price Query Service, https://plvr.land.moi.gov.tw/DownloadOpenData. Licensed under the Open Government Data License, version 1.0. This Actor is independent and not endorsed by the Ministry of the Interior.

# Actor input Schema

## `cities` (type: `array`):

English name ("Taipei City", "New Taipei"), Chinese name ("臺北市" or "台北市") or letter code ("A"). Leave empty for all 22 cities and counties.

## `recordTypes` (type: `array`):

Any of "sale" (existing property sales), "presale" (pre-sale housing) and "lease" (rentals).

## `seasons` (type: `array`):

Quarterly release files, written as ROC year + quarter: "115S2" = 2026 Q2 (ROC year = Gregorian year − 1911). "latest" picks the newest published quarter. Up to 12 per run. Note: a quarter's file contains transactions reported in that quarter, which can include older deals.

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

For scheduled runs. The first run saves the transactions already published and returns nothing; every later run returns only transactions this monitor has not returned before. Combine with cities, districts and price filters to watch one market.

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

Only used with "Only new transactions". Give each scheduled task its own name so their states do not mix, e.g. "taipei-daan-watch".

## `districts` (type: `array`):

Optional. District names in Chinese as they appear in the data, e.g. "大安區". Partial matches work ("大安").

## `minDate` (type: `string`):

Optional. ISO date, e.g. "2026-01-01".

## `maxDate` (type: `string`):

Optional. ISO date or month, e.g. "2026-06-30" or "2026-06".

## `minPriceTwd` (type: `integer`):

Optional. Total price for sales; monthly rent for leases.

## `maxPriceTwd` (type: `integer`):

Optional. Total price for sales; monthly rent for leases.

## `transactionTargets` (type: `array`):

Optional. Any of "land_building", "land_building_parking", "building", "land", "parking".

## `excludeRelatedParty` (type: `boolean`):

Drop transactions between relatives, employees or co-owners, which are often below market price.

## `excludeParkingOnly` (type: `boolean`):

Drop transactions that are only a parking space.

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

Stop after this many records. You pay per record, so this caps the cost.

## `includeRawFields` (type: `boolean`):

Add a "raw" object with every original column, keyed by its Chinese header.

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

Usually not needed. Use only if the government site blocks your runs.

## Actor input object example

```json
{
  "cities": [
    "Taipei City"
  ],
  "recordTypes": [
    "sale"
  ],
  "seasons": [
    "latest"
  ],
  "onlyNew": false,
  "monitorName": "default",
  "districts": [],
  "transactionTargets": [],
  "excludeRelatedParty": false,
  "excludeParkingOnly": false,
  "maxItems": 100,
  "includeRawFields": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "cities": [
        "Taipei City"
    ],
    "recordTypes": [
        "sale"
    ],
    "seasons": [
        "latest"
    ],
    "districts": [],
    "transactionTargets": [],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("taiwan-open-data/my-actor").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 = {
    "cities": ["Taipei City"],
    "recordTypes": ["sale"],
    "seasons": ["latest"],
    "districts": [],
    "transactionTargets": [],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("taiwan-open-data/my-actor").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 '{
  "cities": [
    "Taipei City"
  ],
  "recordTypes": [
    "sale"
  ],
  "seasons": [
    "latest"
  ],
  "districts": [],
  "transactionTargets": [],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call taiwan-open-data/my-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,taiwan-open-data/my-actor"
        }
    }
}
```

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/qx6Ug2F6uVezy9d3o/builds/HRcteV3pOBpfqh71T/openapi.json
