# Korea Apartment Sales - Official Transaction Register (`loopchips/korea-apt-trades`) Actor

Every reported apartment sale in Korea, straight from the government register. Price, size, floor, build year, address and deal type, with price per pyeong calculated. Search by district name instead of hunting for codes.

- **URL**: https://apify.com/loopchips/korea-apt-trades.md
- **Developed by:** [Loopchips](https://apify.com/loopchips) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 transactions

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

## Korea Apartment Sales - Official Transaction Register

Every reported apartment sale in Korea, straight from the government register.

When a Korean apartment changes hands the sale must be reported by law, and the
Ministry of Land publishes those filings. This Actor turns them into clean rows:
price, size, floor, build year, address and deal type, with price per pyeong
worked out for you.

### What you get

| Field | Description |
|---|---|
| `dealDate` | Date of the contract |
| `district` / `legalDong` | District and neighbourhood |
| `apartment` / `building` | Complex name and building |
| `priceManwon` / `priceKrw` | Price as published, and in won |
| `areaM2` / `areaPyeong` | Exclusive floor area, both units |
| `pricePerPyeongManwon` | How the Korean market actually quotes value |
| `floor` / `buildYear` | Floor and year built |
| `dealType` | Brokered or direct |
| `buyerType` / `sellerType` | Individual, corporate or public body |
| `isCancelled` / `cancelledOn` | Contracts later cancelled |
| `landLeasehold` | Whether the land is leasehold |
| `apartmentId` | Stable identifier for joining across months |

### You need your own free key

This Actor calls the government API on your behalf, using a key issued to you.

1. Sign up at data.go.kr
2. Search for 아파트 매매 실거래가 상세 자료
3. Press 활용신청 - approval is automatic and gives 10,000 calls a day
4. Paste the Encoding key into this Actor

The data itself is published with no usage restrictions, so what you collect is
yours to keep, analyse and redistribute.

### Example input

```json
{
  "serviceKey": "your-key-here",
  "districts": ["서울 강남구", "서울 송파구"],
  "startMonth": "202601",
  "endMonth": "202606"
}
```

### District names

You can write a district name such as `서울 강남구`, or just `강남구`. Names are
resolved for Seoul and the metropolitan cities. Everywhere else, use the
five-digit code, which always works - for example `41135` for 성남시 분당구.

Codes are the first five digits of the legal district code.

### Example output

```json
{
  "dealDate": "2026-06-25",
  "district": "서울 종로구",
  "legalDong": "평창동",
  "apartment": "롯데낙천대",
  "priceManwon": 118000,
  "priceKrw": 1180000000,
  "areaM2": 110.53,
  "areaPyeong": 33.44,
  "pricePerPyeongManwon": 3529,
  "floor": 10,
  "buildYear": 2001,
  "dealType": "중개거래"
}
```

### What people use it for

- **Market research** - real prices, not asking prices
- **Valuation and lending** - comparable sales for a building or neighbourhood
- **Investment screening** - price per pyeong across districts, month by month
- **Proptech products** - a legal, citable source you can build on

### Pricing

Pay per result. You are charged only for transactions actually returned.

### Notes

- Cancelled contracts are excluded by default so averages are not distorted.
  Turn them on if you want to study cancellations.
- Prices are published in 만원 (ten thousand won). Both that and the won figure
  are included.
- `agentDistrict` is where the broker is registered, which is not always where
  the property is.
- Source: Ministry of Land, Infrastructure and Transport, via data.go.kr.

# Actor input Schema

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

Your own free key from data.go.kr. Search for 아파트 매매 실거래가 상세 자료 and press 활용신청 - approval is automatic and gives 10,000 calls a day. Paste the Encoding key.

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

District names such as "서울 강남구" or "강남구", or five-digit codes such as 11680. Names are resolved for you.

## `startMonth` (type: `string`):

YYYYMM, for example 202601. Defaults to the current month.

## `endMonth` (type: `string`):

YYYYMM. Defaults to the start month, so leaving both empty returns this month only.

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

Cancelled contracts are excluded by default so averages are not distorted.

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

Pause between requests so the source is not hit too quickly.

## Actor input object example

```json
{
  "districts": [
    "서울 강남구",
    "서울 송파구"
  ],
  "includeCancelled": false,
  "requestDelayMs": 400
}
```

# Actor output Schema

## `transactions` (type: `string`):

Every reported sale with price, size, floor and address.

# 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": [
        "서울 강남구",
        "서울 송파구"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("loopchips/korea-apt-trades").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": [
        "서울 강남구",
        "서울 송파구",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("loopchips/korea-apt-trades").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": [
    "서울 강남구",
    "서울 송파구"
  ]
}' |
apify call loopchips/korea-apt-trades --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,loopchips/korea-apt-trades"
        }
    }
}

```

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/gVttNoi6j0oVa4UUQ/builds/KYK0HOuGmQdfy98HG/openapi.json
