{
  "openapi": "3.0.1",
  "info": {
    "title": "🇹🇼 Taiwan MOEA Company Registry · 商工登記統一編號查詢",
    "description": "Pull Taiwan corporate registry records (公司登記) from the MOEA Department of Commerce Government Company Information System (GCIS) keyless OData endpoint — 統一編號 lookup, capital, registration date, status, address, industry codes, representative.",
    "version": "0.0",
    "x-build-id": "1izGBcGzaMEpiaw7I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexgendata~taiwan-moea-company-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexgendata-taiwan-moea-company-registry",
        "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/nexgendata~taiwan-moea-company-registry/runs": {
      "post": {
        "operationId": "runs-sync-nexgendata-taiwan-moea-company-registry",
        "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/nexgendata~taiwan-moea-company-registry/run-sync": {
      "post": {
        "operationId": "run-sync-nexgendata-taiwan-moea-company-registry",
        "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": {
          "company_name_filter": {
            "title": "Company name (Traditional Chinese, English, or romanization)",
            "type": "string",
            "description": "Optional. Looks up a Taiwan company by name from the curated lookup (TSMC, Foxconn, MediaTek, Uni-President, Taiwan Mobile, Far EasTone, 7-Eleven Taiwan, Taiwan Cement, etc. — verified live against GCIS) in Traditional Chinese (台積電), English (TSMC), or common romanization (tsmc). The keyless GCIS OData endpoint does NOT support free-text name search — only Business_Accounting_NO eq <8-digit>. If you need a company outside the curated list, pass company_id with the 8-digit 統一編號 instead. Unmatched names emit a structured guidance row pointing at company_id."
          },
          "company_id": {
            "title": "Unified Business Number (統一編號, 8 digits)",
            "type": "string",
            "description": "Optional. The 8-digit Taiwan unified business number (統一編號) — e.g. 22099131 (TSMC), 04541302 (Foxconn), 84149961 (MediaTek). When set, this is the primary lookup key — GCIS returns one company per BAN. Leading zeros are auto-padded if you pass a shorter integer string. To look up your target company's BAN, search free at findbiz.nat.gov.tw (MOEA business search portal)."
          },
          "industry_code_filter": {
            "title": "Industry code or industry-name keyword (MOEA business item)",
            "type": "string",
            "description": "Optional. Filter results post-fetch by MOEA business item code (e.g. CC01080 = 電子零組件製造業 / electronic components manufacturing) or Traditional Chinese industry-name keyword (e.g. 半導體, 銀行, 航運). The GCIS OData endpoint does NOT support server-side filtering on industry — this filter is applied client-side after fetching the curated top-N companies."
          },
          "city_filter": {
            "title": "Taiwan city / county (Traditional Chinese)",
            "type": "string",
            "description": "Optional. Filter results post-fetch by Taiwan city or county (台北市, 新北市, 新竹市, 新竹縣, 高雄市, 台中市, 台南市, 桃園市, etc.). Matched against the company's registered address (Company_Location). 臺/台 variants normalized."
          },
          "status_filter": {
            "title": "Company status",
            "enum": [
              "active",
              "dissolved",
              "all"
            ],
            "type": "string",
            "description": "Filter by registration status. 'active' = 核准設立 only (default). 'dissolved' = 撤銷/廢止/解散/裁定解散/命令解散. 'all' = no status filter (include both active and dissolved entities).",
            "default": "active"
          },
          "max_records": {
            "title": "Maximum records to push",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum number of company records to emit (1–2000). When neither company_name_filter nor company_id is set, the actor samples the curated well-known Taiwan companies (TSMC, Foxconn, MediaTek, Uni-President, etc.) up to this cap. When company_id is set, exactly one record is fetched.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}