{
  "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": "K8cgLCWSIKcn9yDs4"
  },
  "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": {
          "stockCodes": {
            "title": "Stock codes (6-digit KRX ticker)",
            "type": "array",
            "description": "6-digit Korea Exchange ticker codes — one per line (e.g. 005930 = Samsung Electronics, 000660 = SK hynix). Auto-resolved to a DART corp code.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "corp_codes": {
            "title": "DART corp codes (8-digit)",
            "type": "array",
            "description": "8-digit DART internal corporate codes — the fastest, exact lookup (e.g. 00126380 = Samsung Electronics).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "companyNames": {
            "title": "Company names (best-effort)",
            "type": "array",
            "description": "Korean or English company names — one per line. Resolved against the 118K DART index; ambiguous names use the first match, so prefer stock or corp codes for precision.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "industryCode": {
            "title": "Industry discovery (KSIC)",
            "enum": [
              "",
              "10",
              "11",
              "13",
              "20",
              "21",
              "22",
              "24",
              "25",
              "26",
              "27",
              "28",
              "29",
              "30",
              "35",
              "41",
              "42",
              "46",
              "47",
              "52",
              "58",
              "61",
              "62",
              "63",
              "64",
              "65",
              "66",
              "68",
              "70",
              "72",
              "86"
            ],
            "type": "string",
            "description": "Optional. Scan LISTED (KOSPI/KOSDAQ) companies and keep those whose KSIC industry code starts with this sector prefix. API-intensive and slower — pair it with Max companies. Leave as 'none' to look up by code/name instead.",
            "default": ""
          },
          "includeFinancials": {
            "title": "Include financials",
            "type": "boolean",
            "description": "Attach the most recent ANNUAL IFRS statements (balance sheet + income statement, 3-year, consolidated CFS + separate OFS). Adds one API call per company.",
            "default": true
          },
          "maxExecutivesPerCompany": {
            "title": "Max executives per company",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap the executive list per company (registered directors first, then by shares held). 0 = return all.",
            "default": 100
          },
          "outputLanguage": {
            "title": "Output language",
            "enum": [
              "both",
              "en"
            ],
            "type": "string",
            "description": "How names, addresses and titles are presented. 'Both' keeps Korean and adds Romanized/English. 'English' makes Romanized/English primary and moves Korean to *_ko fields.",
            "default": "both"
          },
          "maxResults": {
            "title": "Max companies",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on the number of company records returned. 0 = unlimited.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Concurrent lookups",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Number of parallel OpenDART fetches. Higher = faster but more likely to hit rate limits (auto-retried). Default 5.",
            "default": 5
          },
          "crtfc_key": {
            "title": "OpenDART API key (optional)",
            "type": "string",
            "description": "Optional. Your own free OpenDART key (opendart.fss.or.kr) for higher rate limits. Leave blank to use the built-in shared key."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}