# Korean Business Registry & KYB Lookup (`onilab/kr-business-registry`) Actor

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.

- **URL**: https://apify.com/onilab/kr-business-registry.md
- **Developed by:** [Onilab](https://apify.com/onilab) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 kyb reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Korean Business Registry & KYB Lookup

#### 한국 사업자등록번호 검증 · KYB 조회

**사업자등록번호 하나로** 국세청 사업 상태, DART 법인 정보, 회사 홈페이지 대조까지 한 번에 확인하고 0~100점 KYB 등급으로 돌려줍니다.
**One business number in, one compliance-ready KYB record out:** official NTS status, DART corporate profile, website verification, machine-readable risk flags and a 0–100 score.

| | |
| --- | --- |
| 입력 / Input | 사업자등록번호 (하이픈 유무 무관) / business registration numbers |
| API 키 / Keys | **없어도 동작** (체크섬 + 홈페이지 대조) / works with no key |
| 1회 실행 시간 / Runtime | 약 10초 (2건 기준) / ~10 s for a couple of numbers |
| 과금 / Pricing | 기업 1건당 **$0.004** / **$0.004 per company** |

***

### ⚡ 30초 빠른 시작 / 30-second quick start

| Step | 한국어 | English |
| --- | --- | --- |
| **1** | **Start를 누르세요.** 예시 사업자번호 2개가 이미 채워져 있어 아무것도 고치지 않아도 바로 실행됩니다. | **Press Start.** Two example numbers are pre-filled — run it without changing anything. |
| **2** | **결과 확인.** 실행이 끝나면 `Dataset` 탭에 기업별 레코드 1건씩 들어 있습니다. | **Read the result.** The Dataset tab holds one record per company. |
| **3** | **내 번호로 교체.** `Input`으로 돌아가 사업자등록번호를 붙여넣고 다시 Start. 국세청·DART 키는 `⚙️ 고급 설정`에 있습니다. | **Swap in your numbers** and run again. NTS and DART keys live under Advanced options. |

**복붙용 입력 / Copy-paste input (JSON)**

```json
{
  "businessNumbers": [
    "113-86-00917",
    "220-81-62517"
  ]
}
```

> Console의 **JSON** 탭에 그대로 붙여넣으면 입력 폼이 자동으로 채워집니다. / Paste it into the **JSON** tab of the Input section and the form fills itself.

회사명·웹사이트까지 대조하려면 `companiesCsv`를 함께 주세요 (홈페이지 푸터의 사업자번호를 실제로 읽어 대조합니다):

```json
{
  "businessNumbers": ["107-81-52230"],
  "companiesCsv": "107-81-52230,한글과컴퓨터,https://www.hancom.com",
  "enrichFromWebsite": true
}
```

***

### 📊 출력 / Sample output

| 필드 / Field | 예시 / Example | 의미 / Meaning |
| --- | --- | --- |
| `businessNumber` | `113-86-00917` | 정규화된 사업자등록번호 / normalized number |
| `checksumValid` | `true` | 국세청 체크섬 통과 = 구조적으로 유효 / passes the official checksum |
| `companyName` · `legalForm` | `㈜사람인` · `주식회사` | 상호와 법인 형태 (`legalFormSource`가 `name`/`dart`, 표기·DART 근거가 없으면 `null`) / company name, legal form and where it came from |
| `websiteBizNoMatches` | `true` | 회사 홈페이지에 인쇄된 번호와 일치 / printed number on the website matches |
| `status` · `taxType` | `계속사업자` · `부가가치세 일반과세자` | 국세청 공식 상태 (키 필요) / NTS status (key needed) |
| `ntsRegistered` | `true` | 국세청 등록 여부. `false`면 `미등록` + `NOT_REGISTERED` 플래그(점수 상한 20) / false means NTS does not know the number |
| `riskFlags` | `[{ "code": "CLOSED", ... }]` | 위험 플래그 / machine-readable risk flags |
| `kybScore` · `kybGrade` | `94` · `A` | 0~100점과 A~D 등급 / score and grade |

2026-11-23 실제 실행 결과(주요 필드만 발췌, API 키 없이 실행):

```json
{
  "businessNumber": "113-86-00917",
  "checksumValid": true,
  "companyName": "㈜사람인",
  "normalizedCompanyName": "사람인",
  "legalForm": "주식회사",
  "entityType": "corporation",
  "legalFormSource": "name",
  "status": null,
  "taxType": null,
  "address": { "full": null, "sido": null, "sigungu": null, "dong": null },
  "industry": { "code": null, "ksicSection": null, "ksicSectionName": null },
  "websiteBizNo": null,
  "websiteBizNoMatches": null,
  "sources": ["local-checksum"],
  "riskFlags": [
    { "code": "NO_OFFICIAL_STATUS", "label": "국세청 상태를 확인하지 못했습니다", "severity": "low" }
  ],
  "kybScore": 94,
  "kybGrade": "A",
  "verifiedAt": "2026-11-23T08:30:44+00:00"
}
```

**키를 넣으면 이 필드들이 채워집니다 / these fields fill in once keys are supplied**

| 필드 / Field | 키 필요 / Needs | 채워지는 값 예시 / Example value |
| --- | --- | --- |
| `status`, `statusCode`, `taxType`, `closedDate` | `ntsServiceKey` | `계속사업자`, `01`, `부가가치세 일반과세자` |
| `corporationNumber`, `establishedDate`, `stockName` | `dartApiKey` | `110111-1234567`, `2005-01-01` |
| `ceoName`, `address.*`, `industry.*` | `ntsServiceKey` / `dartApiKey` | 주소는 시도·시군구·동·도로명으로 분리 |
| `email`, `phone`, `websiteBizNo` | `companiesCsv`의 웹사이트 | `support@hancom.com`, `1566-5192` |

***

### Pricing guide / 💰 과금 안내 (Pay-per-event)

| 이벤트 / Event | 단가 / Price | 과금 시점 / Charged |
| --- | --- | --- |
| `apify-actor-start` | $0.001 | 실행당 1회 / once per run |
| `kyb-report` | **$0.004 / 기업** | 기업 1건당 / per returned company |

| 규모 / Volume | 비용 / Cost | 비고 / Note |
| --- | --- | --- |
| 10곳 | $0.04 | 스팟 체크 / spot check |
| 100곳 | $0.40 | 일반적인 CRM 배치 / typical CRM batch |
| 1,000곳 | $4.00 | 국세청 API는 100건씩 묶어 호출 / NTS batched at 100 |
| 10,000곳 | $40.00 | 홈페이지 대조는 레지덴셜 프록시 권장 / use residential proxy |

결과 0건인 실행에는 과금하지 않습니다. 과금 설정이 없는 액터에서는 청구가 조용히 건너뛰어집니다. / Runs that return nothing are not charged, and an unmonetized Actor skips charging silently.

***

### What it does / 무엇을 하나

1. **체크섬 검증** — 국세청 사업자번호 체크섬 알고리즘으로 오타·조작된 번호를 즉시 걸러냅니다. API 키도, 인터넷도 필요 없습니다. / Local checksum validation of 사업자번호 and 법인번호 — no key, no network.
2. **공식 사업 상태** — 국세청 사업자등록 상태조회로 계속사업자 / 휴업자 / 폐업자, 과세유형(일반·간이·면세), 폐업일을 확인합니다. / Official NTS status and tax type.
3. **법인 프로필** — DART 전자공시에서 법인등록번호, 대표자, 본사 주소, KSIC 업종코드, 설립일, 홈페이지, 상장 종목명을 붙입니다. / DART corporate profile.
4. **홈페이지 대조** — 입력한 도메인의 홈페이지와 회사소개 페이지에서 사업자번호·대표자·주소·이메일·전화·통신판매업 신고번호를 추출하고, 입력 번호와 다르면 위험 플래그를 답니다. / Website footer verification with a mismatch flag.
5. **정규화** — 주소를 시도/시군구/동/도로명으로, 업종을 KSIC 대분류(A~U)로, 회사명의 법인 표기(`㈜`, `(주)`)를 법인 형태로 통일합니다. 표기가 없으면 단정하지 않고 `null`로 둡니다. / Normalized address, industry and legal form — left null when the name carries no marker.
6. **점수화** — 0~100 KYB 점수와 A~D 등급, 그리고 기계가 읽을 수 있는 `riskFlags`를 반환합니다. / Score, grade and risk flags.

한 소스가 실패해도 실행은 끝까지 갑니다. 실패한 소스는 레코드의 `sourceErrors`와 실행 상태 메시지에 남습니다. / A failing source never kills the run; it is recorded in `sourceErrors`.

***

### Input reference / 입력값

| 필드 / Field | 타입 / Type | 기본값 / Default | 설명 / Description |
| --- | --- | --- | --- |
| `businessNumbers` | string\[] | 예시 2건 prefill | 사업자등록번호. 하이픈·공백 무시 / numbers, dashes ignored |
| `companiesCsv` | string | — | `사업자번호,회사명,웹사이트` 한 줄에 하나 / one company per line |
| `enrichFromWebsite` | boolean | `true` | 홈페이지 대조 사용 / verify against company websites |
| `ntsServiceKey` | secret | — | data.go.kr **Decoding** 키 / NTS status key |
| `dartApiKey` | secret | — | opendart.fss.or.kr 키 / DART key |
| `maxResults` | integer | `100` | 최대 처리 기업 수 / max companies |
| `proxyConfiguration` | object | Apify Proxy | 홈페이지 요청에만 사용 / website requests only |

국세청 API는 **한 요청에 100건씩** 묶어 호출하므로 대량 실행도 빠릅니다. / Up to 100 numbers are batched per NTS request.

**키 발급 / Getting the free keys**

- 국세청: <https://www.data.go.kr> → `국세청_사업자등록 상태조회` 검색 → 활용신청 → **Decoding** 인증키 복사.
- DART: <https://opendart.fss.or.kr> → 인증키 신청/관리 → 40자리 키 복사.
- Encoding 키를 넣으면 인증 오류가 나고 체크섬 결과만 남습니다. 반드시 **Decoding** 키를 쓰세요.

***

### Risk flags / 위험 플래그

| 코드 / Code | 심각도 / Severity | 의미 / Meaning |
| --- | --- | --- |
| `INVALID_CHECKSUM` | high | 체크섬 실패 (오타 또는 조작) / fails the checksum |
| `INVALID_CORP_NO` | medium | 법인등록번호 체크섬 실패 / invalid corporation number |
| `CLOSED` | high | 국세청 기준 폐업자 (점수 30 상한) / closed business |
| `SUSPENDED` | medium | 휴업자 / suspended |
| `NO_OFFICIAL_STATUS` | low | 국세청 상태를 확인하지 못함 / no official status available |
| `SIMPLIFIED_TAX` | low | 간이과세자 / simplified tax |
| `TAX_EXEMPT` | low | 면세사업자 / tax exempt |
| `YOUNG_COMPANY` | low | 설립 1년 미만 / founded less than a year ago |
| `WEBSITE_NUMBER_MISMATCH` | medium | 홈페이지에 인쇄된 번호와 불일치 / number on the site differs |

점수는 100에서 high −35, medium −15, low −6으로 깎입니다. 등급은 **A ≥ 85, B ≥ 70, C ≥ 55, D < 55**. / Score starts at 100 and subtracts 35 / 15 / 6 per high / medium / low flag.

***

### Use cases / 활용 사례

- **리드 검증** — 전시회·마켓플레이스에서 받은 사업자번호 목록에서 실제 영업 중인 회사만 남깁니다. / Lead qualification before sales outreach.
- **거래처 온보딩** — 발주서를 넣기 전에 사업자번호·법인명·주소를 확인합니다. / Vendor and partner onboarding.
- **세금계산서 점검** — 계산서에 적힌 번호가 폐업 사업자인지, 홈페이지 번호와 같은지 확인합니다. / Invoice and tax checks.
- **CRM 보강** — 번호만 있는 계정에 업종·주소·연락처를 채웁니다. / CRM enrichment.
- **마켓플레이스 셀러 심사** — 자기 홈페이지에 다른 사업자번호를 인쇄한 셀러(흔한 유령 계정 신호)를 표시합니다. / Marketplace seller screening.
- **데이터 정리** — 고객 DB의 오타를 체크섬만으로 찾아냅니다. / Data cleaning without any API key.

***

### Limitations / 한계와 준수

- 국세청 상태는 **조회 시점** 기준입니다. 확인한 다음 날 폐업할 수 있으니 `verifiedAt`을 함께 저장하세요. / NTS status is a point-in-time lookup.
- `legalForm`은 회사명 표기(`㈜`, `(주)`, `주식회사`, `유한회사` …)에서만 추론합니다. 표기가 없으면 **개인사업자로 단정하지 않고** `legalForm: null`, `entityType: "unknown"`으로 둡니다(대부분의 법인도 data.go.kr 상호에는 표기가 없습니다). DART 프로필에 법인등록번호가 있으면 `entityType: "corporation"`, `legalFormSource: "dart"`로 보정합니다. / Legal form is only inferred from an explicit marker; otherwise it stays null rather than guessing 개인사업자, and a DART profile corrects it.
- 국세청이 모르는 번호는 `status: "미등록"`, `ntsRegistered: false`, `NOT_REGISTERED` 플래그로 나옵니다. 키가 없어 조회하지 못한 경우(`ntsRegistered: null`)와 구분됩니다. / An unknown number is reported as 미등록/NOT_REGISTERED, distinct from "not checked".
- DART는 공시 대상 법인만 커버합니다. 개인사업자·소규모 회사는 프로필이 없을 수 있습니다. / DART covers corporations that file disclosures.
- 홈페이지 대조는 입력한 도메인의 첫 페이지와 `/company`, `/about` 등 몇 개 경로만 읽습니다. 자바스크립트로 푸터를 그리는 사이트는 값이 비어 있을 수 있습니다. / Website enrichment reads the homepage and a few common company pages; JS-rendered footers may yield nothing.
- 액터는 **공개 페이지만** 읽습니다. 로그인·유료벽 우회·개인정보 수집은 하지 않습니다. 결과를 저장·재판매할 때는 개인정보보호법과 각 출처의 이용약관을 지켜야 합니다. / Public pages only; comply with 개인정보보호법 and each source's terms.

***

### Local development / 로컬 개발

```bash
cd 01-kr-business-registry
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python3 -m unittest discover -s tests -t .   # 30 unit tests, no network
apify run
```

***

### License

코드는 MIT. 데이터는 각 출처(국세청, 금융감독원, 회사 홈페이지)에 귀속됩니다. / MIT for the code; data belongs to the respective sources.

# Actor input Schema

## `businessNumbers` (type: `array`):

확인할 사업자등록번호를 입력하세요. 하이픈은 있어도 없어도 됩니다. 체크섬 검증은 API 키 없이 즉시 동작하고, 키를 넣으면 국세청 상태·DART 법인정보가 함께 붙습니다.
Korean business registration numbers (사업자등록번호), dashes optional. Checksum validation runs with no API key; add keys below for NTS status and DART corporate data.

## `companiesCsv` (type: `string`):

한 줄에 한 회사씩 `사업자번호,회사명,웹사이트` 형식으로 입력합니다. 회사명은 DART 매칭 정확도를 높이고, 웹사이트를 넣으면 푸터의 사업자번호·대표자·연락처를 대조합니다.
One company per line: `businessNumber,name,website`. The name improves DART matching; the website enables footer verification of the printed business number.

## `enrichFromWebsite` (type: `boolean`):

웹사이트가 입력된 회사의 홈페이지와 회사소개 페이지를 읽어 사업자번호·대표자·주소·이메일·전화번호를 추출합니다. 번호가 다르면 위험 플래그가 붙습니다.
Fetch 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.

## `ntsServiceKey` (type: `string`):

공공데이터포털 '국세청_사업자등록 상태조회'의 **Decoding** 서비스키. 무료이고 신청 후 2분 내 발급됩니다. 없으면 체크섬·홈페이지 정보만 반환합니다.
data.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` (type: `string`):

금융감독원 전자공시 오픈API 키. 법인의 법인등록번호·대표자·본사 주소·KSIC 업종·설립일·홈페이지·상장 종목명을 추가합니다.
Free key from opendart.fss.or.kr. Adds the corporate profile: 법인등록번호, CEO, address, KSIC industry, founding date, homepage and stock name.

## `maxResults` (type: `integer`):

한 번의 실행에서 처리할 최대 기업 수입니다.
Maximum number of companies processed in one run.

## `proxyConfiguration` (type: `object`):

홈페이지 대조에만 사용됩니다. 회사 사이트가 데이터센터 IP를 막으면 레지덴셜 프록시로 바꾸세요.
Used for company website requests only. Switch to residential proxy when a company site blocks datacenter IPs.

## Actor input object example

```json
{
  "businessNumbers": [
    "113-86-00917",
    "220-81-62517"
  ],
  "enrichFromWebsite": true,
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Default dataset: one item per business number with businessNumber, checksumValid, companyName, legalForm, entityType, status, taxType, address, industry, contact details, riskFlags, kybScore and kybGrade.

## `summary` (type: `string`):

Key-value store: run summary with records requested/produced, how many got an NTS status or DART profile, and per-source errors.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "businessNumbers": [
        "113-86-00917",
        "220-81-62517"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("onilab/kr-business-registry").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "businessNumbers": [
        "113-86-00917",
        "220-81-62517",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("onilab/kr-business-registry").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "businessNumbers": [
    "113-86-00917",
    "220-81-62517"
  ]
}' |
apify call onilab/kr-business-registry --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,onilab/kr-business-registry"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BZUfGYmnj6c4YRWCJ/builds/iPDG9bO4VRlghYiCd/openapi.json
