# Japan Construction Materials Price & Supply Index (MLIT) (`vespa-zzz/jp-construction-materials-survey`) Actor

Monthly price trend, supply-demand and inventory indices for cement, ready-mixed concrete, aggregates, asphalt, rebar, H-beams, lumber, plywood and diesel in each Japanese prefecture (MLIT survey).

- **URL**: https://apify.com/vespa-zzz/jp-construction-materials-survey.md
- **Developed by:** [Vespa ZZZ](https://apify.com/vespa-zzz) (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

## Japan Construction Materials Price & Supply Index (MLIT)

Monthly **price trend, supply-demand and inventory indices** for 13 major construction materials in every Japanese
prefecture, from the Ministry of Land, Infrastructure, Transport and Tourism (MLIT) survey 主要建設資材需給・価格動向調査:
cement, ready-mixed concrete, sand, gravel, crushed stone, recycled crushed stone, new and recycled asphalt mix, deformed
steel bars, H-beams, lumber, formwork plywood and diesel oil.

Typical users: general contractors and estimators watching for tight markets before bidding, materials traders, public
works departments, construction-cost analysts and AI agents answering "is rebar getting tight in Osaka?".

### How to read the indices

They are averages of answers from monitors in each prefecture (MLIT's definitions):

| Metric | Scale |
|---|---|
| `price` | 1 falling · 2 slightly falling · 3 flat · 4 slightly rising · 5 rising |
| `supplyDemand` | 1 loose · 2 slightly loose · 3 balanced · 4 slightly tight · 5 tight |
| `inventory` | 1 plentiful · 2 normal · 3 slightly short · 4 short |

`lowSample: true` marks values MLIT prints in brackets (two or fewer respondents). Materials or metrics a prefecture is
not surveyed for are `status: "notCovered"` with `null` values (for example inventory of ready-mixed concrete).

### Input examples

Tokyo and Osaka, latest month:

```json
{ "prefectures": ["東京都", "大阪府"] }
```

Rebar and H-beams, national and regional averages, last 12 months:

```json
{ "materials": ["deformed_steel_bar", "h_beam"], "levels": ["national", "region"], "latestMonths": 12 }
```

### Output example

```json
{
  "surveyMonth": "2026-10",
  "materialId": "cement",
  "materialJa": "セメント（バラ物）",
  "level": "prefecture",
  "areaJa": "北海道",
  "prefectureCode": "01",
  "metric": "price",
  "currentIndex": 3.3,
  "previousIndex": 3.2,
  "change": 0.1,
  "lowSample": false,
  "status": "value",
  "sourceFileUrl": "https://www.mlit.go.jp/toukeijouhou/chojou/ex/material_xls_data/materialR08_10.xlsx",
  "source": "Ministry of Land, Infrastructure, Transport and Tourism (MLIT), Japan — 主要建設資材需給・価格動向調査 …"
}
```

`level` is `prefecture`, `region` (MLIT's nine regional averages, `areaJa` such as 関東) or `national` (`areaJa: 全国`).
`change` is computed from the two indices. The survey is taken on the 1st–5th of each month; MLIT's listing page is
sometimes updated after the newest file, so the Actor also checks for the file of the following month.

All selected files are downloaded and checked before anything is output. A run fails with a clear message if a file's
survey date does not match the month, a material block or prefecture is missing, or a value is not a number, a bracketed
number or "―".

### Data source and terms

- Source: 国土交通省「主要建設資材需給・価格動向調査」結果 (https://www.mlit.go.jp/toukeijouhou/chojou/material_result.htm),
  Excel tables 表-２. Reused under the MLIT terms of use (PDL1.0) with attribution; **this Actor processes the data**
  (long format, material ids, computed changes).
- Files in the current .xlsx format are supported (the older .xls archive is not read).
- Not affiliated with or endorsed by MLIT. Requests are sequential with a pause between them.

### 日本語の概要

国土交通省「主要建設資材需給・価格動向調査」の都道府県別・資材別の価格動向・需給動向・在庫状況の指数（毎月）を取得します。
13資材（セメント、生コン、骨材、アスファルト合材、異形棒鋼、H形鋼、木材、合板、軽油）、都道府県・地域・全国平均に対応。
出典: 国土交通省（PDL1.0、本 Actor で加工）。

# Actor input Schema

## `months` (type: `array`):

Survey months as YYYY-MM (the survey is taken on the 1st–5th of each month). Empty = the latest months.

## `latestMonths` (type: `integer`):

When Months is empty: how many of the most recent months to return.

## `materials` (type: `array`):

Empty = all 13 materials.

## `metrics` (type: `array`):

price (1 falling … 5 rising), supplyDemand (1 loose … 5 tight), inventory (1 plentiful … 4 short). Empty = all.

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

Prefecture names (東京都 or 東京) or codes 01–47. Empty = all.

## `levels` (type: `array`):

prefecture, region (9 regional averages) and/or national. Empty = all.

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

Maximum rows per run.

## Actor input object example

```json
{
  "latestMonths": 1,
  "prefectures": [
    "東京都",
    "大阪府"
  ],
  "maxItems": 10000
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

No description

## `runSummary` (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 = {
    "prefectures": [
        "東京都",
        "大阪府"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vespa-zzz/jp-construction-materials-survey").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 = { "prefectures": [
        "東京都",
        "大阪府",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("vespa-zzz/jp-construction-materials-survey").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 '{
  "prefectures": [
    "東京都",
    "大阪府"
  ]
}' |
apify call vespa-zzz/jp-construction-materials-survey --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vespa-zzz/jp-construction-materials-survey"
        }
    }
}
```

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/yBopEkahFVmKckXKQ/builds/ami1tFMoW99nROn3V/openapi.json
