Skip to main content

korea-real-estate

한국 공공 부동산 데이터 Python 클라이언트

Thin Python HTTP client for Korean government real estate and property APIs. Returns raw parsed dicts — no transformation, no models.

CI Lint PyPI Python License: MIT


What It Is

This client wraps Korea's public real estate APIs into a single Python interface. It covers:

  • Land & building transactions — sale and lease prices by region and month
  • Permits & zoning — building permits, land-use classifications, zoning records
  • Appraised & standard prices — government-assessed and publicly announced land values
  • REITs — company listings, investment targets, fundraising, AMC records
  • Onbid / KAMCO auctions — property listings, bid results, regional statistics
  • Government property — national asset sales/lease, relocation property, reserve inventory
  • Transit — most-used transit routes by city
  • Address resolution — Korean road/jibun address lookup (도로명주소)
  • Price index — REB real estate price index (한국부동산원)
  • Regional datasets — municipal-level broker registries, tax records, land/permit records

All methods return the raw API response as a Python dict (XML responses are parsed via xmltodict).


Installation

pip install korea-real-estate

Python 3.11+ required.


API Keys

You need one key per data source, not per endpoint.

Source Env Var What It Covers
data.go.kr PUBLIC_DATA_API_KEY Land/building/commercial transactions, permits, zoning, prices, REITs, Onbid, KAMCO, regional data
NSDI NSDI_API_KEY Individual appraised land price
REB (한국부동산원) REB_API_KEY Real estate price index
Juso (도로명주소) JUSO_API_KEY Address resolution

To get a data.go.kr key: create an account, search for an API, click 활용신청, then find your key under 마이페이지 → 오픈API 활용현황. The key covers all data.go.kr endpoints.

.env:

PUBLIC_DATA_API_KEY=your_key_here
NSDI_API_KEY=your_key_here
REB_API_KEY=your_key_here
JUSO_API_KEY=your_key_here

Quick Start

from korea_realestate import KoreaRealEstateClient

client = KoreaRealEstateClient()

# Land sale transactions for one region and month
data = client.public_data.land_trade_history(region_code="42820", year_month="202501")

# Navigate the raw response
items = data["response"]["body"]["items"]["item"]

# Apartment lease records
data = client.public_data.apartment_rent_history(region_code="11230", year_month="202501")

# Address lookup
data = client.juso.address_lookup(keyword="강원도 고성군 대진리 123")
results = data["results"]["juso"]

# Real estate price index
data = client.reb.real_estate_price_index(
    region_code="42820",
    index_type="land",
    start_year_month="202401",
    end_year_month="202412",
)

Client Structure

KoreaRealEstateClient
├── .public_data   PublicDataClient   ~67 methods — apis.data.go.kr
├── .reb           RebClient          1 method   — reb.or.kr price index
└── .juso          JusoClient         1 method   — juso.go.kr address API

See docs/ for the full method reference.


Error Handling

from korea_realestate.exceptions import (
    APIKeyError,             # invalid, expired, or missing key
    RateLimitError,          # daily call limit exceeded
    InvalidParameterError,   # bad parameter value
    MissingParameterError,   # required parameter absent
    NoDataFoundError,        # no records for region/period
    ServerSideError,         # API server-side error
    NetworkError,            # connection timeout or unreachable host
    APIResponseError,        # unexpected HTTP or parse error
)

All exceptions inherit from KoreaRealEstateError. See docs/errors.md.


CLI

korea-realestate sales          --region 42820 --month 202501
korea-realestate commercial-sales --region 42820 --month 202501
korea-realestate permits        --region 42820 --from 20240101 --to 20241231
korea-realestate zoning         --region 42820
korea-realestate appraised-value --region 42820 --year 2024
korea-realestate standard-price  --region 42820 --year 2024
korea-realestate building-ledger --region 42820 --parcel 100-5
korea-realestate price-index    --region 42820 --type land --from 202401 --to 202412
korea-realestate address-lookup "강원도 고성군 대진리 123"

All commands support --output <file.csv>. See docs/cli.md.


Injection for Testing

from unittest.mock import MagicMock
from korea_realestate import KoreaRealEstateClient
from korea_realestate.http import PublicDataClient, RebClient, JusoClient

client = KoreaRealEstateClient(
    public_data_client=MagicMock(spec=PublicDataClient),
    reb_client=MagicMock(spec=RebClient),
    juso_client=MagicMock(spec=JusoClient),
)

Docs


License

MIT — see LICENSE

Metadata

Release files for korea-real-estate 4.15.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for korea-real-estate 4.15.1
File Size Uploaded Provenance Actions
korea_real_estate-4.15.1.tar.gz 25.9 kB With provenance Details for korea_real_estate-4.15.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for korea-real-estate 4.15.1
File Interpreter ABI Platform Actions
korea_real_estate-4.15.1-py3-none-any.whl Python 3 none any Details for korea_real_estate-4.15.1-py3-none-any.whl

Total release size: 55.1 kB

Release files / korea_real_estate-4.15.1.tar.gz

Download URL korea_real_estate-4.15.1.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
226e3eabd60011a9fa398d889aaff9ba7bcee5a43be40c0fe523d2c0b5d3b43d
BLAKE2b-256 checksum
How to use checksums
b0a85c47e3fd2505679b9694570c3e1f71ad1b4c65ab84ad4ae1ac55496af996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2026.

Transparency log

Release files / korea_real_estate-4.15.1-py3-none-any.whl

Download URL korea_real_estate-4.15.1-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
063c63ff153cc9ec523d7ac7b63c46333cf275655f0283166945e4848520c237
BLAKE2b-256 checksum
How to use checksums
1db3ba6de7d05bd6a6851ce96cfd4e75c9459bd0aafd860b26a4f7a47f7c28f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2026.

Transparency log

Security for korea-real-estate 4.15.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for korea_real_estate-4.15.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page