{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan Company Lookup - 統一編號 GCIS Registry Search",
    "description": "Taiwan company lookup by 統一編號 (tax ID) or name from the official MOEA GCIS open data API (公司登記查詢): status, capital, representative, address, directors, business items, branches, new companies. No API key. $1.50 per 1,000 results.",
    "version": "0.1",
    "x-build-id": "OZt7EYZO1TpPAMkOW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/1rrock~taiwan-company-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-1rrock-taiwan-company-lookup",
        "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/1rrock~taiwan-company-lookup/runs": {
      "post": {
        "operationId": "runs-sync-1rrock-taiwan-company-lookup",
        "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/1rrock~taiwan-company-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-1rrock-taiwan-company-lookup",
        "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": {
          "taxIds": {
            "title": "統一編號 / Tax IDs (Unified Business Numbers)",
            "type": "array",
            "description": "8-digit Taiwan Unified Business Numbers (統一編號), one per line. The check digit is validated before querying. Companies (公司) and sole proprietorships/partnerships (商業) are supported. If this, the name search and the date filters are empty, three demo companies are looked up.",
            "items": {
              "type": "string"
            }
          },
          "companyName": {
            "title": "Company name search (公司名稱關鍵字)",
            "type": "string",
            "description": "Keyword contained in the registered Chinese company name, e.g. <code>半導體</code>, <code>台積電</code> or <code>鴻海</code>. Note that 台 and 臺 are different characters in the registry. Combined with the establishment-date filters, it filters the new-companies list instead."
          },
          "status": {
            "title": "Company status",
            "enum": [
              "active",
              "all"
            ],
            "type": "string",
            "description": "Status filter for name search and new-company lists. Tax ID lookups always return the company whatever its status.",
            "default": "active"
          },
          "cities": {
            "title": "City / county filter (縣市)",
            "type": "array",
            "description": "Only companies whose registered address contains one of these, e.g. <code>臺北市</code>, <code>新竹</code>, <code>臺中市</code>. 台 and 臺 are treated as the same.",
            "items": {
              "type": "string"
            }
          },
          "establishedWithinDays": {
            "title": "Established in the last N days (新設立公司)",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "List companies whose incorporation was approved (核准設立日期) in the last N days, newest first. Great for scheduled new-company lead feeds."
          },
          "establishedFrom": {
            "title": "Established from (date)",
            "type": "string",
            "description": "Incorporation approval date from (inclusive), YYYY-MM-DD. Max range 366 days."
          },
          "establishedTo": {
            "title": "Established to (date)",
            "type": "string",
            "description": "Incorporation approval date to (inclusive), YYYY-MM-DD. Defaults to today."
          },
          "includeDirectors": {
            "title": "Include directors & supervisors (董監事)",
            "type": "boolean",
            "description": "Add the board: position, name, represented juristic person and shareholding. One extra API call per company.",
            "default": true
          },
          "includeBusinessItems": {
            "title": "Include business items (營業項目)",
            "type": "boolean",
            "description": "Add registered business item codes and descriptions plus the free-text business scope. One extra API call per company.",
            "default": true
          },
          "includeBranches": {
            "title": "Include branch offices (分公司)",
            "type": "boolean",
            "description": "Add branch offices with their own tax ID, manager, status and address. One extra API call per company.",
            "default": false
          },
          "maxBranches": {
            "title": "Max branches per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on branch offices returned per company.",
            "default": 50
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of records per run. This is your cost cap: each record is one result.",
            "default": 100
          },
          "delaySeconds": {
            "title": "Delay between API calls (seconds)",
            "minimum": 0.2,
            "maximum": 10,
            "type": "number",
            "description": "Polite throttle between GCIS API calls.",
            "default": 0.3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}