# Korea G2B Bid Notice Scraper (Nara Jangteo) (`omongstudio/korea-g2b-bid-notice-scraper`) Actor

Collect Korea's Nara Jangteo (G2B) public procurement bid notices - goods, services, construction and foreign tenders - as clean English records with budget, estimated price, agency, closing time and detail links. Official data.go.kr API, no scraping.

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

## Pricing

from $3.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 G2B Bid Notice Scraper (Nara Jangteo)

Collect public procurement bid notices from **Korea's Nara Jangteo (G2B, 나라장터)** — the single
government e-procurement system used by every ministry, city, public corporation and school in Korea.
This Actor reads the official open API (`조달청_나라장터 입찰공고정보서비스`) published by the Public
Procurement Service on data.go.kr, and returns clean, English-keyed records that are ready for a CRM,
a Slack alert, a spreadsheet, or an n8n / Make / Zapier workflow.

**No scraping, no blocks.** Korea's open-data licence for this API places no restriction on its use, so
the Actor is stable and does not trip the anti-bot systems that guard the Nara Jangteo website.

***

### What you get

| | |
|---|---|
| **Coverage** | Goods (물품), services (용역), construction (공사), foreign-funded (외자) |
| **Fields** | Notice number, title, contracting agency, demand agency, bid/contract method, estimated price, budget, publication time, bid closing time, opening time, region and trade restrictions, attachment names, direct detail link |
| **Filters** | Category, keyword, publication date range, contracting/demand agency, price range, "still open for bids only" |
| **Output** | One dataset item per notice, English keys, stable `id` for de-duplication |
| **Privacy** | Contracting-officer names, phone numbers and e-mail addresses are **removed by default** |

Example record (abridged):

```json
{
  "id": "R26BK01746231-000",
  "noticeNo": "R26BK01746231",
  "noticeOrder": "000",
  "title": "폐수처리시설 현장전기공사",
  "category": "construction",
  "agencyName": "전남광주통합특별시 곡성군",
  "demandAgencyName": "전남광주통합특별시 곡성군",
  "bidMethod": "전자입찰",
  "contractMethod": "제한경쟁",
  "estimatedPrice": 78984882,
  "budgetAmount": 86883370,
  "publishedAt": "2026-09-29 09:52:15",
  "bidClosesAt": "2026-10-06 10:00:00",
  "openingAt": "2026-10-06 11:00:00",
  "detailUrl": "https://www.g2b.go.kr/link/PNPE027_01/single/?bidPbancNo=R26BK01746231&bidPbancOrd=000"
}
```

***

### Step 1 — Get your free API key (3 minutes, one time)

The Actor calls data.go.kr, Korea's public data portal. The key is free and issued instantly.

1. Open **https://www.data.go.kr** and sign in (Kakao, Naver, Google or a local account all work).
2. Search for **`조달청_나라장터 입찰공고정보서비스`** (dataset ID `15129394`).
3. Click **활용신청 (Apply for use)** → choose **개발계정 (development)** → **신청**. Approval is automatic
   and immediate for this dataset.
4. Go to **마이페이지 → 데이터 활용 → 인증키 발급현황** and copy the **일반 인증키 (Encoding)** value
   — a long string containing `%2B`, `%3D` and similar escapes.
5. Paste it into the Actor's **data.go.kr service key** field.

Both the *Encoding* and the *Decoding* form of the key work — the Actor detects the form and does not
double-encode.

> Korean step-by-step: **https://www.data.go.kr** 로그인 → `조달청_나라장터 입찰공고정보서비스` 검색 →
> **\[활용신청]** (자동승인) → **마이페이지 → 인증키** 에서 `일반 인증키(Encoding)` 복사 → 이 Actor의
> `data.go.kr service key` 칸에 붙여넣기.

#### Want to see the output before signing up?

Tick **Demo mode (no key needed)**. The Actor runs on three clearly-labelled sample records
(`demo: true`, `demoNote` explaining they are not real notices) so you can inspect the exact schema,
then paste your key for live data.

***

### Step 2 — Configure the run

| Field | What it does | Default |
|---|---|---|
| **data.go.kr service key** | Your free key from step 1 | — |
| **Demo mode** | Preview output with sample records when no key is set | on |
| **Procurement categories** | `goods`, `services`, `construction`, `foreign` (mix any) | goods + services + construction |
| **Keyword filter** | Space-separated words; every word must appear in the title, reference number, agency, trade or product class | — |
| **Published from / until** | Publication window in Korea time | last 3 days |
| **Look-back days** | Used when no dates are given | 3 |
| **Contracting agency contains** | Server-side filter on 공고기관명 | — |
| **Demand agency contains** | Server-side filter on 수요기관명 | — |
| **Min / max estimated price** | KRW price band | — |
| **Only notices still open for bids** | Drops notices whose closing time has passed — what a monitoring run wants | off |
| **Maximum notices to save** | Stops early (1–5,000) | 200 |
| **Include contracting-officer contact fields** | Adds `contactName`, `contactPhone`, `contactEmail` | off |
| **Include the raw API record** | Adds every original Korean field under `raw` | off |

A run also writes a **`SUMMARY`** record (notices saved, API requests used, per-category counts, the
date range, and any per-window errors) into the default key-value store.

***

### Typical uses

- **Bid monitoring for a Korean SI, agency or manufacturer** — schedule it hourly with
  *Only notices still open for bids* and a keyword such as `AI 영상` or `CCTV`, and post new rows to
  Slack, Notion or Google Sheets.
- **Market research** — collect a month of `services` notices with `소프트웨어` in the title and analyse
  budget distribution per agency.
- **Sales prospecting** — pull every `goods` notice from a target city and match it against your catalogue.
- **Supplier diligence** — see which agencies buy what, how often, and at what estimated price.

***

### Output fields

`id`, `noticeNo`, `noticeOrder`, `title`, `category`, `agencyCode`, `agencyName`, `demandAgencyCode`,
`demandAgencyName`, `referenceNo`, `noticeKind`, `registrationType`, `isReposted`, `isInternational`,
`bidMethod`, `contractMethod`, `reservePriceMethod`, `isItemisedBid`, `isDesignatedCompetition`,
`isPerformanceCompetition`, `publishedAt`, `bidStartsAt`, `bidClosesAt`, `openingAt`,
`qualificationDeadline`, `jointContractDeadline`, `briefingAt`, `briefingPlace`, `openingPlace`,
`budgetAmount`, `estimatedPrice`, `governmentSupplyAmount`, `mainTradeEstimatedPrice`,
`mainTradeName`, `industryName`, `industryCode`, `participationRegion`, `participationRegionCode`,
`hasParticipationRestriction`, `productClassNo`, `specFileName1…5`, `specFileUrl1…5`,
`procurementRequestNo`, `jointContractorCount`, `detailUrl`

Amounts are integers in KRW. Times are Korea time (Asia/Seoul), formatted `YYYY-MM-DD HH:MM:SS`.
Missing values are `null`, so the schema stays stable between runs.

***

### Limits worth knowing

- **7-day query window per request.** The API was tightened to a 7-day look-back per call on
  2026-11-10. This Actor splits longer ranges into 7-day windows automatically, so a 30-day look-back
  works — it just costs more API calls.
- **Daily quota on your key.** A 개발 (development) key allows about 1,000 calls a day; an 운영
  (production) key is unlimited after review. Each page holds up to 100 notices, so 1,000 calls is
  roughly 100,000 notices a day.
- **Bid notices only.** Contract awards, bid results and purchase-order data sit in other
  data.go.kr datasets; this Actor focuses on the notice feed.
- **Future-dated rows exist.** A few government notices carry far-future closing dates (e.g. 2037);
  judge freshness by `publishedAt`.

***

### 한국어 요약

**나라장터(G2B) 입찰공고를 수집하는 Apify 액터**입니다. 조달청 공식 오픈API(이용 제한 없음)를 사용하므로
웹 크롤링 차단·실패가 없습니다.

1. **키 발급(무료·3분)**: data.go.kr 로그인 → `조달청_나라장터 입찰공고정보서비스` → \[활용신청]
   (자동승인) → 마이페이지 인증키에서 `일반 인증키(Encoding)` 복사 → 액터의 `data.go.kr service key`
   칸에 입력.
2. **데모 모드**: 키 없이 켜면 샘플 3건으로 출력 구조를 먼저 볼 수 있습니다(모든 샘플에 `demo: true`
   표시).
3. **수집 조건**: 물품/용역/공사/외자 선택, 키워드, 게시일 범위, 공고·수요기관명, 추정가격 범위,
   "입찰 마감 안 지난 공고만" 필터.
4. **출력**: 건당 1개 아이템, 영문 필드명. 추정가격·예산·마감시각·개찰시각·상세링크 포함.
   담당자 이름·전화·이메일은 **기본 제거**(개인정보 보호).
5. **활용 예**: 관심 키워드 공고를 1시간마다 감시해 슬랙/노션/엑셀로 적재, 특정 지자체 물품 입찰
   조사, 예산 규모 분석.

주의: API는 요청당 조회기간 7일 제한이라 긴 기간은 자동으로 나눠 호출합니다. 개발계정 하루 약 1,000회
한도(페이지당 최대 100건)입니다.

***

### Pricing

Pay per event, charged only for what you actually get:

| Event | Price |
|---|---|
| Each notice stored in your dataset | **$3.00 per 1,000 notices** ($0.003 each) |
| Each run start | **$0.005** |

Platform usage is included — there is no separate compute charge. A keyword-scoped run over a few days
that returns 1,000 notices costs about $3.01. Runs by free Apify accounts are not charged.

### Support

Open an issue on the Actor's page. Please include the input you used and the run log line that failed.

### Changelog

- **0.0.1** — Initial release: four procurement categories, English-normalised output, keyword, agency,
  price and "still open" filters, demo mode, contact-field removal by default.

# Actor input Schema

## `serviceKey` (type: `string`):

Free key from data.go.kr. Leave empty and tick 'Demo mode' below to preview the output shape first.

## `demoMode` (type: `boolean`):

Enabled by default: a run without a data.go.kr key then returns three clearly-labelled sample records (demo=true) instead of an error. As soon as you paste a key, live data is used and this switch is ignored. Turn it off to make a missing key a hard error.

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

goods = 물품, services = 용역, construction = 공사, foreign = 외자(국제입찰).

## `keyword` (type: `string`):

Space-separated words; a notice must contain every word across its title, reference number, agency, trade and product class. Example: 'AI 영상' or 'software'. Leave empty for everything.

## `dateFrom` (type: `string`):

First day of the publication window (Korea time). Leave empty to use 'Look-back days'.

## `dateTo` (type: `string`):

Last day of the publication window (Korea time).

## `lookbackDays` (type: `integer`):

How many days back from now to scan. The API allows a 7-day window per request; longer ranges are split automatically.

## `agencyName` (type: `string`):

Optional. Server-side filter on 공고기관명, e.g. '조달청' or '국토교통부'.

## `demandAgencyName` (type: `string`):

Optional. Server-side filter on 수요기관명 (the organisation that actually uses the purchase).

## `minEstimatedPrice` (type: `integer`):

Optional. e.g. 100000000 for 100 million KRW.

## `maxEstimatedPrice` (type: `integer`):

Optional.

## `onlyOpenBids` (type: `boolean`):

Drop notices whose bid closing time has already passed - what a bid-monitoring run usually wants.

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

Stops the run once this many notices are stored (1-5000).

## `includeContactInfo` (type: `boolean`):

Off by default. Turn on only if you need 담당자 이름/전화/이메일 in the output.

## `includeRaw` (type: `boolean`):

Adds every original Korean field under 'raw' (hundreds of fields per notice, larger dataset).

## Actor input object example

```json
{
  "demoMode": true,
  "categories": [
    "goods",
    "services",
    "construction"
  ],
  "lookbackDays": 3,
  "onlyOpenBids": false,
  "maxItems": 200,
  "includeContactInfo": false,
  "includeRaw": false
}
```

# Actor output Schema

## `notices` (type: `string`):

Dataset of bid notices. One item per notice with English field names: noticeNo, title, category, agencyName, demandAgencyName, estimatedPrice, budgetAmount, publishedAt, bidClosesAt, openingAt, detailUrl and more.

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

Counts of notices saved and API requests used, the scanned date range, per-category totals and any per-window 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 = {
    "categories": [
        "goods",
        "services",
        "construction"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("omongstudio/korea-g2b-bid-notice-scraper").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 = { "categories": [
        "goods",
        "services",
        "construction",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("omongstudio/korea-g2b-bid-notice-scraper").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 '{
  "categories": [
    "goods",
    "services",
    "construction"
  ]
}' |
apify call omongstudio/korea-g2b-bid-notice-scraper --silent --output-dataset

```

## MCP server setup

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

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/ydzBhhQ1b9AuLkldU/builds/nPqUNgFeE6a2zyGL2/openapi.json
