{
  "openapi": "3.0.1",
  "info": {
    "title": "Korea Real Estate Transactions (Official MOLIT Data)",
    "description": "Official South Korea property transaction prices from the Ministry of Land (MOLIT): apartments, officetels, villas, houses, land, commercial, presale rights, sales and jeonse/monthly rents. English fields, region names instead of codes.",
    "version": "0.1",
    "x-build-id": "3Ylmh3lhGf8S8wge4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/elabstudio~korea-real-estate-transactions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-elabstudio-korea-real-estate-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/elabstudio~korea-real-estate-transactions/runs": {
      "post": {
        "operationId": "runs-sync-elabstudio-korea-real-estate-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/elabstudio~korea-real-estate-transactions/run-sync": {
      "post": {
        "operationId": "run-sync-elabstudio-korea-real-estate-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",
        "required": [
          "regions"
        ],
        "properties": {
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Districts or provinces. English or Korean names, or 5-digit district codes. Examples: \"Gangnam-gu, Seoul\", \"Mapo-gu\", \"서울 강남구\", \"Seoul\" (all 25 districts), \"Suwon-si\" (all its districts), \"11680\".",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property and deal types",
            "type": "array",
            "description": "Which official datasets to query.",
            "items": {
              "type": "string",
              "enum": [
                "apt_trade",
                "apt_rent",
                "officetel_trade",
                "officetel_rent",
                "rowhouse_trade",
                "rowhouse_rent",
                "house_trade",
                "house_rent",
                "presale_right",
                "commercial_trade",
                "land_trade"
              ],
              "enumTitles": [
                "Apartment sales",
                "Apartment rents (jeonse / monthly)",
                "Officetel sales",
                "Officetel rents",
                "Villa / row house sales",
                "Villa / row house rents",
                "Detached house sales",
                "Detached house rents",
                "Apartment presale right sales",
                "Commercial building sales",
                "Land sales"
              ]
            },
            "default": [
              "apt_trade"
            ]
          },
          "startMonth": {
            "title": "Start month",
            "pattern": "^$|^\\d{4}-?\\d{2}$",
            "type": "string",
            "description": "Contract month to start from, YYYY-MM. Data is available from 2006. Leave empty for the last 3 months."
          },
          "endMonth": {
            "title": "End month",
            "pattern": "^$|^\\d{4}-?\\d{2}$",
            "type": "string",
            "description": "Last contract month, YYYY-MM. Leave empty for the current month."
          },
          "maxItems": {
            "title": "Max transactions",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many transactions. 0 means no limit.",
            "default": 1000
          },
          "nameContains": {
            "title": "Complex / building name contains",
            "type": "string",
            "description": "Optional filter, Korean or romanized, e.g. \"래미안\" or \"raemian\"."
          },
          "minAreaM2": {
            "title": "Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Exclusive area for units, floor area for houses, deal area for land."
          },
          "maxAreaM2": {
            "title": "Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional."
          },
          "includeCancelled": {
            "title": "Include cancelled deals",
            "type": "boolean",
            "description": "Cancelled contracts are excluded by default.",
            "default": false
          },
          "includeRaw": {
            "title": "Include raw Korean record",
            "type": "boolean",
            "description": "Adds the original API fields under \"raw\".",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}