{
  "openapi": "3.0.1",
  "info": {
    "title": "Korean Business Registry & KYB Lookup",
    "description": "Validate Korean business registration numbers (사업자등록번호), pull official NTS business status and DART corporate profiles, and verify contact details against the company website. Returns a normalized KYB record with risk flags and a 0-100 score.",
    "version": "0.3",
    "x-build-id": "iPDG9bO4VRlghYiCd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/onilab~kr-business-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-onilab-kr-business-registry",
        "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/onilab~kr-business-registry/runs": {
      "post": {
        "operationId": "runs-sync-onilab-kr-business-registry",
        "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/onilab~kr-business-registry/run-sync": {
      "post": {
        "operationId": "run-sync-onilab-kr-business-registry",
        "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": {
          "businessNumbers": {
            "title": "사업자등록번호 / Business registration numbers",
            "type": "array",
            "description": "확인할 사업자등록번호를 입력하세요. 하이픈은 있어도 없어도 됩니다. 체크섬 검증은 API 키 없이 즉시 동작하고, 키를 넣으면 국세청 상태·DART 법인정보가 함께 붙습니다.\nKorean business registration numbers (사업자등록번호), dashes optional. Checksum validation runs with no API key; add keys below for NTS status and DART corporate data.",
            "items": {
              "type": "string"
            }
          },
          "companiesCsv": {
            "title": "회사명·웹사이트 (CSV) / Company names & websites",
            "type": "string",
            "description": "한 줄에 한 회사씩 `사업자번호,회사명,웹사이트` 형식으로 입력합니다. 회사명은 DART 매칭 정확도를 높이고, 웹사이트를 넣으면 푸터의 사업자번호·대표자·연락처를 대조합니다.\nOne company per line: `businessNumber,name,website`. The name improves DART matching; the website enables footer verification of the printed business number."
          },
          "enrichFromWebsite": {
            "title": "홈페이지 대조 / Verify against company websites",
            "type": "boolean",
            "description": "웹사이트가 입력된 회사의 홈페이지와 회사소개 페이지를 읽어 사업자번호·대표자·주소·이메일·전화번호를 추출합니다. 번호가 다르면 위험 플래그가 붙습니다.\nFetch each given website (homepage plus a contact page) and extract the business number, CEO, address, email and phone printed there. Adds a mismatch risk flag when the number differs.",
            "default": true
          },
          "ntsServiceKey": {
            "title": "국세청 상태조회 키 (data.go.kr) / NTS service key",
            "type": "string",
            "description": "공공데이터포털 '국세청_사업자등록 상태조회'의 **Decoding** 서비스키. 무료이고 신청 후 2분 내 발급됩니다. 없으면 체크섬·홈페이지 정보만 반환합니다.\ndata.go.kr **Decoding** service key for the NTS 사업자등록 상태조회 API. Free, issued in about 2 minutes. Without it, only the checksum and website data are returned."
          },
          "dartApiKey": {
            "title": "DART 키 (opendart.fss.or.kr) / DART API key",
            "type": "string",
            "description": "금융감독원 전자공시 오픈API 키. 법인의 법인등록번호·대표자·본사 주소·KSIC 업종·설립일·홈페이지·상장 종목명을 추가합니다.\nFree key from opendart.fss.or.kr. Adds the corporate profile: 법인등록번호, CEO, address, KSIC industry, founding date, homepage and stock name."
          },
          "maxResults": {
            "title": "최대 처리 기업 수 / Max companies",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "한 번의 실행에서 처리할 최대 기업 수입니다.\nMaximum number of companies processed in one run.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "프록시 설정 / Proxy configuration",
            "type": "object",
            "description": "홈페이지 대조에만 사용됩니다. 회사 사이트가 데이터센터 IP를 막으면 레지덴셜 프록시로 바꾸세요.\nUsed for company website requests only. Switch to residential proxy when a company site blocks datacenter IPs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}