# Korea Stock Market Filings Scraper (KOSPI & KOSDAQ OpenDART) (`kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart`) Actor

Korean KRX filings (KOSPI & KOSDAQ, OpenDART) as verified English JSON: supply contracts (amount, % of revenue, counterparty) for order visibility into chip-equipment, power-grid and defense suppliers, plus convertible-bond refixing and dilution events. No DART key needed. $0.15 per filing.

- **URL**: https://apify.com/kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart.md
- **Developed by:** [KR Data Labs](https://apify.com/kr-data-labs) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$150.00 / 1,000 results

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/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

## Korea Stock Market Filings Scraper (KOSPI & KOSDAQ OpenDART)

**Daily, verified English JSON from Korean KRX filings: supply contracts (order visibility into KOSDAQ semiconductor-equipment, power-grid, defense and shipbuilding suppliers) and convertible-bond dilution events, extracted from the official OpenDART filing tables.**

The English OpenDART portal gives you filing titles and basic metadata only. The numbers that move prices are inside Korean-language body tables: **the exact contract amount, its share of annual revenue, the counterparty, the contract period, the confidentiality deferral date, and the before/after conversion price of each CB series**. This Actor reads those tables and returns them as clean English JSON.

- **No DART API key, no Korean required.** It works as soon as you run it.
- **You pay only for delivered filings:** **$0.15 per filing**. There is no start fee, so a scheduled run that finds no new filings costs **$0**.
- **No duplicate charges on schedules.** Turn on `only_new: true` and each filing is delivered once across all your runs.
- **Cheap to try.** The prefilled input (`days_back: 3`, `max_items: 10`) returns up to the 10 newest filings for **at most $1.50**: [run the quick-test task](https://apify.com/kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart/examples/latest-10-korean-filings-quick-test). Remove `max_items` to get everything in the window.

***

### What it is used for

- **Supply-chain order visibility.** Korean small and mid caps build equipment and parts for global chip, power-grid, defense and shipbuilding programs, and must disclose every large order. Each `SUPPLY_CONTRACT` record gives the order size in KRW and as a share of the supplier's revenue, the counterparty when disclosed, and the contract item (e.g. memory testers, bonders, deposition and etch tools, transformers, switchgear). This is raw order data from the suppliers' own filings, not a forecast.
- **Convertible-bond dilution and overhang.** KOSDAQ convertible bonds often reset their conversion price downward ("refixing"), which raises the number of shares they can become. `CB_REFIXING`, `CB_CONVERSION` and `CB_EARLY_REDEMPTION` track, per bond series, the price, the shares still convertible and what is bought back or cancelled.
- **Event studies and backtests.** `disclosure_time_kst` tells you whether a filing came before or after the 15:30 KST close, and `amendment_details` keeps the figures each correction replaced, so you can use what the market knew at the time.
- **AI agents and research tools.** Clean English fields with stable identifiers (`stock_code`, `rcept_no`) that an agent can call and cite (see [Use with AI agents](#use-with-ai-agents-mcp)).

***

### Covered disclosures

KOSPI- and KOSDAQ-listed companies only (6-digit KRX ticker).

| `event_type` | DART disclosure | Extracted data |
| :--- | :--- | :--- |
| `SUPPLY_CONTRACT` | 단일판매·공급계약체결 (Single Sales / Supply Contract) | Contract amount (KRW), % of latest annual revenue, counterparty, contract item, start/end dates, confidentiality deferral date |
| `CB_REFIXING` | 전환가액의조정 (Conversion Price Adjustment), including KOSPI's combined 전환가액ㆍ신주인수권행사가액ㆍ교환가액의조정 filings when the adjusted security is a CB | Every bond series in the filing, with before/after conversion price (KRW), before/after convertible share count, and the refixing reason |

**Optional events** (turn on with `event_types`) track contract risk and CB dilution overhang:

| `event_type` | DART disclosure | Extracted data |
| :--- | :--- | :--- |
| `SUPPLY_CONTRACT_TERMINATION` | 단일판매·공급계약해지 (Supply Contract Termination) | Terminated amount (KRW), % of revenue, counterparty, item, reason, termination date, and the **original contract filing** it cancels (`original_disclosure_date`, `original_rcept_no`) |
| `CB_EARLY_REDEMPTION` | 전환사채 발행후 만기전 사채취득 (CB Early Redemption) | Series, face value bought back, amount paid, **remaining face value**, conversion price, reason (call/put option), disposal plan (cancel/resell) |
| `CB_CONVERSION` | 전환청구권행사 (CB Conversion), including KOSPI's combined title when it concerns a CB | Shares issued and % of shares outstanding, every daily claim, and per series the **unconverted balance and convertible shares** after the conversion |

***

### Sample output

The three samples below are actual records produced by this Actor.

#### 1. Supply contract

```json
{
  "rcept_no": "20261127801069",
  "event_type": "SUPPLY_CONTRACT",
  "market": "KOSPI",
  "company_name_en": "Kumho Construction",
  "stock_code": "002990",
  "disclosure_date": "2026-11-27",
  "disclosure_time_kst": "17:33",
  "is_amendment": false,
  "is_voluntary": false,
  "is_confidential": false,
  "dart_viewer_url": "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20261127801069",
  "amendment_details": null,
  "quality_flags": [],
  "contract_details": {
    "contract_amount_krw": 223493730000,
    "revenue_ratio_pct": 11.07,
    "recent_revenue_krw": 2018488470870,
    "counterparty_en": "Korea Land and Housing Corporation",
    "contract_item_en": "Pyeongtaek Godeok A-72BL and A-73BL Integrated Private-Public Joint Housing Construction Project",
    "contract_start_date": "2026-11-27",
    "contract_end_date": "2030-06-30",
    "deferral_end_date": null
  }
}
```

#### 2. Confidential supply contract: the amount is kept, only withheld terms are `null`

Many companies hide only the counterparty or contract name for confidentiality, while the contract amount and revenue ratio are still published. Those published numbers are kept. In this record, a KRW 3.6 trillion contract equal to 40% of annual revenue is delivered with its amount, even though the counterparty is withheld until 2027-05-28.

```json
{
  "rcept_no": "20261203800117",
  "event_type": "SUPPLY_CONTRACT",
  "market": "KOSPI",
  "company_name_en": "SAMSUNG E&A",
  "stock_code": "028050",
  "disclosure_date": "2026-12-03",
  "disclosure_time_kst": "09:14",
  "is_amendment": false,
  "is_voluntary": false,
  "is_confidential": true,
  "dart_viewer_url": "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20261203800117",
  "amendment_details": null,
  "quality_flags": [],
  "contract_details": {
    "contract_amount_krw": 3637592966291,
    "revenue_ratio_pct": 40.29,
    "recent_revenue_krw": 9028769083650,
    "counterparty_en": null,
    "contract_item_en": null,
    "contract_start_date": "2026-03-29",
    "contract_end_date": "2032-03-31",
    "deferral_end_date": "2027-05-28"
  }
}
```

#### 3. CB conversion price refixing (several bond series in one filing)

```json
{
  "rcept_no": "20261127900993",
  "event_type": "CB_REFIXING",
  "market": "KOSDAQ",
  "company_name_en": "Kolon TissueGene",
  "stock_code": "950160",
  "disclosure_date": "2026-11-27",
  "disclosure_time_kst": "17:06",
  "is_amendment": false,
  "is_voluntary": false,
  "is_confidential": false,
  "dart_viewer_url": "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20261127900993",
  "amendment_details": null,
  "quality_flags": [],
  "adjustments": [
    {
      "series": "3",
      "before_price_krw": 192210,
      "after_price_krw": 172990,
      "before_shares": 83242,
      "after_shares": 92490,
      "refixing_reason_en": "Adjustment of conversion price due to decline in market stock price"
    },
    {
      "series": "4",
      "before_price_krw": 218090,
      "after_price_krw": 185380,
      "before_shares": 561694,
      "after_shares": 660804,
      "refixing_reason_en": "Adjustment of conversion price due to decline in market stock price"
    }
  ]
}
```

***

### Output fields

| Field | Description |
| :--- | :--- |
| `rcept_no` | DART receipt number (unique per filing) |
| `event_type` | `SUPPLY_CONTRACT` or `CB_REFIXING` |
| `market` | `KOSPI` or `KOSDAQ` |
| `company_name_en`, `stock_code` | English company name and 6-digit KRX ticker |
| `disclosure_date` | `YYYY-MM-DD` |
| `disclosure_time_kst` | Receipt time on DART, `HH:MM` Korea time (KRX closes at 15:30 KST). Tells you whether the market could react the same day or only at the next open. `null` if DART's list does not show it. |
| `is_amendment` | Correction filing (기재정정). Values are the post-correction (정정후) figures. |
| `amendment_details` | Corrections only (`null` otherwise): `previous_filing_date` and `previous_rcept_no` (the filing it corrects; follow the chain to the first filing), `reason_en`, and `changes` (each row of the correction table: `item_en`, `before`, `after`) |
| `is_voluntary` | Voluntary disclosure (자율공시) |
| `is_confidential` | Some contract terms are withheld for business confidentiality (경영상 비밀유지) |
| `dart_viewer_url` | Link to the original filing on DART |
| `contract_details` | Supply contracts only: `contract_amount_krw`, `revenue_ratio_pct` (% of latest annual revenue), `recent_revenue_krw` (that revenue, in KRW), `counterparty_en`, `contract_item_en`, `contract_start_date`, `contract_end_date`, `deferral_end_date` |
| `adjustments` | CB refixing only: one entry per bond series |
| `termination_details` | Supply contract termination only (see Optional events) |
| `redemptions` | CB early redemption only: one entry per bond series |
| `conversion_details` | CB conversion only: `claims` and per-series `balances` |
| `quality_flags` | Arithmetic cross-checks between the record's own numbers (see below). Empty list when they add up. |

***

### How the numbers are produced

- **Official tables only.** The Actor downloads the filing's original XML from OpenDART and passes only its tables, plus the line above each table (units, correction notes), to the AI model. The model never browses the web.
- **Contract amounts and revenue ratios are checked against the source.** If an extracted value does not literally appear in the filing's table, it is returned as `null`, never estimated.
- **Amount, revenue and ratio must agree.** Every supply contract carries the company's `recent_revenue_krw` as printed, and `contract_amount_krw / recent_revenue_krw` must reproduce the printed `revenue_ratio_pct` (to the precision the company printed). This catches unit slips and wrong cells without rejecting genuinely tiny companies.
- **Unit conversion is done in code.** The model reports the figure as printed and its unit (`원`, `천원`, `백만원`, `억원`); Python converts it to whole KRW.
- **Metadata comes straight from DART:** `rcept_no`, `stock_code`, `market`, `disclosure_date`, `is_amendment` and `dart_viewer_url`. `disclosure_time_kst` comes from DART's public filing list.
- **Corrections (`is_amendment: true`)** use only the post-correction (정정후) figures. `amendment_details` keeps what changed (`before` → `after`) and links the correction to the filing it amends, so a backtest can use the figures the market saw at each point in time. The link is set only when exactly one earlier filing matches the stated date; otherwise it is `null`.
- **Confidential filings (`is_confidential: true`)** return `null` only for the terms that are actually withheld. `deferral_end_date` tells you when the company has committed to disclose them.
- **Numbers that don't add up are flagged, not fixed.** Companies sometimes misprint a filing (we have seen a 6-trillion convertible share count and a remaining balance missing three zeros). Every number is still delivered exactly as printed, but `quality_flags` tells you when the filing's own figures contradict each other:

  | Code | Check |
  | :--- | :--- |
  | `REFIX_FACE_MISMATCH` | CB refixing: price × convertible shares before and after the adjustment differ by more than 1% |
  | `BALANCE_SHARES_MISMATCH` | CB conversion: remaining face value ÷ conversion price differs from the stated convertible shares |
  | `CLAIM_SHARES_MISMATCH` | CB conversion: claim amount ÷ conversion price differs from the shares issued |
  | `PCT_OUTSTANDING_MISMATCH` | CB conversion: cumulative shares ÷ shares outstanding differs from the stated % |
  | `REDEMPTION_AMOUNT_RATIO` | CB early redemption: amount paid is below 0.5× or above 2× the face value bought back |
  | `REVENUE_RATIO_MISMATCH` | Supply contract: amount ÷ revenue does not give the printed % (e.g. a correction that changed the amount but not the ratio) |
  | `NOT_PRINTED` | A normally required value is `null` because the filing itself prints `-` there (or revenue 0); `field` names it. Example: a correction that withdraws a CB price adjustment |

  In our 2023–2026 history about 1% of records carry a flag.
- **Failed extractions are never charged.** A filing that could not be extracted is not marked as delivered, so the next `only_new` run retries it.

***

### Input

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `days_back` | Integer | `1` | Days of OpenDART filings to scan (`1` = yesterday and today). |
| `event_types` | Array | `["SUPPLY_CONTRACT", "CB_REFIXING"]` | Events to deliver. Add `SUPPLY_CONTRACT_TERMINATION`, `CB_EARLY_REDEMPTION` or `CB_CONVERSION` as needed. Every delivered filing costs the same. |
| `max_items` | Integer | none | Optional cap on how many filings a run delivers, newest first. Use `10` for a quick test. Filings left out are not marked as delivered. |
| `only_new` | Boolean | `false` | Deliver only filings not delivered in your earlier runs, so you are never charged twice. **Turn on for schedules.** Leave off for one-off lookups. |
| `include_amendments` | Boolean | `true` | Also deliver correction filings (기재정정, `is_amendment: true`). They often carry important updates: changed amounts or periods, and counterparties revealed after a confidentiality deferral ends. Set to `false` to receive original filings only and lower your cost. |

**Recommended for schedules:** use `days_back: 3` with `only_new: true`. The wider window costs nothing extra on later runs, because already-delivered filings are skipped, and it covers weekends. Use `5` around multi-day Korean holidays. Note that your **first** run delivers every filing in its window.

***

### Integration

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

run = client.actor("kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart").call(
    run_input={"days_back": 3, "max_items": 10}
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["market"], item["stock_code"], item["company_name_en"], item["event_type"])
```

#### Alerts (n8n / Make / Slack / Telegram)

1. In the Actor's **Integrations** tab, add a webhook on **Run succeeded**.
2. Point it to your n8n, Make or trading-server endpoint, then read the run's dataset.
3. **Schedule** the Actor, for example every 30–60 minutes on KRX business days, with `days_back: 3` and `only_new: true`. Runs with no new filings cost $0.

#### Use with AI agents (MCP)

This Actor works as a tool in Claude, Cursor and other MCP clients through Apify's MCP server. Add the server with only this Actor enabled:

```
https://mcp.apify.com/?tools=kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart
```

For example, in Claude Code:

```bash
claude mcp add korea-filings "https://mcp.apify.com/?tools=kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart" -t http
```

The agent can then ask for recent Korean supply contracts or CB refixings and receive the same records as above. Runs are billed to the connected Apify account at the usual $0.15 per filing; use `max_items` to cap a run.

***

### Limitations

- Amounts are in KRW as published. Contracts signed in foreign currency are reported at the KRW amount the company stated in the filing. No FX conversion is applied.
- Company names, counterparties and contract items are AI translations of the Korean text. Treat them as best-effort, and use `stock_code` and `rcept_no` as identifiers.
- Corrections are separate DART filings, so each one is delivered (and charged) as its own record, with `is_amendment: true`. They are a large share of all filings. Set `include_amendments: false` if you only need original filings.
- Delivery is near real-time: how fast you get a filing depends on your schedule interval.
- A field is `null` when the filing prints `-` or does not state it. For CB balances, `-` is never turned into zero.
- Not investment advice. Found an edge case? Please report it in the **Issues** tab.

# Actor input Schema

## `days_back` (type: `integer`):

How many days of DART filings to scan (1 = yesterday and today). For recurring scheduled runs use 3 together with 'Only new filings' (5 around multi-day Korean holidays): already-delivered filings are skipped, so the wider window costs nothing extra.

## `event_types` (type: `array`):

Which filing events to deliver. Default: supply contracts and CB conversion price refixings. Add supply-contract terminations, CB early redemptions (call/put buybacks, with the remaining face value) and CB conversions (with the per-series unconverted balance) to track contract risk and CB dilution overhang. Each delivered filing is charged the same.

## `max_items` (type: `integer`):

Optional cap on how many filings this run extracts and delivers (the newest first). Use a small number such as 10 for a quick, cheap test run. Leave empty for no limit.

## `only_new` (type: `boolean`):

Skip filings already delivered in your earlier runs, so you are never charged twice for the same filing. Turn this ON for scheduled/recurring runs. Leave it off for one-off lookups (each run then returns every filing in the window). Filings that failed to extract are retried in the next run.

## `include_amendments` (type: `boolean`):

Also deliver correction filings (기재정정, is_amendment: true), which are charged as separate records. They carry post-correction figures such as changed contract amounts or periods, and counterparties revealed after a confidentiality deferral ends. Set to false to receive original filings only.

## Actor input object example

```json
{
  "days_back": 3,
  "event_types": [
    "SUPPLY_CONTRACT",
    "CB_REFIXING"
  ],
  "max_items": 10,
  "only_new": false,
  "include_amendments": true
}
```

# Actor output Schema

## `results` (type: `string`):

Extracted filings (dataset items).

# 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 = {
    "days_back": 3,
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart").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 = {
    "days_back": 3,
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart").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 '{
  "days_back": 3,
  "max_items": 10
}' |
apify call kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kr-data-labs/korea-stock-market-filings-scraper-kospi-kosdaq-opendart"
        }
    }
}
```

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/dm6b3wx49nBgzm3Ep/builds/7u9FRaSL1HFnSTfaO/openapi.json
