登録肥料データ取得API:Get/{FertilizerId}
- 公開日
- 更新日 2025-03-18
利用条件
概要
API名称
カテゴリー
説明
農林水産省が提供する、肥料登録銘柄データです。肥料ID、更新区分、失効年月日も取得できます。
本APIの利用にあたっては利用規約への同意の上、別途利用申請が必要です。
ご利用の際は以下の「農業データ連携基盤(WAGRI)利⽤・変更申請ページ」からご申請をお願い申し上げます。
https://wagri-subscription.db.naro.go.jp/ords/r/prd/subscription/pre-registration
添付ファイル
■マニュアル
■利用規約
■コード一覧
■本APIの活用事例(富士通様)
関連メソッド
- ー
データの更新頻度
リクエスト
新URL
New!
https://api.wagri2.net/MaffOpenData/pesticide/Fertilizers/Get/{FertilizerId}
旧URL(2025年度末で終了予定)
https://api.wagri.net/API/MaffOpenData/Private/Fertilizers/Get/{FertilizerId}
説明
登録されている肥料データを主キー(肥料ID ※1)により1件指定して取得できます。 主キーはJSON形式のレスポンス情報に含まれており、Odata(※2)によるフィルター検索で取得できます。 主キー以外の条件抽出に関しても、Odataで取得可能です。
※1:肥料IDは前項のOdataにより抽出したレスポンスに含まれています。 なお、肥料ID(FertilizerId)は、登録番号(RegistrationNumberForReport)とは異なります。
※2:肥料API利用マニュアル参照
HTTPメソッド
パラメータ
URLデータ定義
肥料(PK)
名称 | 値 | 型 | 値の説明 |
---|---|---|---|
FertilizerId | 肥料ID | string | Required |
JSON型式のレスポンスに含まれており、データ1件を特定するための一意のキーとなります。
新呼出例
New!
https://api.wagri2.net/MaffOpenData/pesticide/Fertilizers/Get/a01IR00001hhXNCYA2
旧呼出例(2025年度末で終了予定)
https://api.wagri.net/API/MaffOpenData/Private/Fertilizers/Get/a01IR00001hhXNCYA2
レスポンス
レイアウト
レスポンスデータ定義
肥料
名称 | 値 | 型 | 値の説明 |
---|---|---|---|
ComponentCode1 | 成分コード1 | string, null | Maximum: 10 |
ComponentCode10 | 成分コード10 | string, null | Maximum: 10 |
ComponentCode11 | 成分コード11 | string, null | Maximum: 10 |
ComponentCode12 | 成分コード12 | string, null | Maximum: 10 |
ComponentCode13 | 成分コード13 | string, null | Maximum: 10 |
ComponentCode14 | 成分コード14 | string, null | Maximum: 10 |
ComponentCode15 | 成分コード15 | string, null | Maximum: 10 |
ComponentCode16 | 成分コード16 | string, null | Maximum: 10 |
ComponentCode2 | 成分コード2 | string, null | Maximum: 10 |
ComponentCode3 | 成分コード3 | string, null | Maximum: 10 |
ComponentCode4 | 成分コード4 | string, null | Maximum: 10 |
ComponentCode5 | 成分コード5 | string, null | Maximum: 10 |
ComponentCode6 | 成分コード6 | string, null | Maximum: 10 |
ComponentCode7 | 成分コード7 | string, null | Maximum: 10 |
ComponentCode8 | 成分コード8 | string, null | Maximum: 10 |
ComponentCode9 | 成分コード9 | string, null | Maximum: 10 |
ExpiryDate | 失効年月日 | string, null | Format: date-time |
ExpiryDay | 失効日 | integer, null | Maximum: 31 |
ExpiryMonth | 失効月 | integer, null | Maximum: 12 |
ExpiryType | 失効区分 | string, null | Maximum: 10 |
ExpiryYear | 失効年 | integer, null | Maximum: 9999 |
FertilizerId | 肥料ID | string | Required |
FertilizerName | 肥料名称 | string, null | Maximum: 80 |
FertilizerTypeName | 肥料種類名称 | string, null | Maximum: 80 |
GuaranteeIngredientAmount1 | 保証成分量1(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount10 | 保証成分量10(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount11 | 保証成分量11(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount12 | 保証成分量12(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount13 | 保証成分量13(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount14 | 保証成分量14(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount15 | 保証成分量15(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount16 | 保証成分量16(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount2 | 保証成分量2(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount3 | 保証成分量3(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount4 | 保証成分量4(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount5 | 保証成分量5(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount6 | 保証成分量6(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount7 | 保証成分量7(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount8 | 保証成分量8(%) | number, null | Maximum: 255 Format: Number(8,5) |
GuaranteeIngredientAmount9 | 保証成分量9(%) | number, null | Maximum: 255 Format: Number(4,5) |
RegistrationDate | 登録年月日 | string, null | Format: date-time |
RegistrationDay | 登録日 | integer, null | Maximum: 31 |
RegistrationMonth | 登録月 | integer, null | Maximum: 12 |
RegistrationNumberForReport | 登録番号 | string, null | Max Length: 50 |
RegistrationYear | 登録年 | integer, null | Maximum: 9999 |
SupplierAddress | 肥料業者住所 | string, null | Maximum: 255 |
SupplierName | 肥料業者名称 | string, null | Maximum: 80 |
UpdatedClassification | 更新区分 | string, null | Maximum: 10 |
レスポンス説明
肥料
レスポンス例
{ "ComponentCode1": "TN", "ComponentCode10": null, "ComponentCode11": null, "ComponentCode12": null, "ComponentCode13": null, "ComponentCode14": null, "ComponentCode15": null, "ComponentCode16": null, "ComponentCode2": null, "ComponentCode3": null, "ComponentCode4": null, "ComponentCode5": null, "ComponentCode6": null, "ComponentCode7": null, "ComponentCode8": null, "ComponentCode9": null, "ExpiryDate": null, "ExpiryDay": null, "ExpiryMonth": null, "ExpiryType": null, "ExpiryYear": null, "FertilizerId": "a01IR00001hhXNCYA2", "FertilizerName": "ホルムアルデヒド加工尿素肥料39", "FertilizerTypeName": "ホルムアルデヒド加工尿素肥料", "GuaranteeIngredientAmount1": 39, "GuaranteeIngredientAmount10": null, "GuaranteeIngredientAmount11": null, "GuaranteeIngredientAmount12": null, "GuaranteeIngredientAmount13": null, "GuaranteeIngredientAmount14": null, "GuaranteeIngredientAmount15": null, "GuaranteeIngredientAmount16": null, "GuaranteeIngredientAmount2": null, "GuaranteeIngredientAmount3": null, "GuaranteeIngredientAmount4": null, "GuaranteeIngredientAmount5": null, "GuaranteeIngredientAmount6": null, "GuaranteeIngredientAmount7": null, "GuaranteeIngredientAmount8": null, "GuaranteeIngredientAmount9": null, "RegistrationDate": "2025-01-27T00:00:00", "RegistrationDay": 27, "RegistrationMonth": 1, "RegistrationNumberForReport": "輸第109211号", "RegistrationYear": 2025, "SupplierAddress": "東京都千代田区内幸町一丁目2番2号", "SupplierName": "小華薬品株式会社", "UpdatedClassification": "新規", "id": "API~MaffOpenData~Private~Fertilizers~95~a01IR00001hhXNCYA2", "_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)
ー