{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan Board Directors API (董監事・獨立董事兼任)",
    "description": "Every independent director of 2,200 Taiwan companies (8,100+) with current jobs, career and every other board seat, linked to that company's stock code — plus board rosters, chair/CEO duality, director elections. Official MOPS data, cross-checked.",
    "version": "0.1",
    "x-build-id": "kRa6gTatbtGFOQphn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/chamarix~taiwan-board-directors/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-chamarix-taiwan-board-directors",
        "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/chamarix~taiwan-board-directors/runs": {
      "post": {
        "operationId": "runs-sync-chamarix-taiwan-board-directors",
        "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/chamarix~taiwan-board-directors/run-sync": {
      "post": {
        "operationId": "run-sync-chamarix-taiwan-board-directors",
        "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": {
          "recordTypes": {
            "title": "What to fetch",
            "type": "array",
            "description": "Seven record types in one dataset, told apart by record_type. independent_director is the one with careers and other board seats, for all four boards; the rest come from the exchanges' open-data feeds and cover TWSE and TPEX.",
            "items": {
              "type": "string",
              "enum": [
                "independent_director",
                "board_member",
                "chair_ceo",
                "director_election",
                "shareholder_proposal",
                "major_shareholder",
                "holding_shortfall"
              ],
              "enumTitles": [
                "independent_director — every independent director's current jobs, past career and other board seats, with the other company's code (~8,100 rows, all four boards)",
                "board_member — every director seat: name, title, date appointed, independent or not (~17,500 rows)",
                "chair_ceo — chair and CEO of every company and whether they are the same person (~2,000 rows)",
                "director_election — this year's director elections: method, nomination window, every candidate and whether elected (~7,200 rows)",
                "shareholder_proposal — the window for shareholder proposals before each AGM, and any proposal filed (~1,300 rows)",
                "major_shareholder — shareholders holding over 10% (~230 rows)",
                "holding_shortfall — boards holding fewer shares than the legal minimum, and for how many months (a few dozen rows)"
              ]
            },
            "default": [
              "independent_director"
            ]
          },
          "markets": {
            "title": "Boards",
            "type": "array",
            "description": "Which boards to cover. Leave empty for all four. Emerging and public companies are covered by independent_director only — the exchanges publish the other reports for TWSE and TPEX.",
            "items": {
              "type": "string",
              "enum": [
                "TWSE",
                "TPEX",
                "EMERGING",
                "PUBLIC"
              ],
              "enumTitles": [
                "TWSE — listed (上市)",
                "TPEX — OTC (上櫃)",
                "EMERGING — emerging board (興櫃)",
                "PUBLIC — public but not traded (公開發行)"
              ]
            },
            "default": []
          },
          "stockCodes": {
            "title": "Company codes",
            "type": "array",
            "description": "Keep only these companies, e.g. 2330 (TSMC), 1101 (TCC). Leave empty for every company.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "personNames": {
            "title": "Person names",
            "type": "array",
            "description": "Keep only rows naming one of these people (substring match on the Chinese name as filed, e.g. 王金山). Combine with board_member to see every board a person sits on.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minOtherSeats": {
            "title": "Minimum other board seats (independent_director)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only independent directors who also sit on at least this many other boards — a quick way to find the busiest directors. 0 keeps everyone.",
            "default": 0
          },
          "linkSeatCompanies": {
            "title": "Give each other board seat its company code",
            "type": "boolean",
            "description": "Look the other company's legal name up in the four official company registers and attach its security code and board. Costs four small requests. A company that is not public (most private holding and investment companies) gets null.",
            "default": true
          },
          "crossCheck": {
            "title": "Cross-check against the open-data copy",
            "type": "boolean",
            "description": "For TWSE and TPEX, compare every independent director's seats with the exchange's open-data copy of the same filing, and fail the run if they disagree. One extra request per board; never changes the output.",
            "default": true
          },
          "useApifyProxy": {
            "title": "Route requests through Apify Proxy",
            "type": "boolean",
            "description": "Only needed if the exchange's servers start refusing the platform's addresses.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}