{
  "openapi": "3.0.1",
  "info": {
    "title": "Korean Company Data — Directors, Shareholders & Financials",
    "description": "Look up any Korean listed company and get directors with exact shareholdings, full IFRS financial statements (3-year, consolidated+separate), and firmographics. Clean JSON for KYC, due diligence & supply-chain verification.",
    "version": "0.1",
    "x-build-id": "HtfsexKlIsBYxAh0P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~korean-company-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-korean-company-data",
        "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/foxlabs~korean-company-data/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-korean-company-data",
        "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/foxlabs~korean-company-data/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-korean-company-data",
        "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": {
          "crtfc_key": {
            "title": "OpenDART API key (optional — default provided)",
            "type": "string",
            "description": "A default free API key is included. Provide your own key only if you need higher rate limits (20K/day per key). Get a free key at https://opendart.fss.or.kr"
          },
          "corp_codes": {
            "title": "DART corporate codes — most precise",
            "type": "array",
            "description": "8-digit DART corporate codes (e.g. `00126380` for Samsung Electronics). Exact match, zero ambiguity. Use this for guaranteed results.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stockCodes": {
            "title": "Stock codes (KOSPI/KOSDAQ)",
            "type": "array",
            "description": "6-digit stock ticker codes (e.g. `005930` for Samsung). Resolved to corp_code via the DART master index.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "title": "Company names (best-effort)",
            "type": "array",
            "description": "Korean or English company names. Resolved via DART corp-code index. ⚠ Best-effort: ambiguous names may match the wrong company — use corp_code for guaranteed results.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "industryCode": {
            "title": "Industry sector — Discovery Mode",
            "enum": [
              "",
              "01",
              "10-34",
              "10",
              "13",
              "20-21",
              "26",
              "261",
              "262-263",
              "264",
              "29",
              "291",
              "30",
              "35",
              "41-42",
              "45-47",
              "49-52",
              "55-56",
              "58-63",
              "61",
              "62",
              "64-66",
              "641",
              "68",
              "70-73",
              "85",
              "86",
              "90-91"
            ],
            "type": "string",
            "description": "Select a KSIC industry sector to discover ALL Korean companies in that sector (scans ~4K listed companies). Choose \"—\" to use direct lookup mode with corp_codes/stockCodes/companyNames instead.",
            "default": ""
          },
          "includeFinancials": {
            "title": "Include financial statements (extra API call)",
            "type": "boolean",
            "description": "Adds full IFRS financial statements: 3-year comparison, consolidated (CFS) + separate (OFS) balance sheet and income statement. Adds 1 extra API call per company.",
            "default": false
          },
          "maxExecutivesPerCompany": {
            "title": "Max executives per company",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Limit executive records per company (registered first, then by share count). Default 100. Set 0 for all — warning: Samsung has 2,600+ and this increases cost.",
            "default": 100
          },
          "maxResults": {
            "title": "Maximum number of companies",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on results. Set 0 for unlimited.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Concurrent lookups",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many companies to fetch in parallel. Default 5 is balanced for the OpenDART API; lower it if you hit the 20K/day rate limit on large lists.",
            "default": 5
          },
          "outputLanguage": {
            "title": "Output language",
            "enum": [
              "both",
              "en"
            ],
            "type": "string",
            "description": "`both` (default): Korean originals + English/Romanized alternatives side-by-side. `en`: Romanized/English as primary fields, Korean moved to _ko suffixed fields (corp_name_ko, address_ko, ceo_ko, name_ko, position_ko).",
            "default": "both"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Datacenter proxy is sufficient (OpenDART is an open government API).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": []
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}