{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan Real Estate Prices (實價登錄) – Sales, Pre-sale & Rent",
    "description": "Actual transaction prices of Taiwan property sales, pre-sale units and rentals from the Ministry of the Interior's official open data (實價登錄). Filter by city, district, date, price and building type. English field names, ISO dates, price per ping. Addresses are generalized to road level.",
    "version": "0.1",
    "x-build-id": "IhdvFa2KSaMCHOQU1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zriil~taiwan-real-estate-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zriil-taiwan-real-estate-prices",
        "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/zriil~taiwan-real-estate-prices/runs": {
      "post": {
        "operationId": "runs-sync-zriil-taiwan-real-estate-prices",
        "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/zriil~taiwan-real-estate-prices/run-sync": {
      "post": {
        "operationId": "run-sync-zriil-taiwan-real-estate-prices",
        "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": {
          "cities": {
            "title": "Cities / counties (縣市)",
            "type": "array",
            "description": "Which cities or counties to fetch. Each city × period is one download from the government site.",
            "items": {
              "type": "string",
              "enum": [
                "A",
                "F",
                "H",
                "B",
                "D",
                "E",
                "C",
                "O",
                "J",
                "K",
                "N",
                "M",
                "P",
                "I",
                "Q",
                "T",
                "G",
                "U",
                "V",
                "X",
                "W",
                "Z"
              ],
              "enumTitles": [
                "Taipei City 臺北市",
                "New Taipei City 新北市",
                "Taoyuan City 桃園市",
                "Taichung City 臺中市",
                "Tainan City 臺南市",
                "Kaohsiung City 高雄市",
                "Keelung City 基隆市",
                "Hsinchu City 新竹市",
                "Hsinchu County 新竹縣",
                "Miaoli County 苗栗縣",
                "Changhua County 彰化縣",
                "Nantou County 南投縣",
                "Yunlin County 雲林縣",
                "Chiayi City 嘉義市",
                "Chiayi County 嘉義縣",
                "Pingtung County 屏東縣",
                "Yilan County 宜蘭縣",
                "Hualien County 花蓮縣",
                "Taitung County 臺東縣",
                "Penghu County 澎湖縣",
                "Kinmen County 金門縣",
                "Lienchiang County 連江縣"
              ]
            }
          },
          "transactionType": {
            "title": "Transaction type",
            "enum": [
              "sales",
              "presale",
              "rental"
            ],
            "type": "string",
            "description": "Sales of existing property (買賣), pre-sale units (預售屋), or rentals (租賃).",
            "default": "sales"
          },
          "includeLatest": {
            "title": "Include the latest release",
            "type": "boolean",
            "description": "The newest batch the government publishes (on the 1st, 11th and 21st of each month). Contains the most recently registered deals.",
            "default": true
          },
          "seasons": {
            "title": "Past quarters (季度)",
            "type": "array",
            "description": "Quarterly archives in ROC-year format, e.g. 115S3 = 2026 Q3, 114S4 = 2025 Q4. Leave empty to fetch only the latest release.",
            "items": {
              "type": "string"
            }
          },
          "districts": {
            "title": "Districts (鄉鎮市區)",
            "type": "array",
            "description": "Only keep these districts, e.g. 大安區, 板橋區. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "buildingTypes": {
            "title": "Building types",
            "type": "array",
            "description": "Only keep these building types.",
            "items": {
              "type": "string",
              "enum": [
                "住宅大樓",
                "華廈",
                "公寓",
                "透天厝",
                "套房",
                "店面",
                "辦公商業大樓",
                "工廠",
                "廠辦",
                "倉庫",
                "農舍",
                "其他"
              ],
              "enumTitles": [
                "Apartment building, 11F+ (住宅大樓)",
                "Mid-rise with elevator, ≤10F (華廈)",
                "Walk-up apartment, ≤5F (公寓)",
                "Townhouse (透天厝)",
                "Studio (套房)",
                "Shop (店面)",
                "Office building (辦公商業大樓)",
                "Factory (工廠)",
                "Industrial office (廠辦)",
                "Warehouse (倉庫)",
                "Farmhouse (農舍)",
                "Other / land (其他)"
              ]
            }
          },
          "dateFrom": {
            "title": "Deal date from",
            "type": "string",
            "description": "Keep deals on or after this date (YYYY-MM-DD)."
          },
          "dateTo": {
            "title": "Deal date to",
            "type": "string",
            "description": "Keep deals on or before this date (YYYY-MM-DD)."
          },
          "minPrice": {
            "title": "Min total price (NTD)",
            "minimum": 0,
            "type": "integer",
            "description": "For rentals this is the monthly rent."
          },
          "maxPrice": {
            "title": "Max total price (NTD)",
            "minimum": 0,
            "type": "integer",
            "description": "For rentals this is the monthly rent."
          },
          "excludeSpecialDeals": {
            "title": "Exclude non-market deals",
            "type": "boolean",
            "description": "Drop deals the government marks as between relatives, employees or co-owners (親友、員工、共有人), which usually do not reflect market price.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many transactions (you are charged per transaction returned).",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new results (monitoring)",
            "type": "boolean",
            "description": "Remember what earlier runs returned and only return records not seen before (per monitor name). Pair with an Apify schedule to get new deals only. The first run returns all current matches. You are charged only for new records.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate memory per name, e.g. one monitor per area. Letters, digits and dashes.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}