{
  "openapi": "3.0.1",
  "info": {
    "title": "Korea Apartment Prices in English: Sale, Rent & Monthly Medians",
    "description": "Search any Korean district by English name. Official MOLIT sale & rent records with romanized names, m²/pyeong/sqft, and monthly median summaries. No API key needed.",
    "version": "0.1",
    "x-build-id": "MrHP7KpcKnTKXqaIL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seoulsmith~korea-apartment-transactions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seoulsmith-korea-apartment-transactions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/seoulsmith~korea-apartment-transactions/runs": {
      "post": {
        "operationId": "runs-sync-seoulsmith-korea-apartment-transactions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/seoulsmith~korea-apartment-transactions/run-sync": {
      "post": {
        "operationId": "run-sync-seoulsmith-korea-apartment-transactions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "dealType": {
            "title": "Deal type",
            "enum": [
              "sale",
              "rent",
              "both"
            ],
            "type": "string",
            "description": "Sales, rentals (jeonse/wolse), or both. Example: \"both\" returns sale and rent records in one dataset.",
            "default": "sale"
          },
          "districts": {
            "title": "Districts",
            "type": "array",
            "description": "Districts (si/gun/gu) anywhere in Korea, one per line. Examples: \"Gangnam-gu\", \"Seoul Gangnam\", \"강남구\", \"서울 강남구\" or the 5-digit district code \"11680\". A city or province name (\"Seoul\", \"Suwon\") selects all of its districts. When a name exists in several cities (e.g. Jung-gu), add the city: \"Seoul Jung-gu\".",
            "default": [
              "Gangnam-gu"
            ],
            "items": {
              "type": "string"
            }
          },
          "fromMonth": {
            "title": "From month",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
            "type": "string",
            "description": "First contract month, YYYY-MM. Example: \"2026-01\". Defaults to 3 months before the current month (Korea time). Data starts in 2006-01."
          },
          "toMonth": {
            "title": "To month",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
            "type": "string",
            "description": "Last contract month, YYYY-MM. Example: \"2026-10\". Defaults to the current month. The period can be at most 36 months."
          },
          "includeCancelled": {
            "title": "Include cancelled sales",
            "type": "boolean",
            "description": "Include sales that were later cancelled (isCancelled = true). Example: turn on to see deals that fell through. Cancelled sales never count in summary rows.",
            "default": false
          },
          "minAreaM2": {
            "title": "Minimum exclusive area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Only transactions with at least this exclusive-use area in square meters. Example: 59 (a typical small family unit; 84 m² is the common \"34-pyeong\" size)."
          },
          "maxAreaM2": {
            "title": "Maximum exclusive area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Only transactions with at most this exclusive-use area in square meters. Example: 85."
          },
          "apartmentNameContains": {
            "title": "Apartment name contains",
            "type": "string",
            "description": "Only complexes whose name contains this text, in Korean or romanized. Examples: \"래미안\", \"Raemian\", \"Eunma\". Case and spaces are ignored."
          },
          "includeSummary": {
            "title": "Add summary rows",
            "type": "boolean",
            "description": "Add one row per district × month × deal type with transaction count, median / min / max price and median price per m². For rentals the deposit is used, plus the median monthly rent. Example: Gangnam-gu, 2026-10, sales → 100 transactions, median 2,615,000,000 KRW.",
            "default": false
          },
          "usdKrwRate": {
            "title": "USD/KRW exchange rate",
            "minimum": 0,
            "type": "number",
            "description": "If set, adds USD amounts (priceUsd; depositUsd and monthlyRentUsd for rentals) converted at this rate in KRW per USD. Example: 1380. No external exchange-rate service is used."
          },
          "maxItems": {
            "title": "Maximum transactions",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit on transaction records, to cap cost. Example: 500. Summary rows come on top. Set 0 with \"Add summary rows\" to get only the summary.",
            "default": 10000
          },
          "serviceKey": {
            "title": "Your data.go.kr API key (optional)",
            "type": "string",
            "description": "Not needed: the Actor uses its own key. If you have a data.go.kr key approved for the two MOLIT apartment datasets, paste its Decoding key here to use your own daily quota instead. Example: the \"Decoding\" key shown on your data.go.kr My Page (마이페이지 → 일반 인증키)."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}