食品数据API是一个强大的工具,为用户提供各种食品项目的全面营养信息。此API允许用户搜索特定食品项目并检索每个项目的营养内容的详细信息。通过访问庞大的食品成分数据库,此API使用户能够分析和了解他们食品选择的营养价值。
食品数据API提供的信息包括每个食品项目的热量、宏量营养素(脂肪、蛋白质和碳水化合物)、维生素、矿物质和其他必需营养素。用户可以利用这些信息做出明智的饮食决策,跟踪每日的营养摄入,并制定符合特定饮食需求的餐食计划。
凭借其用户友好的界面和广泛的数据库,食品数据API是营养师、饮食学家、健身爱好者以及任何希望保持健康生活方式的人的优秀工具。该API对需要准确营养信息的食品相关企业(如餐厅、杂货店和食品配送服务)也非常有用。
总之,食品数据API是任何希望改善营养或做出明智饮食选择的人的宝贵资源。它提供广泛的食品成分及其营养信息,使其成为维持健康生活方式的基本工具。
它将接收一个参数并为您提供一个JSON。
健身应用:健身应用可以使用食品数据API来跟踪用户的营养摄入,帮助他们达成健身目标。
营养师:营养师可以使用食品数据API为客户提供准确的营养信息,帮助他们做出明智的饮食决策。
饮食学家:饮食学家可以使用食品数据API根据客户的特定饮食需求设计个性化餐食计划。
餐厅:餐厅可以使用食品数据API为顾客提供菜单项的准确营养信息,帮助他们做出更健康的选择。
杂货店:杂货店可以使用食品数据API为顾客提供所售产品的营养信息,使他们更容易做出明智的购买决策。
食品配送服务:食品配送服务可以使用食品数据API为顾客提供送达餐点的准确营养信息。
健身追踪器:健身追踪器可以使用食品数据API来跟踪用户的营养摄入,帮助他们实现健身目标。
健康应用:健康应用可以使用食品数据API为患者提供准确的营养信息,帮助他们管理慢性疾病如糖尿病。
食谱网站:食谱网站可以使用食品数据API为用户提供所分享食谱的营养信息,帮助他们做出更健康的选择。
教育:教育应用和网站可以使用食品数据API教学生营养知识以及做出健康饮食选择的重要性。
基本计划:5000个API调用。
专业计划:30000个API调用。
专业plus计划:100000个API调用。
高级计划:150000个API调用。
“获取食品数据”端点是一种强大的工具,可以使用户获取特定食品项目的全面营养信息。用户只需向该端点发送搜索查询并附上所需食品项目的名称,就可以访问数千种食材及其营养信息。该端点提供每种食品项目的详细信息,包括卡路里含量、宏量营养素(脂肪、蛋白质和碳水化合物)、维生素、矿物质和其他必需营养素。通过“获取食品数据”端点,用户可以对自己的饮食做出明智的决定,跟踪每日营养摄入,并制定适合自身饮食需求的膳食计划。
必需参数:nutrientSearch
例如:巧克力
{"total":9,"result":[{"_id":"634b0061d9a47eb26d661ea8","food_code":27513070,"food_description":"Roast beef submarine sandwich, on roll, au jus","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":999.02,"energy_kcal":239,"protein_g":12.34,"carbohydrate_g":17.54,"sugar_g":2.55,"fiber_g":0.6,"fat_g":12.78,"fatty_acid_g":4.902,"fatty_acid_monounsaturated_g":5.165,"fatty_acid_polyunsaturated_g":1.026,"cholesterol_mg":32,"retinol_mcg":0,"vitamin_a_rae_mcg_RAE":0,"carotene_alpha_mcg":0,"carotene_beta_mcg":0,"cryptoxanthin_beta_mcg":0,"lycopene_mcg":0,"lutein_plus_zeaxanthin_mcg":2,"thiamin_mg":0.217,"riboflavin_mg":0.174,"niacin_mg":2.979,"vitamin_b6_mg":0.112,"folic_acid_mcg":19,"folate_food_mcg":18,"folate_dfe_mcg_dfe":49,"folate_total_mcg":36,"choline_total_mg":38.7,"vitamin_b12_mcg":1.06,"vitamin_b12_added_mcg":0,"vitamin_c_mg":0.5,"vitamin_d_d2_plus_d3_mcg":0.2,"vitamin_e_alpha-tocopherol_mg":0.19,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":2.4,"calcium_mg":56,"phosphorus_mg":106,"magnesium_mg":16,"iron_mg":2.14,"zinc_mg":2.31,"copper_mg":0.07,"selenium_mg":18.2,"potassium_mg":172,"sodium_mg":297,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":56.12},{"_id":"634b0061d9a47eb26d661ea2","food_code":27513010,"food_description":"Roast beef sandwich","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":1019.92,"energy_kcal":244,"protein_g":15.17,"carbohydrate_g":22.21,"sugar_g":3.84,"fiber_g":1.3,"fat_g":10.3,"fatty_acid_g":3.399,"fatty_acid_monounsaturated_g":3.987,"fatty_acid_polyunsaturated_g":1.762,"cholesterol_mg":30,"retinol_mcg":2,"vitamin_a_rae_mcg_RAE":2,"carotene_alpha_mcg":0,"carotene_beta_mcg":0,"cryptoxanthin_beta_mcg":0,"lycopene_mcg":0,"lutein_plus_zeaxanthin_mcg":19,"thiamin_mg":0.217,"riboflavin_mg":0.287,"niacin_mg":4.343,"vitamin_b6_mg":0.215,"folic_acid_mcg":12,"folate_food_mcg":39,"folate_dfe_mcg_dfe":60,"folate_total_mcg":51,"choline_total_mg":40.1,"vitamin_b12_mcg":0.96,"vitamin_b12_added_mcg":0,"vitamin_c_mg":0,"vitamin_d_d2_plus_d3_mcg":0,"vitamin_e_alpha-tocopherol_mg":0.43,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":2.8,"calcium_mg":55,"phosphorus_mg":200,"magnesium_mg":23,"iron_mg":2.64,"zinc_mg":2.27,"copper_mg":0.109,"selenium_mg":18.2,"potassium_mg":224,"sodium_mg":653,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":49.91},{"_id":"634b0061d9a47eb26d661ee8","food_code":27541000,"food_description":"Turkey, ham, and roast beef club sandwich, with lettuce, tomato and spread","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":693.88,"energy_kcal":166,"protein_g":7.8,"carbohydrate_g":15.14,"sugar_g":3.05,"fiber_g":1,"fat_g":8.07,"fatty_acid_g":2.077,"fatty_acid_monounsaturated_g":2.428,"fatty_acid_polyunsaturated_g":2.815,"cholesterol_mg":19,"retinol_mcg":1,"vitamin_a_rae_mcg_RAE":9,"carotene_alpha_mcg":12,"carotene_beta_mcg":89,"cryptoxanthin_beta_mcg":1,"lycopene_mcg":255,"lutein_plus_zeaxanthin_mcg":82,"thiamin_mg":0.172,"riboflavin_mg":0.133,"niacin_mg":2.858,"vitamin_b6_mg":0.152,"folic_acid_mcg":14,"folate_food_mcg":19,"folate_dfe_mcg_dfe":42,"folate_total_mcg":32,"choline_total_mg":21.4,"vitamin_b12_mcg":0.36,"vitamin_b12_added_mcg":0,"vitamin_c_mg":7.9,"vitamin_d_d2_plus_d3_mcg":0.1,"vitamin_e_alpha-tocopherol_mg":0.38,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":13.7,"calcium_mg":52,"phosphorus_mg":99,"magnesium_mg":15,"iron_mg":1.35,"zinc_mg":0.94,"copper_mg":0.06,"selenium_mg":11.7,"potassium_mg":197,"sodium_mg":508,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":67.13},{"_id":"634b0061d9a47eb26d661ea3","food_code":27513020,"food_description":"Roast beef sandwich, with gravy","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":919.6,"energy_kcal":220,"protein_g":12.04,"carbohydrate_g":13.77,"sugar_g":1.37,"fiber_g":0.7,"fat_g":12.73,"fatty_acid_g":5.058,"fatty_acid_monounsaturated_g":5.249,"fatty_acid_polyunsaturated_g":0.869,"cholesterol_mg":32,"retinol_mcg":0,"vitamin_a_rae_mcg_RAE":0,"carotene_alpha_mcg":0,"carotene_beta_mcg":0,"cryptoxanthin_beta_mcg":0,"lycopene_mcg":0,"lutein_plus_zeaxanthin_mcg":11,"thiamin_mg":0.161,"riboflavin_mg":0.134,"niacin_mg":2.668,"vitamin_b6_mg":0.111,"folic_acid_mcg":21,"folate_food_mcg":9,"folate_dfe_mcg_dfe":45,"folate_total_mcg":30,"choline_total_mg":37.6,"vitamin_b12_mcg":0.98,"vitamin_b12_added_mcg":0,"vitamin_c_mg":0,"vitamin_d_d2_plus_d3_mcg":0.2,"vitamin_e_alpha-tocopherol_mg":0.15,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":0.8,"calcium_mg":58,"phosphorus_mg":104,"magnesium_mg":15,"iron_mg":1.95,"zinc_mg":2.58,"copper_mg":0.1,"selenium_mg":14.2,"potassium_mg":171,"sodium_mg":468,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":59.85},{"_id":"634b0061d9a47eb26d661ee9","food_code":27541001,"food_description":"Turkey, ham, and roast beef club sandwich with cheese, lettuce, tomato, and spread","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":610.28,"energy_kcal":146,"protein_g":10.66,"carbohydrate_g":20.36,"sugar_g":3.19,"fiber_g":1.4,"fat_g":2.42,"fatty_acid_g":0.57,"fatty_acid_monounsaturated_g":0.615,"fatty_acid_polyunsaturated_g":0.844,"cholesterol_mg":16,"retinol_mcg":0,"vitamin_a_rae_mcg_RAE":2,"carotene_alpha_mcg":0,"carotene_beta_mcg":29,"cryptoxanthin_beta_mcg":0,"lycopene_mcg":149,"lutein_plus_zeaxanthin_mcg":56,"thiamin_mg":0.277,"riboflavin_mg":0.24,"niacin_mg":4.507,"vitamin_b6_mg":0.222,"folic_acid_mcg":50,"folate_food_mcg":15,"folate_dfe_mcg_dfe":100,"folate_total_mcg":65,"choline_total_mg":29.4,"vitamin_b12_mcg":0.2,"vitamin_b12_added_mcg":0,"vitamin_c_mg":0.8,"vitamin_d_d2_plus_d3_mcg":0.1,"vitamin_e_alpha-tocopherol_mg":0.24,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":4.7,"calcium_mg":153,"phosphorus_mg":131,"magnesium_mg":22,"iron_mg":1.93,"zinc_mg":1.18,"copper_mg":0.081,"selenium_mg":16.8,"potassium_mg":265,"sodium_mg":348,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":64.7},{"_id":"634b0061d9a47eb26d661ea5","food_code":27513041,"food_description":"Roast beef submarine sandwich, with cheese, lettuce, tomato and spread","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":794.2,"energy_kcal":190,"protein_g":11.93,"carbohydrate_g":18.68,"sugar_g":2.86,"fiber_g":0.6,"fat_g":7.33,"fatty_acid_g":2.236,"fatty_acid_monounsaturated_g":1.857,"fatty_acid_polyunsaturated_g":2.743,"cholesterol_mg":23,"retinol_mcg":14,"vitamin_a_rae_mcg_RAE":18,"carotene_alpha_mcg":0,"carotene_beta_mcg":40,"cryptoxanthin_beta_mcg":2,"lycopene_mcg":194,"lutein_plus_zeaxanthin_mcg":41,"thiamin_mg":0.21,"riboflavin_mg":0.245,"niacin_mg":3.806,"vitamin_b6_mg":0.253,"folic_acid_mcg":53,"folate_food_mcg":9,"folate_dfe_mcg_dfe":99,"folate_total_mcg":62,"choline_total_mg":27,"vitamin_b12_mcg":0.47,"vitamin_b12_added_mcg":0,"vitamin_c_mg":0,"vitamin_d_d2_plus_d3_mcg":0,"vitamin_e_alpha-tocopherol_mg":0.45,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":11.6,"calcium_mg":197,"phosphorus_mg":137,"magnesium_mg":19,"iron_mg":1.94,"zinc_mg":1.48,"copper_mg":0.077,"selenium_mg":16.5,"potassium_mg":178,"sodium_mg":404,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":60.13},{"_id":"634b0061d9a47eb26d661ea4","food_code":27513040,"food_description":"Roast beef submarine sandwich, with lettuce, tomato and spread","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":756.58,"energy_kcal":181,"protein_g":11.64,"carbohydrate_g":19.4,"sugar_g":2.88,"fiber_g":0.7,"fat_g":6.16,"fatty_acid_g":1.483,"fatty_acid_monounsaturated_g":1.553,"fatty_acid_polyunsaturated_g":2.812,"cholesterol_mg":19,"retinol_mcg":4,"vitamin_a_rae_mcg_RAE":6,"carotene_alpha_mcg":0,"carotene_beta_mcg":38,"cryptoxanthin_beta_mcg":2,"lycopene_mcg":203,"lutein_plus_zeaxanthin_mcg":42,"thiamin_mg":0.22,"riboflavin_mg":0.246,"niacin_mg":3.984,"vitamin_b6_mg":0.262,"folic_acid_mcg":55,"folate_food_mcg":9,"folate_dfe_mcg_dfe":103,"folate_total_mcg":64,"choline_total_mg":26.6,"vitamin_b12_mcg":0.42,"vitamin_b12_added_mcg":0,"vitamin_c_mg":0,"vitamin_d_d2_plus_d3_mcg":0,"vitamin_e_alpha-tocopherol_mg":0.43,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":12,"calcium_mg":157,"phosphorus_mg":113,"magnesium_mg":19,"iron_mg":2,"zinc_mg":1.44,"copper_mg":0.078,"selenium_mg":16.3,"potassium_mg":180,"sodium_mg":344,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":61.11},{"_id":"634b0061d9a47eb26d661ea6","food_code":27513050,"food_description":"Roast beef sandwich with cheese","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":1354.32,"energy_kcal":324,"protein_g":17.15,"carbohydrate_g":18.09,"sugar_g":2.65,"fiber_g":0.8,"fat_g":19.8,"fatty_acid_g":8.237,"fatty_acid_monounsaturated_g":7.675,"fatty_acid_polyunsaturated_g":1.322,"cholesterol_mg":54,"retinol_mcg":32,"vitamin_a_rae_mcg_RAE":35,"carotene_alpha_mcg":0,"carotene_beta_mcg":32,"cryptoxanthin_beta_mcg":3,"lycopene_mcg":0,"lutein_plus_zeaxanthin_mcg":23,"thiamin_mg":0.216,"riboflavin_mg":0.227,"niacin_mg":3.456,"vitamin_b6_mg":0.168,"folic_acid_mcg":30,"folate_food_mcg":15,"folate_dfe_mcg_dfe":65,"folate_total_mcg":44,"choline_total_mg":54.7,"vitamin_b12_mcg":1.53,"vitamin_b12_added_mcg":0,"vitamin_c_mg":0,"vitamin_d_d2_plus_d3_mcg":1.1,"vitamin_e_alpha-tocopherol_mg":0.31,"vitamin_e_added_mg":0,"vitamin_k_phylloquinone_mcg":1.5,"calcium_mg":256,"phosphorus_mg":230,"magnesium_mg":24,"iron_mg":2.51,"zinc_mg":3.41,"copper_mg":0.09,"selenium_mg":21.8,"potassium_mg":236,"sodium_mg":482,"caffeine_mg":0,"theobromine_mg":0,"alcohol_g":0,"water_g":42.65},{"_id":"634b0061d9a47eb26d661ea7","food_code":27513060,"food_description":"Roast beef sandwich with bacon and cheese sauce","category_number":3708,"category_description":"Other sandwiches (single code)","energy_kj":1446.28,"energy_kcal":346,"protein_g":18.82,"carbohydrate_g":19.67}],"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/1822/food+data+api/1483/get+food+data&nutrientSearch=Required' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
食品数据API返回食品项目的全面营养信息,包括卡路里含量、宏量营养素(脂肪、蛋白质、碳水化合物)、维生素、矿物质和份量大小。数据以JSON格式结构化,便于集成
响应中的关键字段包括食物描述 能量(千卡) 蛋白质(克) 碳水化合物(克) 糖(克) 纤维(克) 脂肪(克) 以及各种维生素和矿物质 每个食品项都由一个食品编码唯一标识
响应数据以JSON结构组织,包含结果的“总数”和一个“结果”对象数组。每个对象包含特定食品项的详细营养信息,便于解析和使用
该API提供详细的营养信息,包括宏量营养素值、维生素和矿物质含量、份量大小和食品描述。这些数据帮助用户分析和理解他们的饮食选择
数据来源于可靠的营养数据库和食品成分表 定期更新和质量检查确保所提供的营养信息的准确性和可靠性
用户可以通过使用"nutrientSearch"参数来自定义他们的请求,以指定他们想要检索信息的食品。这允许根据特定的饮食需求或兴趣进行有针对性的搜索
典型的用例包括在健身应用中跟踪营养摄入、通过营养师创建个性化饮食计划、在餐馆提供营养信息,以及通过食谱网站教育用户健康饮食
用户可以利用返回的数据来跟踪每日营养摄入比较食品项目创建餐单和做出明智的饮食选择详细的营养分解有助于理解食品的营养价值
服务级别:
100%
响应时间:
742ms
服务级别:
100%
响应时间:
1,596ms
服务级别:
100%
响应时间:
1,673ms
服务级别:
100%
响应时间:
1,239ms
服务级别:
100%
响应时间:
734ms
服务级别:
95%
响应时间:
680ms
服务级别:
100%
响应时间:
268ms
服务级别:
100%
响应时间:
1,164ms
服务级别:
100%
响应时间:
841ms
服务级别:
100%
响应时间:
809ms