# Japan Government Procurement Scraper (`hitujino56/jp-procurement`) Actor

Official Japanese government procurement data (入札情報). Uses KKJ REST API for lowest legal risk. Returns bid notices, results, amounts, and agencies.

- **URL**: https://apify.com/hitujino56/jp-procurement.md
- **Developed by:** [K S](https://apify.com/hitujino56) (community)
- **Categories:** Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Japan Government Procurement Scraper

Structured Japanese government procurement and bidding data from official public sources. This Apify Actor fetches bid notices, contract awards, and procurement metadata from Japan's national procurement information systems, starting with the KKJ (官公需情報ポータル) REST API.

### What Data Does This Scraper Collect?

This actor collects **metadata only** from Japanese government procurement listings:

- Bid notice titles and descriptions
- Issuing government agencies (ministries, prefectures, municipalities)
- Publication dates and submission deadlines
- Procurement types (一般競争入札, 企画競争, 随意契約, etc.)
- Award amounts (in JPY) and awarded companies, when available
- Category classifications and regional information

**Important:** This scraper collects only publicly available procurement metadata. No personal information (PII) is collected. Content such as full specification documents is not scraped — only structured metadata fields.

### Data Sources

| Source | Type | Status |
|--------|------|--------|
| **KKJ (官公需情報ポータル)** | Official REST API | Active |

The KKJ portal aggregates procurement information from central government ministries and agencies across Japan. The REST API requires no authentication and returns XML responses, making it the lowest-risk and most reliable data source for Japanese government procurement data.

### Output Fields

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Unique identifier (source-prefixed, e.g., `kkj-CFT-2026-001234`) |
| `title` | string | Procurement title / bid notice name |
| `agency` | string | Issuing government agency |
| `publishDate` | string | Publication date (ISO 8601) |
| `deadline` | string | Submission deadline (ISO 8601) |
| `type` | string | Procurement type (e.g., 一般競争入札) |
| `source` | string | Data source identifier (`kkj`) |
| `sourceUrl` | string | URL to original listing |
| `awardAmount` | number? | Award amount in JPY |
| `awardee` | string? | Awarded company name |
| `category` | string? | Industry / category classification |
| `region` | string? | Prefecture / region |
| `description` | string? | Brief description |
| `scrapedAt` | string | Scrape timestamp (ISO 8601) |
| `schemaVersion` | string | Schema version for compatibility |

### Usage Example

**Input:**

```json
{
  "keyword": "システム開発",
  "dateFrom": "2026-03-01",
  "dateTo": "2026-03-31",
  "maxResults": 100
}
````

**Expected Output (single record):**

```json
{
  "id": "kkj-CFT-2026-001234",
  "title": "情報システム運用保守業務",
  "agency": "経済産業省",
  "publishDate": "2026-03-15T00:00:00.000Z",
  "deadline": "2026-04-15T00:00:00.000Z",
  "type": "一般競争入札",
  "source": "kkj",
  "sourceUrl": "https://www.kkj.go.jp/notice/CFT-2026-001234",
  "category": "情報システム",
  "region": "東京都",
  "description": "経済産業省における情報システムの運用保守業務",
  "scrapedAt": "2026-03-20T10:30:00.000Z",
  "schemaVersion": "1.0.0"
}
```

### Who Uses This Data?

- **B2B sales teams** targeting government contracts
- **Market researchers** analyzing government spending trends
- **Compliance teams** monitoring procurement transparency
- **Data analysts** studying public sector IT procurement patterns
- **Consultants** advising on government contract opportunities in Japan

### Legal Compliance

This actor uses only the **official public REST API** provided by KKJ (官公需情報ポータル), a government-operated portal specifically designed for public access to procurement information. Key compliance points:

- **Public data only** — All collected information is published by government agencies for public consumption
- **No PII** — No personal information is collected; only agency and corporate entity names
- **API-based** — Uses the official REST API, not HTML scraping, minimizing legal risk
- **Rate limited** — Requests are throttled to avoid excessive load on government servers
- **Japan Copyright Act Art. 30-4** — Japan's copyright law explicitly permits text and data mining for information analysis purposes

### Pricing

**$5.00 per 1,000 results** via Apify platform usage (pay-per-event).

### Changelog

- **v0.1** — Initial release with KKJ API integration

# Actor input Schema

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

検索キーワード (e.g., 'システム開発', 'コンサルティング')

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

公示日の開始日 (YYYY-MM-DD)

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

公示日の終了日 (YYYY-MM-DD)

## `agency` (type: `string`):

発注機関名でフィルタ

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

最大取得件数

## Actor input object example

```json
{
  "keyword": "",
  "maxResults": 1000
}
```

# 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("hitujino56/jp-procurement").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("hitujino56/jp-procurement").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 hitujino56/jp-procurement --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hitujino56/jp-procurement",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Japan Government Procurement Scraper",
        "description": "Official Japanese government procurement data (入札情報). Uses KKJ REST API for lowest legal risk. Returns bid notices, results, amounts, and agencies.",
        "version": "0.1",
        "x-build-id": "AK3sLzfDRhiJq4HU9"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/hitujino56~jp-procurement/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-hitujino56-jp-procurement",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/hitujino56~jp-procurement/runs": {
            "post": {
                "operationId": "runs-sync-hitujino56-jp-procurement",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/hitujino56~jp-procurement/run-sync": {
            "post": {
                "operationId": "run-sync-hitujino56-jp-procurement",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "keyword": {
                        "title": "Search Keyword",
                        "type": "string",
                        "description": "検索キーワード (e.g., 'システム開発', 'コンサルティング')",
                        "default": ""
                    },
                    "dateFrom": {
                        "title": "Date From",
                        "type": "string",
                        "description": "公示日の開始日 (YYYY-MM-DD)"
                    },
                    "dateTo": {
                        "title": "Date To",
                        "type": "string",
                        "description": "公示日の終了日 (YYYY-MM-DD)"
                    },
                    "agency": {
                        "title": "Agency Filter",
                        "type": "string",
                        "description": "発注機関名でフィルタ"
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "maximum": 10000,
                        "type": "integer",
                        "description": "最大取得件数",
                        "default": 1000
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
