# Korea Tender Purchase Items (구매대상물품) — What Agencies Buy (`atomo-studio/korea-g2b-purchase-items`) Actor

Line items from Korean government tenders: product name, quantity, unit, unit price, delivery deadline and place. From the Public Procurement Service (조달청). No Korean API key needed.

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

## Pricing

from $4.00 / 1,000 purchase items

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 Tender Purchase Items (구매대상물품) — What Agencies Are Buying

A tender notice tells you an opportunity exists. It does not tell you **what is
being bought**. This Actor does.

Korean public bodies file a line-item list with every goods, services and foreign
procurement tender: product classification, specification, quantity, unit, unit
price, delivery deadline and delivery place. Roughly **1,000 line items a day**.

Real records pulled from the last week:

```
각 수요기관            공기순환기 (air circulators)     × 240,000 대   → ₩150,000,000,000
외교부 국립외교원       정보시스템개발서비스              × 1 식        → ₩270,000,000
서울특별시서울의료원    의료용입체정위기                  × 1 set       deliver by 2026-12-31
(foreign procurement)  페로니오븀 (ferroniobium)        × 290 TON
```

The upstream API returns this in Korean field names across three separate
endpoints. **This Actor merges the three and translates the schema.** No Korean
API key, no portal registration.

### What you get

| Group | Fields |
|---|---|
| **What** | `product_class_ko`, `product_detail_ko`, `specification_ko`, `product_class_no`, `product_detail_class_no` |
| **How much** | `quantity`, `unit`, `unit_price_krw`, **`line_total_krw`** (computed) |
| **Delivery** | `delivery_deadline_at`, `delivery_days`, `delivery_place_ko`, `delivery_terms_ko` |
| **Who** | `demand_agency_ko`, `demand_agency_code` |
| **Link back** | `notice_no`, `notice_seq`, `item_seq`, `posted_at`, `url` |

One record per line item — a tender buying five different things produces five
records, distinguished by `item_seq`.

`line_total_krw` is `quantity × unit_price_krw`, computed only when the unit price
is a real figure. Many tenders enter a nominal price (₩1, ₩10) and refer bidders to
a spec sheet instead; those records carry the quantity but no total.

### Input

Every field is optional. The default is the last 7 days across all three categories.

| Field | Type | Notes |
|---|---|---|
| `startDate` / `endDate` | date | `YYYY-MM-DD`, Korea time |
| `categories` | array | `goods`, `service`, `foreign` |
| `keywords` | array | Match on product, specification or agency. Korean or English — `서버`, `카메라`, `의료` |
| `minUnitPriceKrw` | integer | Skip items below this unit price |
| `maxItems` | integer | Stop after N line items. `0` = no limit |

Construction (공사) has no line-item data upstream, so it is not offered.

### Who this is for

- **Suppliers and exporters** — filter by `keywords` to see every Korean public
  tender buying your product category, with quantities and delivery dates
- **Distributors** sizing demand for a product class across agencies
- **Market analysts** tracking what the public sector actually procures
- **AI agents** that need Korean procurement demand as structured context

Join on `notice_no` with **Korea Public Tenders (나라장터)** for the notice itself,
and with **Korea Tender Base Prices (기초금액)** for the pricing anchor.

### 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 dedicated and free-text
fields alike and are never emitted.

***

### Development

```bash
export G2B_SERVICE_KEY='...'   # data.go.kr 인증키 (다른 Actor와 같은 키)
python3 probe.py               # 오퍼레이션·필드명 대조
apify push                     # 배포
```

# Actor input Schema

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

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

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

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

## `categories` (type: `array`):

Which kinds of tender to include. Construction has no line-item data, so it is not offered.

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

Keep only items whose product name, specification or agency matches one of these. Korean or English - e.g. 서버, 카메라, 의료. Leave empty for everything.

## `minUnitPriceKrw` (type: `integer`):

Skip items below this unit price. Note that many tenders enter a nominal unit price and refer to a spec sheet instead. 0 = no filter.

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

Stop after this many line items, spread evenly across the selected categories. Korea registers roughly 1,000 line items a day. 0 = no limit.

## Actor input object example

```json
{
  "categories": [
    "goods",
    "service",
    "foreign"
  ],
  "keywords": [],
  "minUnitPriceKrw": 0,
  "maxItems": 200
}
```

# Actor output Schema

## `items` (type: `string`):

One record per line item — product, quantity, unit price, delivery.

## `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-purchase-items").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-purchase-items").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-purchase-items --silent --output-dataset

```

## MCP server setup

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

```

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/WffCdCd9oNY6m3ZQV/builds/eXmOl9nDDldevI0a3/openapi.json
