青果物市況情報取得API:Get/{FreshMarketInformationId}
- 公開日
- 更新日 2025-03-17
利用条件
概要
API名称
カテゴリー
説明
農林水産省が提供する、全国の主要卸売市場における青果物(野菜・果実)の入荷量及び販売価格などの日別データです。
2019年1月以降のデータが取得できます。
※青果物市況情報の利用上の注意(農水省Webサイト)
https://www.maff.go.jp/j/tokei/kouhyou/seika_orosi/attach/pdf/index-8.pdf
本APIの利用にあたっては利用規約への同意の上、別途利用申請が必要です。
ご利用の際は以下の「農業データ連携基盤(WAGRI)利⽤・変更申請ページ」からご申請をお願い申し上げます。
https://wagri-subscription.db.naro.go.jp/ords/r/prd/subscription/pre-registration
添付ファイル
■マニュアル
■利用規約
■コード一覧
■本APIの活用事例(セラク様)
データの更新頻度
リクエスト
新URL
New!
https://api.wagri2.net/MaffOpenData/market/FreshMarketInformation/Get/{FreshMarketInformationId}
旧URL(2025年度末で終了予定)
https://api.wagri.net/API/MaffOpenData/Private/FreshMarketInformation/Get/{FreshMarketInformationId}
説明
登録されている市況情報データを1件指定して取得できます。 JSON 形式のレスポンス情報に含まれており、特定の 1件を指定して取得する際に利用します。
HTTPメソッド
パラメータ
URLデータ定義
青果物市況情報(PK)
| 名称 | 値 | 型 | 値の説明 |
|---|---|---|---|
| FreshMarketInformationId | 青果物市況情報ID | string | Required |
URL説明
JSON型式のレスポンスに含まれており、データ1件を特定するための一意のキーとなります。
新呼出例
New!
https://api.wagri2.net/MaffOpenData/market/FreshMarketInformation/Get/a071752c-6a0a-46b1-8e49-26e0ae75f73a
旧呼出例(2025年度末で終了予定)
https://api.wagri.net/API/MaffOpenData/Private/FreshMarketInformation/Get/a071752c-6a0a-46b1-8e49-26e0ae75f73a
レスポンス
レイアウト
レスポンスデータ定義
青果物市況情報
| 名称 | 値 | 型 | 値の説明 |
|---|---|---|---|
| FreshMarketInformationId | 青果物市況情報ID | string | Required |
| TargetDate | 年月日 | string | Required Format: date-time |
| Year | 年 | integer | Required Maximum: 9999 |
| Month | 月 | integer | Required Maximum: 12 |
| Date | 日 | integer | Required Maximum: 31 |
| WeekDay | 曜日 | string | Required Max Length: 1 |
| MarketCode | 市場コード | string | Required Max Length: 5 |
| MarketName | 市場名 | string | Required Max Length: 25 |
| ItemCode | 品目コード | string | Required Max Length: 5 |
| ItemName | 品目名 | string | Required Max Length: 100 |
| ProductionAreaCode | 産地コード | string, null | Max Length: 5 |
| ProductionAreaName | 産地名 | string, null | Max Length: 100 |
| ItemsTotal | 品目計(t) | number, null | Format: Number(10,1) |
| IncomingVolume | 入荷量(t) | number, null | Format: Number(10,1) |
| HighPrice | 高値(円) | integer, null | Maximum: 999999999 |
| MediumPrice | 中値(円) | integer, null | Maximum: 999999999 |
| LowPrice | 安値(円) | integer, null | Maximum: 999999999 |
| Grade | 等級 | string, null | Max Length: 15 |
| Class | 階級 | string, null | Max Length: 15 |
| VarietyName | 品名 | string, null | Max Length: 100 |
| WeightPerPackage | 量目(Kg) | number, null | Format: Number(5,2) |
| MarketTrend | 動向 | string, null | Max Length: 100 |
| ItemsTotalNonNumeric | 品目計(非数値) | string, null | Max Length: 10 |
| IncomingVolumelNonNumeric | 入荷量(非数値) | string, null | Max Length: 10 |
| HighPriceNonNumeric | 高値(非数値) | string, null | Max Length: 10 |
| MediumPriceNonNumeric | 中値(非数値) | string, null | Max Length: 10 |
| LowPriceNonNumeric | 安値(非数値) | string, null | Max Length: 10 |
| WeightPerPackageNonNumeric | 量目(非数値) | string, null | Max Length: 10 |
レスポンス説明
青果物市況情報
レスポンス例
{
"Class": "3L",
"Date": 1,
"FreshMarketInformationId": "a071752c-6a0a-46b1-8e49-26e0ae75f73a",
"Grade": null,
"HighPrice": null,
"HighPriceNonNumeric": "-",
"IncomingVolume": 9.2,
"IncomingVolumelNonNumeric": null,
"ItemCode": "30100",
"ItemName": "だいこん",
"ItemsTotal": 45.2,
"ItemsTotalNonNumeric": null,
"LowPrice": null,
"LowPriceNonNumeric": "-",
"MarketCode": "51300",
"MarketName": "札幌",
"MarketTrend": "強保合",
"MediumPrice": 1299,
"MediumPriceNonNumeric": null,
"Month": 2,
"ProductionAreaCode": "001",
"ProductionAreaName": "北海道",
"TargetDate": "2024-02-01T00:00:00",
"VarietyName": null,
"WeekDay": "木",
"WeightPerPackage": 15,
"WeightPerPackageNonNumeric": null,
"Year": 2024,
"id": "API~MaffOpenData~Private~FreshMarketInformation~1~a071752c-6a0a-46b1-8e49-26e0ae75f73a",
"_Owner_Id": "ac31a63b-e520-4cb0-8573-7ca34c2f269c"
}
ステータスコード
| コード | 名称 | 値の説明 |
|---|---|---|
| 400 | Bad Request | リクエストが不正です。 |
| 403 | Forbidden | リソースのアクセスが禁止されています。 |
| 500 | Internal Server Error | サーバー内部でエラーが発生しました。 |
| 401 | Unauthorized | 認証情報が不正です。 |
サンプルソースコード
プログラム記述例(WAGRI共通)
import requests
url = "https://api.wagri.net/API/Public/AgriculturalLand/SearchByCityCode"
payload = {
'CityCode': '432041'
}
headers = {
'X-Authorization': 'アクセストークン',
}
response = requests.get(url, headers=headers, params=payload)
print(response.text)
プログラム記述例(個別API)
ー

