# Korea Bid Price Formula (입찰가격산식 A값) — Fixed Statutory Costs (`atomo-studio/korea-g2b-bid-formula`) Actor

The A-value behind Korean construction and services tenders: pension, health insurance, retirement fund, safety and quality costs that bidders cannot discount, with the total computed. From the Public Procurement Service (조달청). No Korean API key needed.

- **URL**: https://apify.com/atomo-studio/korea-g2b-bid-formula.md
- **Developed by:** [Atomo Studio](https://apify.com/atomo-studio) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 a-value records

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Korea Bid Price Formula (입찰가격산식 A값) — Fixed Statutory Costs

Korean construction and services tenders separate the bid into two parts:

```
bid = A-value (fixed by law, cannot be discounted) + everything else (competitive)
```

The **A-value** is the sum of statutory costs — national pension, health insurance,
long-term care insurance, retirement fund, safety management, safety inspection and
quality management. Bidders may not shave these. They are carried through the
award-threshold calculation untouched.

Which means: **without the A-value you cannot tell how much of a tender is actually
open to competition.** A ₩5bn job with a ₩1.8bn A-value is a ₩3.2bn contest.

```
R26BK01704762   A-value  1,802,120,035 KRW
                pension 385,370,763 · health ins. 291,664,820 · safety 398,949,518
R26BK01686574   A-value    131,323,429 KRW
R26BK01630111   A-value     83,394,505 KRW
```

Korea publishes roughly **240 A-value records a day**. The upstream API returns the
components in Korean field names **and never gives you the total** — this Actor
translates the schema and computes it.

### What you get

| Field | Notes |
|---|---|
| **`a_value_total_krw`** | **Computed here** — sum of the seven statutory components |
| `a_value_components` | How many components were present (normally 7) |
| `national_pension_krw` | 국민연금보험료 |
| `health_insurance_krw` | 국민건강보험료 |
| `long_term_care_insurance_krw` | 노인장기요양보험료 |
| `retirement_fund_krw` | 퇴직공제부금비 |
| `safety_management_cost_krw` | 안전관리비 |
| `safety_inspection_cost_krw` | 안전점검비 |
| `quality_management_cost_krw` | 품질관리비 |
| `quality_cost_in_a_value` | Whether quality cost counts toward the A-value |
| `minor_business_amount_krw` / `minor_business_applies` | 소기업 배려 금액, kept separate from the total |
| `price_decision_method_ko` | e.g. 복수예가 |
| `a_value_published_at`, `posted_at`, `notice_no`, `url` | Timing and link back |

The total deliberately excludes `minor_business_amount_krw` — it is a different kind
of adjustment and does not belong in the statutory sum.

### Input

| Field | Type | Notes |
|---|---|---|
| `startDate` / `endDate` | date | `YYYY-MM-DD`, Korea time. Defaults to last 7 days |
| `minAValueKrw` | integer | Skip tenders below this total — useful for filtering to large works |
| `keywords` | array | Match notice number or price-decision method. Usually left empty |
| `maxItems` | integer | Stop after N records. `0` = no limit |

There is no category filter — the upstream API serves all business types from a
single endpoint.

### Who this is for

- **Construction and services bidders** working out the competitive portion of a
  tender before pricing it
- **Estimators** benchmarking statutory cost ratios across comparable works
- **Bid-support tools** that need the A-value to compute award thresholds correctly
- **AI agents** reasoning about Korean bid economics

Join on `notice_no` with **Korea Public Tenders (나라장터)** for the notice,
**Korea Tender Base Prices (기초금액)** for the anchor, and
**Korea Tender Award Results (낙찰정보)** for the outcome.

### Notes

**Source.** [조달청 나라장터 입찰공고정보서비스](https://www.data.go.kr/data/15129394/openapi.do),
published on Korea's national open-data portal under an unrestricted licence
(이용허락범위 제한 없음). Every record carries a `source` field and a `url` back to
the original notice.

**This is an API client, not a scraper.** Data comes from the government's own REST
API with a registered key, so nothing breaks when g2b.go.kr is redesigned.

**No personal data.** Contact details are stripped from free-text fields and are
never emitted.

***

### Development

```bash
export G2B_SERVICE_KEY='...'   # data.go.kr 인증키 (다른 Actor와 같은 키)
python3 probe.py               # 오퍼레이션·필드명 대조
apify push                     # 배포 (게시는 하루 5개 한도 — apify-publish-queue 작업이 처리)
```

# Actor input Schema

## `startDate` (type: `string`):

Earliest notice posting date, YYYY-MM-DD (Korea time). Defaults to 7 days ago.

## `endDate` (type: `string`):

Latest notice posting date, YYYY-MM-DD (Korea time). Defaults to today.

## `keywords` (type: `array`):

Keep only records whose notice number or price-decision method matches one of these. Usually left empty.

## `maxItems` (type: `integer`):

Stop after this many records. Korea publishes roughly 240 A-value records a day. 0 = no limit.

## `minAValueKrw` (type: `integer`):

Skip tenders whose total statutory cost is below this. Useful for filtering to larger works. 0 = no filter.

## Actor input object example

```json
{
  "keywords": [],
  "maxItems": 200,
  "minAValueKrw": 0
}
```

# Actor output Schema

## `aValues` (type: `string`):

One record per tender - each statutory cost component and the computed total.

## `downloadCsv` (type: `string`):

The same records as a spreadsheet.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("atomo-studio/korea-g2b-bid-formula").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("atomo-studio/korea-g2b-bid-formula").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 '{}' |
apify call atomo-studio/korea-g2b-bid-formula --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,atomo-studio/korea-g2b-bid-formula"
        }
    }
}

```

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/wejpOFgvB4Mrp3IBY/builds/jSomGucdknqQB2tKF/openapi.json
