{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan Factory Finder (工廠登記) — Official MOEA Data",
    "description": "Search Taiwan's ~100,000 registered factories in production from the official MOEA open data: registration no., name, business ID, county, district, address, industries, product categories, approval dates. Filter by industry, county, product keyword.",
    "version": "0.0",
    "x-build-id": "MGDXxA1Dt8huadx6Q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/waisuan~taiwan-factory-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-waisuan-taiwan-factory-finder",
        "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/waisuan~taiwan-factory-finder/runs": {
      "post": {
        "operationId": "runs-sync-waisuan-taiwan-factory-finder",
        "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/waisuan~taiwan-factory-finder/run-sync": {
      "post": {
        "operationId": "run-sync-waisuan-taiwan-factory-finder",
        "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": {
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Manufacturing industry divisions (Taiwan Standard Industrial Classification) registered for the factory. A factory may have several. Empty = all industries.",
            "items": {
              "type": "string",
              "enum": [
                "08",
                "09",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "20",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26",
                "27",
                "28",
                "29",
                "30",
                "31",
                "32",
                "33"
              ],
              "enumTitles": [
                "08 Food products 食品製造業",
                "09 Beverages 飲料製造業",
                "10 Tobacco products 菸草製造業",
                "11 Textiles 紡織業",
                "12 Wearing apparel and clothing accessories 成衣及服飾品製造業",
                "13 Leather, fur and related products 皮革、毛皮及其製品製造業",
                "14 Wood and bamboo products 木竹製品製造業",
                "15 Pulp, paper and paper products 紙漿、紙及紙製品製造業",
                "16 Printing and reproduction of recorded media 印刷及資料儲存媒體複製業",
                "17 Petroleum and coal products 石油及煤製品製造業",
                "18 Chemical materials and fertilizers 化學材料及肥料製造業",
                "19 Other chemical products 其他化學製品製造業",
                "20 Pharmaceuticals and medicinal chemical products 藥品及醫用化學製品製造業",
                "21 Rubber products 橡膠製品製造業",
                "22 Plastic products 塑膠製品製造業",
                "23 Non-metallic mineral products 非金屬礦物製品製造業",
                "24 Basic metals 基本金屬製造業",
                "25 Fabricated metal products 金屬製品製造業",
                "26 Electronic parts and components 電子零組件製造業",
                "27 Computers, electronic and optical products 電腦、電子產品及光學製品製造業",
                "28 Electrical equipment 電力設備及配備製造業",
                "29 Machinery and equipment 機械設備製造業",
                "30 Motor vehicles and parts 汽車及其零件製造業",
                "31 Other transport equipment and parts 其他運輸工具及其零件製造業",
                "32 Furniture 家具製造業",
                "33 Other manufacturing 其他製造業"
              ]
            },
            "default": []
          },
          "counties": {
            "title": "Counties / cities",
            "type": "array",
            "description": "County/city where the factory is located. Empty = all of Taiwan.",
            "items": {
              "type": "string",
              "enum": [
                "臺北市",
                "新北市",
                "桃園市",
                "臺中市",
                "臺南市",
                "高雄市",
                "基隆市",
                "新竹市",
                "嘉義市",
                "新竹縣",
                "苗栗縣",
                "彰化縣",
                "南投縣",
                "雲林縣",
                "嘉義縣",
                "屏東縣",
                "宜蘭縣",
                "花蓮縣",
                "臺東縣",
                "澎湖縣",
                "金門縣",
                "連江縣"
              ],
              "enumTitles": [
                "Taipei 臺北市",
                "New Taipei 新北市",
                "Taoyuan 桃園市",
                "Taichung 臺中市",
                "Tainan 臺南市",
                "Kaohsiung 高雄市",
                "Keelung 基隆市",
                "Hsinchu City 新竹市",
                "Chiayi City 嘉義市",
                "Hsinchu County 新竹縣",
                "Miaoli 苗栗縣",
                "Changhua 彰化縣",
                "Nantou 南投縣",
                "Yunlin 雲林縣",
                "Chiayi County 嘉義縣",
                "Pingtung 屏東縣",
                "Yilan 宜蘭縣",
                "Hualien 花蓮縣",
                "Taitung 臺東縣",
                "Penghu 澎湖縣",
                "Kinmen 金門縣",
                "Lienchiang 連江縣"
              ]
            },
            "default": []
          },
          "districts": {
            "title": "Districts / townships (Chinese, exact)",
            "type": "array",
            "description": "e.g. 岡山區, 觀音區, 彰化市. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productKeyword": {
            "title": "Product keyword",
            "type": "string",
            "description": "Matches the official main-product categories (主要產品, e.g. 半導體, 塑膠製品, 醫療器材, 金屬加工處理), a product category code prefix (e.g. 261), the industry name (Chinese or English) and the factory name. The register uses product categories, not free-text product lists.",
            "default": ""
          },
          "nameKeyword": {
            "title": "Factory name contains",
            "type": "string",
            "description": "e.g. 精密, 食品, 科技. Empty = any.",
            "default": ""
          },
          "registeredFrom": {
            "title": "Registration approved from (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only factories whose factory registration (工廠登記核准日期) was approved on or after this date.",
            "default": ""
          },
          "registeredTo": {
            "title": "Registration approved to (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only factories whose factory registration was approved on or before this date.",
            "default": ""
          },
          "includeOwner": {
            "title": "Include factory owner name",
            "type": "boolean",
            "description": "The factory owner (工廠負責人) is a natural person. Off by default; if you enable it you are responsible for complying with Taiwan's Personal Data Protection Act.",
            "default": false
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "registrationDateDesc",
              "registrationDateAsc",
              "source"
            ],
            "type": "string",
            "description": "Sort order applied before maxItems.",
            "default": "registrationDateDesc"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum number of factories to output (each row is one billable result).",
            "default": 20
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 500,
            "maximum": 30000,
            "type": "integer",
            "description": "Pause before each request to the government server. A run makes only two requests.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}