# Korea G2B Bid Intelligence - 나라장터 입찰·낙찰·발주계획 (`gochujang/korea-g2b-bid-intelligence`) Actor

Korean public procurement (나라장터 G2B) bid notices, awards and order plans from the official 조달청 Open APIs, plus award-rate (낙찰률) median/p10/p90, recommended bid band, top-winner leaderboard and upcoming pipeline per agency and category.

- **URL**: https://apify.com/gochujang/korea-g2b-bid-intelligence.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 G2B Bid Intelligence — 나라장터 입찰·낙찰·발주계획

Korean public procurement data from **나라장터 (KONEPS / G2B)**, read from the official 조달청 Open APIs on data.go.kr: open bid notices with deadline countdowns, award results, and order plans. The actor also derives the numbers bidders look up by hand: the award rate (낙찰률) distribution per agency and category, a recommended bid band, a top-winner leaderboard, and the pipeline of planned purchases that have no bid notice yet.

No scraping. Every row comes from the official API, and each row's `source` field names its dataset.

### What you get

| Mode | Rows | Use it for |
| --- | --- | --- |
| `bids` (default) | `bid`: one per bid notice (입찰공고), with `bid_close_at`, `days_until_close`, `hours_until_close`, `estimated_price_krw`, `award_floor_rate_pct` (낙찰하한율), agency, contract method and link | Daily tender alerts by keyword, agency or region |
| `awards` | `award`: one per award result (낙찰), with winner, `award_amount_krw`, `award_rate_pct` (최종낙찰률, % of 예정가격) and participant count | Competitor and price research |
| `plans` | `plan`: one per order plan (발주계획), with order month, planned amount and whether a bid notice has been posted | Planning before tenders are announced |
| `insights` | `award_rate_stats`, `top_winner`, `pipeline` (derived) | Bid pricing and market sizing |

**Derived rows (`insights`):**

- `award_rate_stats`: one row per demand agency × category, plus an `ALL` row per category. Fields: `sample_size`, award-rate `median`/`p10`/`p90`/`mean`, and `recommended_bid_band_pct`, the interquartile range (p25–p75) of winning award rates. Half of the past winning bids fell inside this band. Also median award amount, median participants and distinct winners. Groups with fewer than `min_sample` awards are left out.
- `top_winner`: winners ranked by total award amount, with wins, median award rate, categories and top agencies.
- `pipeline`: order plans from this month onward whose bid notice is not posted yet, grouped by agency × category × order month, with the largest planned items.

Categories: `services` (용역), `goods` (물품), `construction` (공사), `foreign` (외자).

### Input

| Field | Default | Description |
| --- | --- | --- |
| `mode` | `bids` | `bids`, `awards`, `plans` or `insights` |
| `categories` | services, goods, construction | Which 업무구분 to query |
| `keywords` | — | Keep rows whose title, business name or classification contains any keyword. With exactly one keyword, the API also filters server-side. |
| `agencies` | — | Keep rows whose notice, demand or order agency name contains any of these |
| `region` | — | 참가제한지역명 for bids/awards (e.g. `서울`), 기관소재지명 for plans |
| `days_back` | 7 | Bids/awards registered in the last N days (use 30–90 for `insights`) |
| `open_only` | true | `bids`: drop notices whose deadline has passed |
| `plans_days_back` / `months_ahead` | 90 / 6 | Order plans posted in the last N days, for order months up to N months ahead |
| `include_pipeline` / `include_records` | true / false | `insights`: add pipeline rows / also output the raw award and plan rows |
| `min_sample` / `top_n` | 3 / 20 | Minimum awards per statistics group / leaderboard size |
| `max_results` | 200 | Maximum raw rows per run |
| `max_api_calls` | 30 | Live API calls allowed this run |

An empty input `{}` returns the open service, goods and construction bid notices from the last 7 days.

#### Example output (`bids`)

```json
{
  "record_type": "bid",
  "category": "services",
  "bid_notice_no": "R26BK00100001",
  "title": "AI 기반 민원 데이터 분석 시스템 구축 용역",
  "demand_agency": "경상남도 창원시",
  "estimated_price_krw": 300000000,
  "award_floor_rate_pct": 87.745,
  "bid_close_at": "2026-11-24T10:00:00+09:00",
  "days_until_close": 7.92,
  "is_open": true,
  "source": "조달청 나라장터 입찰공고정보서비스 via data.go.kr (dataset 15129394)"
}
```

Times are KST (`+09:00`). Amounts are KRW. Officials' names, phone numbers and e-mail addresses, and winners' CEO names, addresses and phone numbers, are not output.

### Quota, cache and errors

- The official API allows a fixed number of calls per operation per day. The actor pages 100 rows per call, stops at `max_results` or `max_api_calls`, and caches each page in a named key-value store in your account (bids 1 h, awards 6 h, plans 12 h). Repeat runs within those windows spend no API calls.
- A failed source never costs you anything. When one category or operation fails (for example, an expired key or a used-up quota), the run continues with the others and adds a free `error` row naming the operation, category and error code. A used-up quota stops the remaining queries. The `SUMMARY` record shows calls per operation and cache hits.

### Pricing (pay per event)

- `apify-actor-start`: once per run that completes at least one query.
- `record-returned`: per `bid`, `award` or `plan` row.
- `insight-returned`: per `award_rate_stats`, `top_winner` or `pipeline` row.
- The first 20 rows per user are free (one time, not per run). `error` rows are always free.

See the Pricing tab for current prices.

### Source and licence

Data: 조달청 (Public Procurement Service) via [data.go.kr](https://www.data.go.kr/):
조달청_나라장터 입찰공고정보서비스 (15129394), 조달청_나라장터 낙찰정보서비스 (15129397) and
조달청_나라장터 발주계획현황서비스 (15129462). Each dataset page lists the licence as **이용허락범위 제한 없음**
(no restriction on permitted use). This actor is not affiliated with 조달청. Check the official notice before you bid. Award rate is the API's 최종낙찰률, and the bid band summarises past awards only. It does not predict the outcome of any tender.

***

### 한국어 안내

나라장터(조달청) 공식 Open API(data.go.kr)로 **입찰공고·낙찰정보·발주계획**을 조회하고 다음 분석을 함께 제공합니다.

- **입찰공고(bids)**: 키워드·기관·지역 필터, 마감까지 남은 일/시간(`days_until_close`), 추정가격, 낙찰하한율
- **낙찰정보(awards)**: 낙찰업체, 낙찰금액, 최종낙찰률(예정가격 대비 %), 참가업체 수
- **발주계획(plans)**: 발주 예정 월, 합계발주금액, 입찰공고 게시 여부
- **분석(insights)**: 수요기관×업무구분별 낙찰률 중앙값·p10·p90, 추천 투찰 구간(낙찰률 p25~p75), 낙찰 상위업체 순위, 공고 전 발주 파이프라인

빈 입력 `{}`은 최근 7일간 마감 전인 용역·물품·공사 입찰공고를 반환합니다. 담당자 이름·전화·이메일과 낙찰업체 대표자·주소·전화는 출력하지 않습니다.

API 호출은 쿼터(오퍼레이션별 일일 한도)를 고려해 `max_api_calls`로 제한하고 결과 페이지를 캐시합니다. 실패한 소스는 무료 `error` 행으로 표시되며 과금되지 않습니다. 사용자당 첫 20행은 1회 한정 무료입니다.

출처: 조달청 나라장터 Open API (data.go.kr 15129394·15129397·15129462). 이용허락범위 제한 없음. 본 액터는 조달청과 관계가 없습니다. 추천 투찰 구간은 과거 낙찰 결과의 요약일 뿐 낙찰을 보장하지 않습니다.

# Actor input Schema

## `mode` (type: `string`):

bids = open bid notices with deadline countdown; awards = award results (낙찰); plans = order plans (발주계획); insights = derived award-rate stats, recommended bid band, top winners and upcoming pipeline.

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

Any of services (용역), goods (물품), construction (공사), foreign (외자).

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

Rows whose title, business name or classification contains any keyword (case-insensitive). With exactly one keyword it is also sent to the API as a server-side filter.

## `agencies` (type: `array`):

Keep rows whose notice, demand or order agency name contains any of these (e.g. 조달청, 서울특별시).

## `region` (type: `string`):

Participation-restricted region for bids/awards (참가제한지역명, e.g. 서울) or agency location for plans (기관소재지명). Sent to the API.

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

Bids/awards registered in the last N days. Use 30+ for insights.

## `open_only` (type: `boolean`):

bids mode: drop notices whose bid deadline has passed.

## `plans_days_back` (type: `integer`):

plans/insights: order plans posted (게시) in the last N days.

## `months_ahead` (type: `integer`):

plans/insights: order months from this month up to N months ahead.

## `include_pipeline` (type: `boolean`):

insights: also fetch order plans and output pipeline rows.

## `include_records` (type: `boolean`):

insights: also output the award and plan rows behind the statistics (charged as records).

## `min_sample` (type: `integer`):

insights: smallest number of awards for an agency × category statistics row.

## `top_n` (type: `integer`):

insights: size of the top-winner leaderboard.

## `max_results` (type: `integer`):

Maximum bid/award/plan rows output per run.

## `max_api_calls` (type: `integer`):

Upper bound on live 나라장터 API calls this run (cached pages are free). The official quota is per operation per day.

## Actor input object example

```json
{
  "mode": "bids",
  "categories": [
    "services",
    "goods",
    "construction"
  ],
  "keywords": [],
  "agencies": [],
  "days_back": 7,
  "open_only": true,
  "plans_days_back": 90,
  "months_ahead": 6,
  "include_pipeline": true,
  "include_records": false,
  "min_sample": 3,
  "top_n": 20,
  "max_results": 100,
  "max_api_calls": 30
}
```

# Actor output Schema

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

No description

# 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 = {
    "mode": "bids",
    "categories": [
        "services",
        "goods",
        "construction"
    ],
    "keywords": [],
    "agencies": [],
    "days_back": 7,
    "open_only": true,
    "max_results": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/korea-g2b-bid-intelligence").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 = {
    "mode": "bids",
    "categories": [
        "services",
        "goods",
        "construction",
    ],
    "keywords": [],
    "agencies": [],
    "days_back": 7,
    "open_only": True,
    "max_results": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/korea-g2b-bid-intelligence").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 '{
  "mode": "bids",
  "categories": [
    "services",
    "goods",
    "construction"
  ],
  "keywords": [],
  "agencies": [],
  "days_back": 7,
  "open_only": true,
  "max_results": 100
}' |
apify call gochujang/korea-g2b-bid-intelligence --silent --output-dataset

```

## MCP server setup

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

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/4Fo9SC4eznbOYBClh/builds/zRuG8netc4IQTXhFb/openapi.json
