# Japan Government Tenders Scraper: KKJ 官公需 Bids to Excel (`tenderfeed/japan-kkj-tenders`) Actor

Export Japanese government tenders (入札公告) from ministries, agencies, universities, prefectures and cities via the official KKJ 官公需情報ポータルサイト API. Filter by keyword, prefecture, goods/works/services, date. English fields. Excel, CSV, JSON.

- **URL**: https://apify.com/tenderfeed/japan-kkj-tenders.md
- **Developed by:** [TenderFeed](https://apify.com/tenderfeed) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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/running/actors-in-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

## Japan Government Tenders Scraper: KKJ 官公需 Bids to Excel

**Export Japanese public tenders (入札公告) to Excel, CSV or JSON with no API key.** This Actor uses the official search API of the **官公需情報ポータルサイト (Kankouju Information Portal, [kkj.go.jp](https://www.kkj.go.jp/s/))**, run by Japan's Small and Medium Enterprise Agency. The portal collects bid notices published by national ministries and agencies, independent administrative institutions, national universities and hospitals, prefectures and municipalities, and makes them searchable in one place.

You get one clean row per notice: title (件名), buyer (機関名), prefecture (English + Japanese), city, category (goods / works / services), procedure type, qualification grades, notice date, tender and opening dates when present, link to the original notice PDF/HTML, attachments and the full notice text.

The API holds **~509,000 notices** (measured 2026-11-17) and receives roughly **300-1,000 new notices per working day**.

Built by **TenderFeed** ([apify.com/tenderfeed](https://apify.com/tenderfeed)). No login, no browser, no HTML scraping.

### Source and terms

- Data: **官公需情報ポータルサイト 検索API** (Kankouju Information Portal search API), https://www.kkj.go.jp/s/ — this Actor uses the portal's public API, as the portal's terms ask services to state. Every row carries an `attribution` string with the portal link; please keep it when you republish.
- Polite use: the Actor sends one request at a time with a pause between requests, as required by the portal's API terms (no heavy parallel load).
- Not affiliated with or endorsed by the portal operator, METI or any buyer. Data is provided "as is"; always check the original notice (`noticeUrl`) before bidding.
- Notices are mostly in Japanese. Structured fields (prefecture, category, dates, codes) are normalized and labelled in English.

### What can you do with it?

- **Enter the Japanese public market**: daily list of new bids for IT systems, software, medical equipment, research instruments, cleaning, construction...
- **Bid monitoring**: schedule it daily with `onlyNew` to get only notices you have not seen yet (Slack / e-mail via Apify integrations).
- **Market research**: which ministries, universities and prefectures buy what you sell, and how often.
- **AI agents and translation pipelines**: feed `title` + `description` to an LLM to translate and qualify bids; use it as an **MCP tool** via the Apify MCP server.

### Input example

```json
{
  "keywords": ["システム", "ソフトウェア"],
  "prefectures": ["13", "27"],
  "categories": ["goods", "services"],
  "publishedFrom": "30 days",
  "maxResults": 20
}
```

- `keywords`: Japanese search terms (KKJ full-text search); `keywordMode` `any` (OR) / `all` (AND); `excludeKeywords`.
- `projectName`, `organizationName`: title / buyer name contains (e.g. `"国土交通省"`, `"大学"`).
- `prefectures`: JIS codes 1-47 (13 = Tokyo, 27 = Osaka; English names like `"Tokyo"` also work).
- `categories`: `goods` (物品), `works` (工事), `services` (役務). `procedureTypes`, `certificationGrades` (A-D).
- `publishedFrom` / `publishedTo`: notice date, `YYYY-MM-DD` or relative like `"7 days"`. `tenderDateFrom` / `tenderDateTo`, `onlyWithFutureTenderDate`.
- `includeDescription` (default on) and `descriptionMaxChars` (default 4,000).
- `onlyNew` + `monitoringId`: monitoring mode, returns (and charges) only notices you have not received yet.
- `includeBuyerContacts` (off by default): notice texts often name the officer in charge; with the switch off, phone numbers and e-mail addresses in the text are masked.
- **Default run (`{}`)**: the 50 newest notices across Japan (~5 s).

The API returns at most 1,000 notices per request; the Actor pages through bigger searches by notice date (and by prefecture for very busy days) automatically.

### Output

Each row follows the TenderFeed schema (`source`, `sourceId`, `title`, `description`, `buyerName`, `buyerCountry`, `buyerCity`, `contractType`, `procedureType`, `publishedAt`, `deadlineAt`, `url`, `documentsUrl`, `country`...) plus Japanese fields: `kkjKey`, `projectNameJa`, `organizationName`, `prefectureCode`, `prefecture`, `prefectureJa`, `cityCode`, `cityJa`, `category`, `categoryJa`, `procedureTypeJa`, `certificationGrades`, `noticeDate`, `tenderSubmissionDate`, `openingTendersDate`, `deliveryDeadline`, `performanceLocation`, `itemCode`, `noticeUrl`, `noticeFileType`, `noticeFileSize`, `attachments`, `collectedByPortalAt`, `attribution`.

```json
{
  "source": "jp-kkj",
  "title": "３次元形状測定システムの購入",
  "buyerName": "独立行政法人自動車技術総合機構交通安全環境研究所",
  "prefecture": "Tokyo",
  "cityJa": "調布市",
  "category": "goods",
  "noticeDate": "2026-11-16",
  "noticeUrl": "https://www.ntsel.go.jp/alias/pc/chotatsu/cyoutatsu_file/2026/261116_1.pdf",
  "description": "３次元形状測定システムの購入 入札公告 次のとおり一般競争入札に付します。..."
}
```

A `RUN_SUMMARY` record in the key-value store reports API hits, matches, number of API requests and the parameters used.

### Pricing

Pay per result: **$2.50 per 1,000 notices** (plus a tiny Apify actor-start fee). Use `maxResults` to cap cost.

### Other TenderFeed Actors

TED EU Tenders, UK Tenders, Singapore GeBIZ, Australia AusTender, Brazil PNCP, SAM.gov and more: [apify.com/tenderfeed](https://apify.com/tenderfeed).

# Actor input Schema

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

Searched by the KKJ full-text search in the notice title and text. Use Japanese terms, e.g. \["システム", "清掃", "工事", "ソフトウェア"]. Empty = all notices.

## `keywordMode` (type: `string`):

Match ANY or ALL keywords.

## `excludeKeywords` (type: `array`):

Drop notices containing any of these words, e.g. \["工事"].

## `projectName` (type: `string`):

Only notices whose title (件名) contains this text.

## `organizationName` (type: `string`):

Only notices from buyers whose name (機関名) contains this text, e.g. "国土交通省", "東京都", "大学".

## `prefectures` (type: `array`):

Japanese prefectures (JIS X0401 codes). National bodies are listed under the prefecture of their office. Empty = all Japan.

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

Only part of the notices carry a category. Empty = all, including uncategorized notices.

## `procedureTypes` (type: `array`):

Only part of the notices carry a procedure type. Empty = all.

## `certificationGrades` (type: `array`):

Unified qualification grades (全省庁統一資格 A-D). Few notices carry this field.

## `publishedFrom` (type: `string`):

YYYY-MM-DD or relative ("7 days"). Notice date (公告日; the portal's collection date when no notice date). Empty = any (last 30 days when Max results = 0).

## `publishedTo` (type: `string`):

YYYY-MM-DD. Empty = newest.

## `tenderDateFrom` (type: `string`):

Bid submission start date (入札開始日) from. Few notices carry it.

## `tenderDateTo` (type: `string`):

Bid submission start date (入札開始日) to.

## `onlyWithFutureTenderDate` (type: `boolean`):

Keep only notices whose tender date is today or later (only notices that carry the date).

## `maxResults` (type: `integer`):

0 = no limit (reads the last 30 days unless you set Notice date from). Default 50, newest first. Around 300-1,000 new notices per working day.

## `includeDescription` (type: `boolean`):

Adds the full notice text (公告文) extracted by the portal.

## `descriptionMaxChars` (type: `integer`):

Trim long notice texts. 0 = no trimming.

## `onlyNew` (type: `boolean`):

Remember what earlier runs delivered and return (and charge for) only notices you have not received yet. Ideal for a daily schedule.

## `monitoringId` (type: `string`):

Name of the watch-list memory used by 'Only new'. Use a different ID per saved search/schedule.

## `includeBuyerContacts` (type: `boolean`):

Off by default. Notice texts often name the officer in charge with phone and e-mail; when off, phone numbers and e-mail addresses in the text are masked.

## `includeRawData` (type: `boolean`):

Adds the original KKJ API fields under `raw`.

## Actor input object example

```json
{
  "keywordMode": "any",
  "onlyWithFutureTenderDate": false,
  "maxResults": 20,
  "includeDescription": true,
  "descriptionMaxChars": 4000,
  "onlyNew": false,
  "includeBuyerContacts": false,
  "includeRawData": false
}
```

# Actor output Schema

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

All normalized records from the default dataset, opened in the Overview view.

# 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 = {
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("tenderfeed/japan-kkj-tenders").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 = { "maxResults": 20 }

# Run the Actor and wait for it to finish
run = client.actor("tenderfeed/japan-kkj-tenders").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 '{
  "maxResults": 20
}' |
apify call tenderfeed/japan-kkj-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tenderfeed/japan-kkj-tenders"
        }
    }
}
```

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/HNCO1I6GFL6elccs1/builds/gb9l5FIbh5aWi1SGe/openapi.json
