# Korea Apartment Sale Prices (국토부 아파트 실거래가) (`starry_preserve/korea-apartment-sale-prices`) Actor

Official Korean apartment sale prices (국토부 실거래가) for any district: price, date, size in m² and pyeong, floor, price per pyeong. Clean JSON/CSV, no API key needed.

- **URL**: https://apify.com/starry_preserve/korea-apartment-sale-prices.md
- **Developed by:** [Korea Data Lab](https://apify.com/starry_preserve) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## Korea Apartment Sale Prices (국토부 아파트 실거래가)

Get **official Korean apartment sale records** straight from the Ministry of Land, Infrastructure and Transport (MOLIT) open data: every reported sale with price, date, size, floor and building year. Clean JSON, CSV or Excel. No scraping, no blocking, no API key needed on your side.

### What you get per sale

| Field | Example |
|---|---|
| dealDate | 2026-09-07 |
| district / districtKo | Gangnam-gu / 강남구 |
| dong | 대치동 |
| apartment | 래미안대치팰리스 |
| areaM2 / areaPyeong | 84.97 / 25.7 |
| floor | 12 |
| priceKrw | 3,250,000,000 |
| pricePerM2Krw / pricePerPyeongKrw | 38,248,794 / 126,442,288 |
| buildYear | 2015 |
| dealType, sellerType, buyerType | 중개거래, 개인, 개인 |
| cancelled, cancelDate | false |

Cancelled deals (해제) are removed by default, so price trends are not distorted. Turn on **Include cancelled deals** to see them.

### How to use

1. Add districts anywhere in Korea: Korean names (`분당구`, `해운대구`, `수원시`, `부산 중구`), Seoul districts in English (`Gangnam-gu`), or 5-digit LAWD codes. A city name (e.g. `수원시`) covers all its districts. Names shared by several cities (`중구`) need the city first (`대구 중구`).
2. Pick a month range (`2026-01` to `2026-09`).
3. Optional filters: apartment name, min/max area.
4. Run. Export or connect by API, Make, Zapier, n8n or an AI agent.

### Who uses it

- Proptech and investors tracking Seoul prices by complex
- Analysts building price-per-pyeong indices
- Foreign funds and researchers who need English-labelled Korean data
- AI agents answering "what did 84㎡ in 대치동 sell for last month?"

### Pricing

Pay per sale record. You only pay for records delivered.

### Data source and notes

Data: MOLIT real-transaction reports via data.go.kr (공공데이터포털). Sales appear after they are reported (usually within 30 days of contract), so the latest month fills in over time. This actor is not affiliated with MOLIT.

***

### 한국어 안내

국토교통부 아파트 매매 실거래가를 구·월 단위로 가져옵니다. 거래가(원), 계약일, 전용면적(㎡·평), 층, 건축년도, 평당가를 정리된 표로 받을 수 있습니다. 해제된 거래는 기본으로 제외됩니다. 전국 모든 시·군·구를 한글 이름(분당구, 해운대구, 수원시, 부산 중구)이나 5자리 법정동 코드로 입력할 수 있습니다.

# Actor input Schema

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

Any district in Korea by Korean name (분당구, 해운대구, 수원시, 부산 중구), any Seoul district in English (Gangnam-gu), or a 5-digit LAWD code. A city name includes all its districts.

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

First contract month, YYYY-MM.

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

Last contract month, YYYY-MM. Leave empty for the same as From month.

## `apartmentContains` (type: `string`):

Optional filter, Korean name (e.g. 래미안).

## `minAreaM2` (type: `integer`):

Optional.

## `maxAreaM2` (type: `integer`):

Optional.

## `includeCancelled` (type: `boolean`):

Deals later cancelled (해제) are excluded by default.

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

Stop each district after this many sales.

## `serviceKey` (type: `string`):

Leave empty to use the built-in key. Add your own free key from data.go.kr if you run very large jobs.

## Actor input object example

```json
{
  "districts": [
    "Gangnam-gu",
    "분당구",
    "해운대구"
  ],
  "monthFrom": "2026-09",
  "includeCancelled": false,
  "maxItems": 1000
}
```

# Actor output Schema

## `sales` (type: `string`):

All apartment sale records from this run.

# 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 = {
    "districts": [
        "Gangnam-gu",
        "분당구",
        "해운대구"
    ],
    "monthFrom": "2026-09"
};

// Run the Actor and wait for it to finish
const run = await client.actor("starry_preserve/korea-apartment-sale-prices").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 = {
    "districts": [
        "Gangnam-gu",
        "분당구",
        "해운대구",
    ],
    "monthFrom": "2026-09",
}

# Run the Actor and wait for it to finish
run = client.actor("starry_preserve/korea-apartment-sale-prices").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 '{
  "districts": [
    "Gangnam-gu",
    "분당구",
    "해운대구"
  ],
  "monthFrom": "2026-09"
}' |
apify call starry_preserve/korea-apartment-sale-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,starry_preserve/korea-apartment-sale-prices"
        }
    }
}
```

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/Y6vivN5Kz3JNuH08m/builds/5FpiLdGnIDMDovRCj/openapi.json
