{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan New Companies Feed: Daily Incorporations & Dissolutions",
    "description": "Daily feed of newly incorporated and newly dissolved Taiwanese companies from official MOEA GCIS open data: tax ID (統一編號), Chinese name, legal form and status in English, capital, city/district, business item codes. Filter by city, industry code, capital, keyword.",
    "version": "0.1",
    "x-build-id": "67wy3ApikYszcHKgb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~taiwan-new-companies-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-taiwan-new-companies-feed",
        "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/moment-data~taiwan-new-companies-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-taiwan-new-companies-feed",
        "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/moment-data~taiwan-new-companies-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-taiwan-new-companies-feed",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window = companies approved in the last Days back days (stateless, default). sinceLastRun = only companies not delivered by a previous run with the same State key (re-reads 3 days of overlap). Schedule daily or weekly.",
            "default": "window"
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "newCompany = incorporation approved (公司設立), dissolution = dissolution / revocation / merger-dissolution approved (解散、廢止). Empty = both (maxItems is split evenly, unused quota goes to the other type).",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 92,
            "type": "integer",
            "description": "Approval-date window in Taiwan time ending today. Taiwan approves roughly 100-200 new companies and 50-150 dissolutions per working day.",
            "default": 7
          },
          "fromDate": {
            "title": "From date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional fixed start date (overrides Days back). Max range 92 days."
          },
          "toDate": {
            "title": "To date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional fixed end date. Default = today (Taiwan time)."
          },
          "cities": {
            "title": "Cities / counties",
            "type": "array",
            "description": "Registered-office city or county, in English or Chinese, e.g. Taipei City, New Taipei City, Taoyuan, Taichung, Hsinchu County, 新竹市, 高雄市.",
            "items": {
              "type": "string"
            }
          },
          "districts": {
            "title": "Districts",
            "type": "array",
            "description": "District / township in Chinese, e.g. 內湖區, 信義區, 竹北市. Best combined with Cities.",
            "items": {
              "type": "string"
            }
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "limited (有限公司, Ltd.), byShares (股份有限公司, Co., Ltd. / Inc.), unlimited (無限公司), mixed (兩合公司). Empty = all company forms.",
            "items": {
              "type": "string"
            }
          },
          "businessItemCodes": {
            "title": "Business item codes or prefixes",
            "type": "array",
            "description": "Taiwan registered business item codes (營業項目代碼) or prefixes, e.g. I301 (software / data services), CC01 (electronics manufacturing), F401010 (international trade), H201010 (investment), IG (biotech / R&D), F5 (restaurants / food service), E (construction). Matches any listed item.",
            "items": {
              "type": "string"
            }
          },
          "businessKeywords": {
            "title": "Business item keywords (Chinese)",
            "type": "array",
            "description": "Match the Chinese business item descriptions, e.g. 軟體, 生物技術, 餐飲, 能源, 半導體.",
            "items": {
              "type": "string"
            }
          },
          "nameKeywords": {
            "title": "Name contains (any)",
            "type": "array",
            "description": "Keep companies whose Chinese name contains any of these, e.g. 科技, 智能, 生技, 能源 (台/臺 are treated as the same character).",
            "items": {
              "type": "string"
            }
          },
          "excludeNameKeywords": {
            "title": "Name excludes",
            "type": "array",
            "description": "Drop companies whose name contains any of these, e.g. 投資, 建設.",
            "items": {
              "type": "string"
            }
          },
          "minCapitalTwd": {
            "title": "Min capital (NT$)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum registered capital (資本總額) in New Taiwan dollars, e.g. 10000000 = NT$10 million."
          },
          "maxCapitalTwd": {
            "title": "Max capital (NT$)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum registered capital in New Taiwan dollars."
          },
          "dissolutionTypes": {
            "title": "Dissolution types",
            "type": "array",
            "description": "For dissolution events: dissolved (解散), revoked (廢止 / 撤銷), merger (合併解散), demerger (分割解散), other. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "includeBusinessItems": {
            "title": "Include business items",
            "type": "boolean",
            "description": "Add the registered business item list (one extra API request per company). Turn off for faster runs if you don't filter by business item.",
            "default": true
          },
          "includeFullAddress": {
            "title": "Include full registered address",
            "type": "boolean",
            "description": "Output the full registered-office address (street, number, floor). Off by default: only city/county and district are output, because small companies are often registered at a home address.",
            "default": false
          },
          "maxItems": {
            "title": "Max records per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Hard cap on delivered records (also caps your spend). Newest approval dates first.",
            "default": 30
          },
          "maxCompaniesChecked": {
            "title": "Max companies checked",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Safety cap on detail lookups when using city / capital / business-item filters (each check = 1-2 API requests to the government server). Raise it for narrow filters over long windows.",
            "default": 400
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "sinceLastRun only: separate saved state per saved search (e.g. 'taipei-software').",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}