{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan Real Estate Transactions — Official Prices (實價登錄)",
    "description": "Official Taiwan property sale, pre-sale and rental prices from the Ministry of the Interior open data, as clean English JSON: ISO dates, TWD per ping and per m², building type, age and floors. For analysts, proptech and AI agents.",
    "version": "0.0",
    "x-build-id": "HRcteV3pOBpfqh71T"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taiwan-open-data~my-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taiwan-open-data-my-actor",
        "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/taiwan-open-data~my-actor/runs": {
      "post": {
        "operationId": "runs-sync-taiwan-open-data-my-actor",
        "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/taiwan-open-data~my-actor/run-sync": {
      "post": {
        "operationId": "run-sync-taiwan-open-data-my-actor",
        "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": "English name (\"Taipei City\", \"New Taipei\"), Chinese name (\"臺北市\" or \"台北市\") or letter code (\"A\"). Leave empty for all 22 cities and counties.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "recordTypes": {
            "title": "Record types",
            "type": "array",
            "description": "Any of \"sale\" (existing property sales), \"presale\" (pre-sale housing) and \"lease\" (rentals).",
            "default": [
              "sale"
            ],
            "items": {
              "type": "string"
            }
          },
          "seasons": {
            "title": "Data seasons",
            "type": "array",
            "description": "Quarterly release files, written as ROC year + quarter: \"115S2\" = 2026 Q2 (ROC year = Gregorian year − 1911). \"latest\" picks the newest published quarter. Up to 12 per run. Note: a quarter's file contains transactions reported in that quarter, which can include older deals.",
            "default": [
              "latest"
            ],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only new transactions (scheduled monitor)",
            "type": "boolean",
            "description": "For scheduled runs. The first run saves the transactions already published and returns nothing; every later run returns only transactions this monitor has not returned before. Combine with cities, districts and price filters to watch one market.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Only used with \"Only new transactions\". Give each scheduled task its own name so their states do not mix, e.g. \"taipei-daan-watch\".",
            "default": "default"
          },
          "districts": {
            "title": "Districts (Chinese)",
            "type": "array",
            "description": "Optional. District names in Chinese as they appear in the data, e.g. \"大安區\". Partial matches work (\"大安\").",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minDate": {
            "title": "Transaction date from",
            "pattern": "^(\\d{4}-\\d{2}(-\\d{2})?)?$",
            "type": "string",
            "description": "Optional. ISO date, e.g. \"2026-01-01\"."
          },
          "maxDate": {
            "title": "Transaction date to",
            "pattern": "^(\\d{4}-\\d{2}(-\\d{2})?)?$",
            "type": "string",
            "description": "Optional. ISO date or month, e.g. \"2026-06-30\" or \"2026-06\"."
          },
          "minPriceTwd": {
            "title": "Minimum price (TWD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Total price for sales; monthly rent for leases."
          },
          "maxPriceTwd": {
            "title": "Maximum price (TWD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Total price for sales; monthly rent for leases."
          },
          "transactionTargets": {
            "title": "Transaction targets",
            "type": "array",
            "description": "Optional. Any of \"land_building\", \"land_building_parking\", \"building\", \"land\", \"parking\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeRelatedParty": {
            "title": "Exclude related-party deals",
            "type": "boolean",
            "description": "Drop transactions between relatives, employees or co-owners, which are often below market price.",
            "default": false
          },
          "excludeParkingOnly": {
            "title": "Exclude parking-only deals",
            "type": "boolean",
            "description": "Drop transactions that are only a parking space.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many records. You pay per record, so this caps the cost.",
            "default": 1000
          },
          "includeRawFields": {
            "title": "Include original Chinese fields",
            "type": "boolean",
            "description": "Add a \"raw\" object with every original column, keyed by its Chinese header.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Usually not needed. Use only if the government site blocks your runs.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}