{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan Factory & Supplier Search",
    "description": "Search 100,000+ official Taiwan factory records by registered product, industry and city. Export factory/company IDs and source-backed English categories as JSON. Free 10-record preview; bulk search and pagination. No inferred CNC or OEM capabilities.",
    "version": "0.0",
    "x-build-id": "tefHXgQm7J3kgQ494"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/japan_signal_lab~taiwan-factory-supplier-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-japan_signal_lab-taiwan-factory-supplier-search",
        "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/japan_signal_lab~taiwan-factory-supplier-search/runs": {
      "post": {
        "operationId": "runs-sync-japan_signal_lab-taiwan-factory-supplier-search",
        "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/japan_signal_lab~taiwan-factory-supplier-search/run-sync": {
      "post": {
        "operationId": "run-sync-japan_signal_lab-taiwan-factory-supplier-search",
        "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": [
              "preview",
              "search"
            ],
            "type": "string",
            "description": "Preview returns at most 10 records without a factory-record event. Search supports bulk output and pagination.",
            "default": "preview"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Case-insensitive text in Chinese name/address or translated broad product/industry/category labels. Space-separated words use AND. CNC/OEM capabilities are not supplied."
          },
          "manufacturingCategory": {
            "title": "Manufacturing category",
            "enum": [
              "metal processing",
              "electronics",
              "semiconductor",
              "machinery",
              "automotive parts",
              "plastics",
              "chemicals / materials",
              "food manufacturing",
              "textiles",
              "packaging",
              "other manufacturing"
            ],
            "type": "string",
            "description": "Broad registered product category. Packaging covers paper containers only; electronics excludes electrical equipment and optical instruments."
          },
          "mainProduct": {
            "title": "Main product code or text",
            "type": "string",
            "description": "Exact product code (e.g. 253) or substring of Chinese/translated English registered class label."
          },
          "city": {
            "title": "City or county",
            "type": "string",
            "description": "English or Chinese region, e.g. Taichung, Changhua, Hsinchu City, Hsinchu County."
          },
          "county": {
            "title": "County (alias of city)",
            "type": "string",
            "description": "Optional API alias of city; do not supply conflicting values."
          },
          "industryCode": {
            "title": "Industry code",
            "type": "string",
            "description": "Two-digit registered industry code, e.g. 29 machinery."
          },
          "companyId": {
            "title": "Company unified business number",
            "type": "string",
            "description": "Exact eight-digit string, preserving leading zeros."
          },
          "factoryId": {
            "title": "Factory registration ID",
            "type": "string",
            "description": "Exact factory-level registration identifier, including leading zeros or letters."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 150000,
            "type": "integer",
            "description": "Search output ceiling. Preview is always capped at 10. Each emitted search record triggers one factory-record event.",
            "default": 100
          },
          "offset": {
            "title": "Pagination offset",
            "minimum": 0,
            "maximum": 300000,
            "type": "integer",
            "description": "Zero-based matching result offset. Only search mode supports nonzero offsets.",
            "default": 0
          },
          "snapshotId": {
            "title": "Expected source snapshot SHA-256",
            "type": "string",
            "description": "For page 2+, copy snapshotId from OUTPUT. Fails without output/record charges if the source changes."
          },
          "includeInactive": {
            "title": "Include suspended factories",
            "type": "boolean",
            "description": "By default only source status 生產中 is included. Opt in to include suspended/partially suspended records.",
            "default": false
          },
          "limit": {
            "title": "Limit (API alias)",
            "minimum": 1,
            "maximum": 150000,
            "type": "integer",
            "description": "Optional alias of maxResults. Omit maxResults or use the same value. Prefer maxResults in the form."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}