# Japan Vegetable & Fruit Wholesale Prices by Market (MAFF) (`vespa-zzz/jp-produce-wholesale-prices`) Actor

Ten-day wholesale prices (yen/kg) and volumes of vegetables and fruit at Japan's central wholesale markets (Toyosu, Ota, Osaka …) from MAFF: by market, by city or major-market total with year-on-year.

- **URL**: https://apify.com/vespa-zzz/jp-produce-wholesale-prices.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 Vegetable & Fruit Wholesale Prices by Market (MAFF)

Ten-day (旬別) **wholesale prices (yen/kg) and volumes (tonnes) of vegetables and fruit** at Japan's central wholesale
markets — Tokyo Toyosu, Tokyo Ota, Osaka, Nagoya, Fukuoka, Sapporo and others — from the Ministry of Agriculture,
Forestry and Fisheries (MAFF) wholesale market survey. About 100 items (cabbage, tomatoes, onions, mandarins, apples …)
plus totals, three times a month.

Typical users: food manufacturers, restaurant chains, supermarkets and importers tracking produce costs; commodity and
inflation analysts; journalists; AI agents answering "what is cabbage selling for in Tokyo right now".

### What you can do

- **Scope**: `market` (each central wholesale market), `city` (city totals) or `national` (total of the major markets,
  with value and year-on-year ratios).
- **Periods**: the latest period (default), the latest N periods (`latestPeriods`, 3 per month) or specific periods such
  as `2026-11-1` (1 = 上旬, 2 = 中旬, 3 = 下旬).
- **Filter** by item (Japanese name or 5-digit MAFF code) and by market/city (name or code).
- **Monitor** with `onlyNew`: only rows that are new or changed since the previous run with the same state key. Each
  monitoring run re-checks at least the last 6 periods (two months) plus any period left unfinished by an earlier run
  (spending limit, maxItems). Two monitors with the same `stateKey` are detected and the second one stops.

### Input examples

Cabbage and tomatoes at every market, latest period:

```json
{ "items": ["キャベツ", "トマト"] }
```

Tokyo Toyosu and Osaka, all items, last three periods:

```json
{ "places": ["豊洲", "大阪本場"], "latestPeriods": 3 }
```

National totals with year-on-year, last year:

```json
{ "scope": "national", "latestPeriods": 36 }
```

### Output example

```json
{
  "period": "2026-11-1",
  "periodJa": "令和08年11月上旬",
  "scope": "market",
  "placeJa": "東京豊洲",
  "placeCode": "13300",
  "itemJa": "キャベツ",
  "itemCode": "31700",
  "quantityTonnes": 518,
  "quantityStatus": "value",
  "quantityBelowDisplayUnit": false,
  "noTrade": false,
  "priceYenPerKg": 107,
  "priceStatus": "value",
  "sourceFileUrl": "https://www.maff.go.jp/j/tokei/syohi/shunbetu/2026/csv/26111h_sijyo.csv",
  "source": "Ministry of Agriculture, Forestry and Fisheries (MAFF), Japan — 青果物卸売市場調査（旬別取扱高統計）…"
}
```

National rows (`scope: "national"`) also carry `valueThousandYen`, `quantityVsSamePeriodLastYearPct` and
`priceVsSamePeriodLastYearPct`.

MAFF's symbols are kept apart instead of being turned into zeros: `quantityStatus` / `priceStatus` are `value`,
`belowDisplayUnit` (published as 0: less than half a tonne), `noTrade` (－), `notAvailable` (…), `confidential` (x) or
`notComputable` (\*\*\*\*). The value is `null` for everything except numbers and `0`.

All selected files are downloaded and checked before anything is output. The run fails with a clear message if a file's
period label does not match its file name, if columns or rows do not have the expected shape, or if a value is not
one of the published forms. Run one monitor per `stateKey` at a time.

### Data source and terms

- Source: 農林水産省「青果物卸売市場調査（旬別調査）」品目別・市場別
  (https://www.maff.go.jp/j/tokei/syohi/shunbetu/ — yearly pages such as /2026/hinmoku.html). Reused under the MAFF
  website terms of use with attribution; **this Actor processes the data** (long format, codes, symbols as statuses).
- Not affiliated with or endorsed by MAFF. Requests are sequential with a pause between them (MAFF's robots.txt
  disallows only unrelated procurement paths).

### 日本語の概要

農林水産省の青果物卸売市場調査（旬別）から、野菜・果実の品目別・市場別（または都市別・主要市場計）の卸売数量と価格を
取得します。最新旬・直近 N 旬・旬指定、品目・市場での絞り込み、監視モードに対応。「0」（単位未満）・「－」（取引なし）・
「…」・「x」は区別して出力します。出典: 農林水産省ウェブサイト（本 Actor で加工）。

# Actor input Schema

## `scope` (type: `string`):

market = each central wholesale market (東京豊洲, 東京大田, 大阪本場 …); city = city totals; national = total of the major wholesale markets with year-on-year ratios.

## `periods` (type: `array`):

Ten-day periods as YYYY-MM-N with N = 1 (上旬), 2 (中旬), 3 (下旬), e.g. 2026-11-1. Empty = the latest periods.

## `latestPeriods` (type: `integer`):

When Periods is empty: how many of the most recent ten-day periods to return (3 per month).

## `items` (type: `array`):

Item names (Japanese, contains — e.g. キャベツ, トマト, みかん) or 5-digit MAFF item codes (e.g. 31700). Empty = all items, including totals such as 野菜総計.

## `places` (type: `array`):

Market or city names (contains — e.g. 豊洲, 大阪) or their codes (e.g. 13300). Empty = all.

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

Output only rows that are new or changed since the previous run with the same state key. Each monitoring run re-checks at least the last 6 periods (two months) and any period left unfinished by an earlier run.

## `stateKey` (type: `string`):

Name of the saved monitoring state. Letters, digits, - and \_ only.

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

Maximum rows per run.

## Actor input object example

```json
{
  "scope": "market",
  "latestPeriods": 1,
  "items": [
    "キャベツ",
    "トマト"
  ],
  "onlyNew": false,
  "stateKey": "default",
  "maxItems": 5000
}
```

# 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 = {
    "items": [
        "キャベツ",
        "トマト"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vespa-zzz/jp-produce-wholesale-prices").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 = { "items": [
        "キャベツ",
        "トマト",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("vespa-zzz/jp-produce-wholesale-prices").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 '{
  "items": [
    "キャベツ",
    "トマト"
  ]
}' |
apify call vespa-zzz/jp-produce-wholesale-prices --silent --output-dataset

```

## MCP server setup

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

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/OczcRM0lDRgcpEI2q/builds/lXYJ4DevuHceeueFp/openapi.json
