粗飼料名ガイドライン取得API:Get/{CoarseFeedNameId}

提供ベンダー
システム名
オープンデータ
利用条件
無償オプションAPI(申込必要)

概要

API名称
粗飼料名ガイドライン取得API
カテゴリー
説明

内閣官房IT総合戦略室が提供する、粗飼料名ガイドラインのデータです。

APIの利用にあたっては利用規約への同意の上、別途利用申請が必要です。
ご利用の際は以下の「農業データ連携基盤(WAGRI)利⽤・変更申請ページ」からご申請をお願い申し上げます。
https://wagri-subscription.db.naro.go.jp/ords/r/prd/subscription/pre-registration

データの更新頻度
2~3年に1回

リクエスト

新URL
New!

https://api.wagri2.net/MaffOpenData/others/GuidelinesForCoarseFeedNames/Get/{CoarseFeedNameId}

旧URL(2025年度末で終了予定)​

https://api.wagri.net/API/MaffOpenData/Private/GuidelinesForCoarseFeedNames/Get/{CoarseFeedNameId}

説明

登録されている粗飼料名ガイドラインのデータを主キーにより1件指定して取得できます。 主キーはJSON形式のレスポンス情報に含まれており、Odataによるフィルター検索で取得できます。 主キー以外の条件抽出に関しても、Odataで取得可能です。

HTTPメソッド
GET
パラメータ

URLデータ定義
GuidelinesForCoarseFeedNames(PK)

名称 値の説明
CoarseFeedNameId 粗飼料名ID string Required
Max Length: 10

URL説明
GuidelinesForCoarseFeedNames(PK)

新呼出例
New!

https://api.wagri2.net/MaffOpenData/others/GuidelinesForCoarseFeedNames/Get/0902009005

旧呼出例(2025年度末で終了予定)

https://api.wagri.net/API/MaffOpenData/Private/GuidelinesForCoarseFeedNames/Get/0902009005

レスポンス

レイアウト

レスポンスデータ定義
GuidelinesForCoarseFeedNames

名称 値の説明
CoarseFeedNameId 粗飼料名ID string Required
Max Length: 10
LargeCategoryCode 大分類コード string, null Max Length: 2
LargeCategoryName 大項目名 string, null Max Length: 30
MediumCategoryCode 中分類コード string, null Max Length: 4
MediumCategoryName 中分類名 string, null Max Length: 30
CropNameId 農作物名ID string, null Max Length: 8
CropName 農作物名 string, null Max Length: 30
AGROVOCId AGROVOC_ID string, null Max Length: 32
CropVocabularyURI 農作物語彙体系URI string, null Max Length: 500
Thesaurus 同義語 string, null Max Length: 8833
ConcreteExample 具体例 string, null Max Length: 8833
EnglishName 英名 string, null Max Length: 100
ScientificName 学名 string, null Max Length: 500
ProcessingForm 加工形態 string, null Max Length: 30
GrowingMethod 栽培方法 string, null Max Length: 30
ProcessingMethod 加工方法 string, null Max Length: 30
Part 部位 string, null Max Length: 30
PlantType 草型 string, null Max Length: 30
Cultivar 品種 string, null Max Length: 30
NumberOfTimesToHarvest 収穫回数 string, null Max Length: 30
CroppingSeason 作期 string, null Max Length: 30
HarvestTime 収穫時期 string, null Max Length: 30
Area 地域 string, null Max Length: 30
Composition 組成 string, null Max Length: 30
Quality 品質 string, null Max Length: 30
FeedNumber 日本標準飼料成分表番号 string, null Max Length: 10

レスポンス説明
JSON型式のレスポンスに含まれており、データ1件を特定するための一意のキーとなります。

レスポンス例
{
    "CoarseFeedNameId": "0902009005",
    "LargeCategoryCode": "09",
    "LargeCategoryName": "粗飼料",
    "MediumCategoryCode": "0902",
    "MediumCategoryName": "飼料作物",
    "CropNameId": "09020090",
    "CropName": "ハトムギ",
    "AGROVOCId": "c_1736",
    "CropVocabularyURI": "http://cavoc.org/cvo/ns/1/ハトムギ",
    "Thesaurus": "はとむぎ",
    "ConcreteExample": null,
    "EnglishName": "pearl barley,job's tears",
    "ScientificName": "Coix lachryma jobi",
    "ProcessingForm": "サイレージ",
    "GrowingMethod": null,
    "ProcessingMethod": null,
    "Part": null,
    "PlantType": null,
    "Cultivar": null,
    "NumberOfTimesToHarvest": null,
    "CroppingSeason": null,
    "HarvestTime": "糊熟期",
    "Area": null,
    "Composition": null,
    "Quality": null,
    "FeedNumber": "2962",
    "id": "API~MaffOpenData~Private~GuidelinesForCoarseFeedNames~1~0902009005",
    "_Owner_Id": "0699b9f7-da0f-457d-b3e8-aa1b9a79d8c3"
}

 

ステータスコード
コード 名称 値の説明
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)

前に戻る
上部へスクロール