# Japan Government Tenders Scraper 🇯🇵 💰 $2/1K tenders (`datakura/japan-tenders-scraper`) Actor

Search Japanese government procurement notices (national, prefectural, municipal) from the official 官公需 portal API. Full text, deadlines, categories, source PDFs — filter by keyword, prefecture, category and date.

- **URL**: https://apify.com/datakura/japan-tenders-scraper.md
- **Developed by:** [Datakura Studio](https://apify.com/datakura) (community)
- **Categories:** Business, Lead generation, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 tender notices

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/platform/actors/running/actors-in-store#pay-per-event

## 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 Tenders Scraper — official procurement notices from all of Japan

Search and extract **Japanese government procurement notices (tenders / bids / RFPs)** — national ministries, all 47 prefectures, municipalities and independent agencies — from the official 官公需情報ポータルサイト (Kankōju public procurement portal, run by the SME Agency). Think **SAM.gov for Japan**: keyword search, prefecture and category filters, publication-date ranges, full notice text and source PDF links, returned as clean structured JSON.

No login, no CAPTCHAs, no Japanese needed to operate it — and the underlying source is an official government API, so the data is legal to use and exceptionally stable.

### What data does it extract?

| Field | Description |
|---|---|
| `noticeKey` | Unique ID of the notice inside the portal |
| `title` | Tender title (Japanese) |
| `organization` | Procuring organization (e.g. `国立大学法人岡山大学`, `東京都小平市`) |
| `prefectureCode` / `prefectureName` | JIS prefecture code and name |
| `cityCode` / `cityName` | Municipality code and name |
| `category` / `categoryJa` | `goods` / `construction` / `services` (+ original Japanese) |
| `procedureType` | Procedure type (e.g. open competitive bidding) when published |
| `certificationLevels` | Required bidder qualification grade (A–D) when published |
| `publishedAt` | Publication date (ISO 8601) |
| `tenderStartAt` / `tenderOpeningAt` | Bid submission start / bid opening date when published |
| `deliveryDeadline` | Delivery / performance deadline when published |
| `location` | Place of performance |
| `description` | **Full notice text** — requirements, qualifications, contacts, deadlines |
| `sourceUrl` | Original notice document (PDF/HTML) |
| `attachments` | Attached files (specifications, forms) with names and URLs |
| `scrapedAt` | ISO timestamp of extraction |

### Sample output

```json
{
  "noticeKey": "dG9reW8va29kYWlyYV9jaXR5LzIwMjYvMjAyNjA3MDZfMDAwMTcK",
  "title": "上水南保育園給食調理業務委託事業者募集（公募型プロポーザル）",
  "organization": "東京都小平市",
  "prefectureCode": "13",
  "prefectureName": "東京都",
  "cityName": "小平市",
  "category": "services",
  "categoryJa": "役務",
  "publishedAt": "2026-07-06T00:00:00+09:00",
  "description": "上水南保育園給食調理業務委託事業者募集（公募型プロポーザル）…",
  "sourceUrl": "https://www.city.kodaira.tokyo.jp/kurashi/files/128142/128142/att_0000001.pdf",
  "attachments": [
    { "name": "仕様書（案）（PDF 325.3KB）", "url": "https://…att_0000002.pdf" }
  ],
  "scrapedAt": "2026-07-07T00:53:30.785Z"
}
````

### Input

All filters combine with AND. **At least one of `query` / `projectName` / `organizationName` / `prefectures` is required.**

- **`query`** — full-text search with boolean operators: `システム AND 保守`, `清掃 OR 警備`, `工事 ANDNOT 解体`
- **`projectName`** / **`organizationName`** — partial match on tender title / procuring organization
- **`prefectures`** — JIS codes (`13`), romaji (`tokyo`) or Japanese (`東京都`)
- **`category`** — `goods` (物品) / `construction` (工事) / `services` (役務)
- **`publishedFrom`** / **`publishedTo`** — publication-date window (`YYYY-MM-DD`)
- **`maxItems`** — cap on results; you are only charged for what you get

The portal's API caps a single query at 1,000 results — this Actor transparently pages beyond that by slicing the publication-date window, deduplicating as it goes.

### Pricing (pay per event)

| Usage | Approx. cost |
|---|---|
| 100 tenders | $0.22 |
| 1,000 tenders | $2.02 |
| 10,000 tenders | $20.02 |

Actor start: $0.02 + $0.002 per tender. No subscription, no rental fee. A typical daily monitoring run ("yesterday's new notices, one keyword, one prefecture") costs a few cents.

### Common use cases

- **Bid intelligence & lead generation** — monitor new tenders in your industry or prefecture daily, pipe them to Slack/CRM before competitors read the portal
- **Market research** — quantify Japanese public-sector demand by region, category and buyer (hundreds of new notices per day)
- **AI agents / RAG pipelines** — full notice text in every item makes this a drop-in source for LLM summarization, matching and alerting

### Use from AI agents (MCP)

This Actor can be called as an MCP tool via [Apify MCP server](https://mcp.apify.com). Point your agent to `mcp.apify.com` and search for this Actor by name.

### FAQ

**Is this legal?** Yes. The data comes from the Japanese government's official public API (operated by the SME Agency), published precisely so procurement information can be reused programmatically. No personal data, nothing behind logins.

**Why are some fields null?** The portal aggregates notices from hundreds of source systems; `procedureType`, `certificationLevels` and some dates are populated only when the source provides them. `title`, `organization`, `publishedAt`, `description` and `sourceUrl` are reliably present.

**Results are in Japanese — can I use this without speaking Japanese?** Yes. Filter with romaji prefecture names and English category values, then pipe `title`/`description` through any translation or LLM step.

**How fresh is the data?** The portal ingests notices continuously; each run queries the live API at execution time.

**Something broken?** Open an issue on this Actor's page — fixes ship within 24 hours.

***

*Maintenance notes (internal): source = `https://www.kkj.go.jp/api/` (GET, XML, token-free), spec = https://www.kkj.go.jp/doc/ja/api\_guide.pdf (V1.1, verified 2026-07-07). Required: one of Query/Project\_Name/Organization\_Name/LG\_Code, else `<Error>no searchword</Error>` (HTTP 200). Legitimate empty = `SearchHits=0`. Max 1,000/call, no pagination param → CFT\_Issue\_Date bisection. No auth, no rate limiting observed; self-throttle 300 ms + exponential backoff.*

# Actor input Schema

## `query` (type: `string`):

Full-text search over tender notices (Japanese works best). Supports boolean operators: <code>システム AND 保守</code>, <code>清掃 OR 警備</code>, <code>工事 ANDNOT 解体</code>. At least one of keyword / project name / organization / prefectures is required.

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

Filter by tender title (partial match). Example: <code>ホームページ</code>

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

Filter by procuring organization name (partial match). Example: <code>防衛省</code>, <code>東京都</code>

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

Limit to prefectures. Accepts JIS codes (<code>13</code>), romaji (<code>tokyo</code>) or Japanese (<code>東京都</code>). Empty = all of Japan.

## `category` (type: `string`):

Procurement category.

## `certification` (type: `array`):

Filter by bidder qualification grade (A–D). Leave empty for all. Note: this field is not populated for every notice.

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

Only notices published on/after this date. Example: <code>2026-07-01</code>

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

Only notices published on/before this date.

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

Maximum number of tenders to return. Keep the default to try the Actor cheaply.

## Actor input object example

```json
{
  "query": "システム",
  "prefectures": [],
  "category": "any",
  "certification": [],
  "maxItems": 50
}
```

# 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 = {
    "query": "システム",
    "prefectures": [],
    "certification": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("datakura/japan-tenders-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 = {
    "query": "システム",
    "prefectures": [],
    "certification": [],
}

# Run the Actor and wait for it to finish
run = client.actor("datakura/japan-tenders-scraper").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 '{
  "query": "システム",
  "prefectures": [],
  "certification": []
}' |
apify call datakura/japan-tenders-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Japan Government Tenders Scraper 🇯🇵 💰 $2/1K tenders",
        "description": "Search Japanese government procurement notices (national, prefectural, municipal) from the official 官公需 portal API. Full text, deadlines, categories, source PDFs — filter by keyword, prefecture, category and date.",
        "version": "0.1",
        "x-build-id": "DAtHuJ3HVQfoZreht"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/datakura~japan-tenders-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-datakura-japan-tenders-scraper",
                "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/datakura~japan-tenders-scraper/runs": {
            "post": {
                "operationId": "runs-sync-datakura-japan-tenders-scraper",
                "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/datakura~japan-tenders-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-datakura-japan-tenders-scraper",
                "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": {
                    "query": {
                        "title": "Search keyword (full-text)",
                        "type": "string",
                        "description": "Full-text search over tender notices (Japanese works best). Supports boolean operators: <code>システム AND 保守</code>, <code>清掃 OR 警備</code>, <code>工事 ANDNOT 解体</code>. At least one of keyword / project name / organization / prefectures is required."
                    },
                    "projectName": {
                        "title": "Project name contains",
                        "type": "string",
                        "description": "Filter by tender title (partial match). Example: <code>ホームページ</code>"
                    },
                    "organizationName": {
                        "title": "Organization contains",
                        "type": "string",
                        "description": "Filter by procuring organization name (partial match). Example: <code>防衛省</code>, <code>東京都</code>"
                    },
                    "prefectures": {
                        "title": "Prefectures",
                        "type": "array",
                        "description": "Limit to prefectures. Accepts JIS codes (<code>13</code>), romaji (<code>tokyo</code>) or Japanese (<code>東京都</code>). Empty = all of Japan.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "any",
                            "goods",
                            "construction",
                            "services"
                        ],
                        "type": "string",
                        "description": "Procurement category.",
                        "default": "any"
                    },
                    "certification": {
                        "title": "Required qualification grade",
                        "type": "array",
                        "description": "Filter by bidder qualification grade (A–D). Leave empty for all. Note: this field is not populated for every notice.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "publishedFrom": {
                        "title": "Published from (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Only notices published on/after this date. Example: <code>2026-07-01</code>"
                    },
                    "publishedTo": {
                        "title": "Published to (YYYY-MM-DD)",
                        "type": "string",
                        "description": "Only notices published on/before this date."
                    },
                    "maxItems": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Maximum number of tenders to return. Keep the default to try the Actor cheaply.",
                        "default": 50
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
