食品营养信息 API API ID: 1218

食品营养信息API允许用户搜索和找到食品及其详细的营养信息,包括卡路里含量、蛋白质、脂肪和碳水化合物含量
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

关于API:

食品营养信息API是一个全面的营养信息资源,涵盖了各种食品。无论您是想追踪您的饮食和营养,创建一款餐食规划平台,还是开发一款食品追踪应用,这个API都能提供您实现目标所需的信息。

该API允许您根据营养信息搜索和查找食品,包括卡路里数、蛋白质、脂肪和碳水化合物含量。数据经过精心选择并定期更新,确保用户能够获取到最准确和最新的信息。凭借其易于使用的界面,该API旨在让所有技能水平的开发者都能方便使用,从刚入门的开发者到经验丰富的专业人士。

除了全面的食品项数据库外,食品营养信息API还提供了每种食品项的详细营养成分信息,使用户能够轻松做出有关饮食习惯的明智决策。无论您需要追踪每日卡路里摄入量、监测营养素摄入量,还是仅仅想了解更多您所吃食品的信息,这个API都能提供您实现目标所需的信息。

 

 

该API接收什么,您的API提供什么(输入/输出)?

传递您想要获取的食品关键词,并接收相关的营养信息。

 

该API最常见的使用案例是什么?

  1. 餐食规划和食谱创作 - 用户可以访问特定成分和食品的营养信息,以创建均衡的餐食和健康食谱。

  2. 食品追踪和饮食管理 - 个人可以使用API追踪每日卡路里摄入和营养素消耗,以满足他们的饮食目标。

  3. 餐厅菜单分析 - 餐厅可以使用API分析菜单项的营养成分,并就菜单开发和标签制定做出明智决策。

  4. 健身和体重管理 - 健身和减肥应用可以利用API提供个性化的营养计划,并根据用户的卡路里和营养需求跟踪进展。

  5. 食品标签和产品开发 - 食品和饮料制造商可以访问其产品的准确营养信息,以遵守标签要求并开发更健康的选择。

  6. 医疗保健和健康 - 健康专业人士和健康中心可以使用API为患有特定健康状况的个人提供个性化的营养建议和支持。

 

您的计划是否有任何限制?

除了每月的API调用限制,付费计划每天有100次请求的限制。

API 文档

端点


使用关键词搜索食品


                                                                            
GET https://zylalabs.com/api/1218/food+nutrition+information+api/1058/search+food+by+keyword
                                                                            
                                                                        

关键词搜索食品 - 端点功能

对象 描述
query [必需]
pageSize 可选
pageNumber 可选
brandOwner 可选
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"totalHits":6846,"currentPage":1,"totalPages":1370,"pageList":[1,2,3,4,5,6,7,8,9,10],"foodSearchCriteria":{"query":"bacon","generalSearchInput":"bacon","pageNumber":1,"numberOfResultsPerPage":50,"pageSize":5,"requireAllWords":false},"foods":[{"fdcId":1799988,"description":"BACON","dataType":"Branded","gtinUpc":"654383121311","publishedDate":"2021-06-17","brandOwner":"Miesfelds Triangle Market, Inc.","brandName":"FESTIVAL FOODS","ingredients":"BACON CURED WITH: WATER, SALT, SUGAR, SODIUM PHOSPHATE, SODIUM ERYTHORBATE, SODIUM NITRITE.","marketCountry":"United States","foodCategory":"Bacon, Sausages & Ribs","modifiedDate":"2017-07-14","dataSource":"LI","packageWeight":"16 oz","servingSizeUnit":"g","servingSize":14,"householdServingFullText":"2 SLICES","tradeChannels":["NO_TRADE_CHANNEL"],"allHighlightFields":"<b>Ingredients</b>: <em>BACON</em> CURED WITH: WATER, SALT, SUGAR, SODIUM PHOSPHATE, SODIUM ERYTHORBATE, SODIUM NITRITE.","score":1023.10516,"microbes":[],"foodNutrients":[{"nutrientId":1003,"nutrientName":"Protein","nutrientNumber":"203","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":7.14,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":600,"indentLevel":1,"foodNutrientId":21554773},{"nutrientId":1004,"nutrientName":"Total lipid (fat)","nutrientNumber":"204","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":50,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":800,"indentLevel":1,"foodNutrientId":21554774,"percentDailyValue":10},{"nutrientId":1005,"nutrientName":"Carbohydrate, by difference","nutrientNumber":"205","unitName":"G","derivationCode":"LCCD","derivationDescription":"Calculated from a daily value percentage per serving size measure","derivationId":75,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":1110,"indentLevel":2,"foodNutrientId":21554775,"percentDailyValue":0},{"nutrientId":1008,"nutrientName":"Energy","nutrientNumber":"208","unitName":"KCAL","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":500,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":300,"indentLevel":1,"foodNutrientId":21554776},{"nutrientId":2000,"nutrientName":"Total Sugars","nutrientNumber":"269","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":1510,"indentLevel":3,"foodNutrientId":21554777},{"nutrientId":1079,"nutrientName":"Fiber, total dietary","nutrientNumber":"291","unitName":"G","derivationCode":"LCCD","derivationDescription":"Calculated from a daily value percentage per serving size measure","derivationId":75,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":1200,"indentLevel":3,"foodNutrientId":21554778,"percentDailyValue":0},{"nutrientId":1087,"nutrientName":"Calcium, Ca","nutrientNumber":"301","unitName":"MG","derivationCode":"LCCD","derivationDescription":"Calculated from a daily value percentage per serving size measure","derivationId":75,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5300,"indentLevel":1,"foodNutrientId":21554779,"percentDailyValue":0},{"nutrientId":1089,"nutrientName":"Iron, Fe","nutrientNumber":"303","unitName":"MG","derivationCode":"LCCD","derivationDescription":"Calculated from a daily value percentage per serving size measure","derivationId":75,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5400,"indentLevel":1,"foodNutrientId":21554780,"percentDailyValue":0},{"nutrientId":1093,"nutrientName":"Sodium, Na","nutrientNumber":"307","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":786,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5800,"indentLevel":1,"foodNutrientId":21554781,"percentDailyValue":5},{"nutrientId":1104,"nutrientName":"Vitamin A, IU","nutrientNumber":"318","unitName":"IU","derivationCode":"LCCD","derivationDescription":"Calculated from a daily value percentage per serving size measure","derivationId":75,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":7500,"indentLevel":1,"foodNutrientId":21554782,"percentDailyValue":0},{"nutrientId":1162,"nutrientName":"Vitamin C, total ascorbic acid","nutrientNumber":"401","unitName":"MG","derivationCode":"LCCD","derivationDescription":"Calculated from a daily value percentage per serving size measure","derivationId":75,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":6300,"indentLevel":1,"foodNutrientId":21554783,"percentDailyValue":0},{"nutrientId":1253,"nutrientName":"Cholesterol","nutrientNumber":"601","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":71,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":15700,"indentLevel":1,"foodNutrientId":21554784,"percentDailyValue":3},{"nutrientId":1258,"nutrientName":"Fatty acids, total saturated","nutrientNumber":"606","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":17.9,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":9700,"indentLevel":1,"foodNutrientId":21554785,"percentDailyValue":12}],"finalFoodInputFoods":[],"foodMeasures":[],"foodAttributes":[{"value":"10","name":"Added Brand/Sub Brand Information","id":1892685}],"foodAttributeTypes":[{"name":"Update Log","description":"Changes that were made to this food","id":998,"foodAttributes":[{"value":"10","name":"Added Brand/Sub Brand Information","id":1892685}]}],"foodVersionIds":[]},{"fdcId":2128991,"description":"BACON","dataType":"Branded","gtinUpc":"087848305672","publishedDate":"2021-10-28","brandOwner":"Food City","brandName":"LAY MEATS","ingredients":"CURED WITH WATER, SALT, SUGAR, SODIUM PHOSPHATE, SODIUM ERYTHORBATE, SODIUM NITRITE.","marketCountry":"United States","foodCategory":"Bacon, Sausages & Ribs","modifiedDate":"2020-02-26","dataSource":"LI","servingSizeUnit":"g","servingSize":15,"householdServingFullText":"2 PAN FRIED SLICES","tradeChannels":["NO_TRADE_CHANNEL"],"allHighlightFields":"","score":1023.10516,"microbes":[],"foodNutrients":[{"nutrientId":1003,"nutrientName":"Protein","nutrientNumber":"203","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":33.3,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":600,"indentLevel":1,"foodNutrientId":24577978,"percentDailyValue":10},{"nutrientId":1004,"nutrientName":"Total lipid (fat)","nutrientNumber":"204","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":46.7,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":800,"indentLevel":1,"foodNutrientId":24577979,"percentDailyValue":11},{"nutrientId":1005,"nutrientName":"Carbohydrate, by difference","nutrientNumber":"205","unitName":"G","derivationCode":"LCCD","derivationDescription":"Calculated from a daily value percentage per serving size measure","derivationId":75,"value":0,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":1110,"indentLevel":2,"foodNutrientId":24577980,"percentDailyValue":0},{"nutrientId":1008,"nutrientName":"Energy","nutrientNumber":"208","unitName":"KCAL","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":600,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":300,"indentLevel":1,"foodNutrientId":24577981},{"nutrientId":1093,"nutrientName":"Sodium, Na","nutrientNumber":"307","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":1800,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5800,"indentLevel":1,"foodNutrientId":24577982,"percentDailyValue":11},{"nutrientId":1253,"nutrientName":"Cholesterol","nutrientNumber":"601","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":100,"foodNutrientSourceId":9}]}],"_note":"Response truncated for documentation purposes"}
                                                                                                                                                                                                                    
                                                                                                    

关键词搜索食品 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/1218/food+nutrition+information+api/1058/search+food+by+keyword?query=milk&pageSize=5&pageNumber=1' --header 'Authorization: Bearer YOUR_API_KEY' 


    

通过FDC ID检索单个食品项目

在“通过关键字搜索食品”端点上检索的FC ID 


                                                                            
GET https://zylalabs.com/api/1218/food+nutrition+information+api/1059/search+food+by+id
                                                                            
                                                                        
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"discontinuedDate":"","foodComponents":[],"foodAttributes":[{"id":2145062,"value":5,"name":"Nutrient Added"},{"id":2145063,"value":9,"name":"Added Package Weight"},{"id":2145064,"value":4,"name":"Nutrient Updated"}],"foodPortions":[],"fdcId":1970473,"description":"MILK","publicationDate":"7/29/2021","foodNutrients":[{"type":"FoodNutrient","nutrient":{"id":1004,"number":"204","name":"Total lipid (fat)","rank":800,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497026,"amount":3.75},{"type":"FoodNutrient","nutrient":{"id":1253,"number":"601","name":"Cholesterol","rank":15700,"unitName":"mg"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497039,"amount":15},{"type":"FoodNutrient","nutrient":{"id":1089,"number":"303","name":"Iron, Fe","rank":5400,"unitName":"mg"},"foodNutrientDerivation":{"id":75,"code":"LCCD","description":"Calculated from a daily value percentage per serving size measure"},"id":22497032,"amount":0},{"type":"FoodNutrient","nutrient":{"id":1093,"number":"307","name":"Sodium, Na","rank":5800,"unitName":"mg"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497035,"amount":58},{"type":"FoodNutrient","nutrient":{"id":1258,"number":"606","name":"Fatty acids, total saturated","rank":9700,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497041,"amount":2.08},{"type":"FoodNutrient","nutrient":{"id":1092,"number":"306","name":"Potassium, K","rank":5700,"unitName":"mg"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497034,"amount":179},{"type":"FoodNutrient","nutrient":{"id":1235,"number":"539","name":"Sugars, added","rank":1540,"unitName":"g"},"foodNutrientDerivation":{"id":75,"code":"LCCD","description":"Calculated from a daily value percentage per serving size measure"},"id":22497038,"amount":0},{"type":"FoodNutrient","nutrient":{"id":1166,"number":"405","name":"Riboflavin","rank":6500,"unitName":"mg"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497036,"amount":0.208},{"type":"FoodNutrient","nutrient":{"id":1008,"number":"208","name":"Energy","rank":300,"unitName":"kcal"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497028,"amount":71},{"type":"FoodNutrient","nutrient":{"id":1005,"number":"205","name":"Carbohydrate, by difference","rank":1110,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497027,"amount":5.42},{"type":"FoodNutrient","nutrient":{"id":2000,"number":"269","name":"Sugars, total including NLEA","rank":1510,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497029,"amount":5},{"type":"FoodNutrient","nutrient":{"id":1087,"number":"301","name":"Calcium, Ca","rank":5300,"unitName":"mg"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497031,"amount":138},{"type":"FoodNutrient","nutrient":{"id":1178,"number":"418","name":"Vitamin B-12","rank":7300,"unitName":"µg"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497037,"amount":0.54},{"type":"FoodNutrient","nutrient":{"id":1293,"number":"646","name":"Fatty acids, total polyunsaturated","rank":12900,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497043,"amount":0},{"type":"FoodNutrient","nutrient":{"id":1079,"number":"291","name":"Fiber, total dietary","rank":1200,"unitName":"g"},"foodNutrientDerivation":{"id":75,"code":"LCCD","description":"Calculated from a daily value percentage per serving size measure"},"id":22497030,"amount":0},{"type":"FoodNutrient","nutrient":{"id":1091,"number":"305","name":"Phosphorus, P","rank":5600,"unitName":"mg"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497033,"amount":104},{"type":"FoodNutrient","nutrient":{"id":1292,"number":"645","name":"Fatty acids, total monounsaturated","rank":11400,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497042,"amount":1.04},{"type":"FoodNutrient","nutrient":{"id":1257,"number":"605","name":"Fatty acids, total trans","rank":15400,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497040,"amount":0},{"type":"FoodNutrient","nutrient":{"id":1003,"number":"203","name":"Protein","rank":600,"unitName":"g"},"foodNutrientDerivation":{"id":70,"code":"LCCS","description":"Calculated from value per serving size measure"},"id":22497025,"amount":3.33}],"dataType":"Branded","foodClass":"Branded","modifiedDate":"8/1/2019","availableDate":"8/1/2019","brandOwner":"Target Stores","brandName":"GOOD & GATHER","subbrandName":"ORGANIC","dataSource":"LI","brandedFoodCategory":"Milk","gtinUpc":"085239043059","ingredients":"GRADE A ORGANIC MILK, VITAMIN D3**.","marketCountry":"United States","servingSize":240,"servingSizeUnit":"ml","packageWeight":"0.5 GAL/1.89 L","foodUpdateLog":[{"discontinuedDate":"","foodAttributes":[],"fdcId":1970473,"description":"MILK","publicationDate":"7/29/2021","dataType":"Branded","foodClass":"Branded","modifiedDate":"8/1/2019","availableDate":"8/1/2019","brandOwner":"Target Stores","brandName":"GOOD & GATHER","subbrandName":"ORGANIC","dataSource":"LI","brandedFoodCategory":"Milk","gtinUpc":"085239043059","ingredients":"GRADE A ORGANIC MILK, VITAMIN D3**.","marketCountry":"United States","servingSize":240,"servingSizeUnit":"ml","packageWeight":"0.5 GAL/1.89 L"},{"discontinuedDate":"","foodAttributes":[],"fdcId":1825305,"description":"MILK","publicationDate":"6/17/2021","dataType":"Branded","foodClass":"Branded","modifiedDate":"8/1/2019","availableDate":"8/1/2019","brandOwner":"Target Stores","brandName":"GOOD & GATHER","subbrandName":"ORGANIC","dataSource":"LI","brandedFoodCategory":"Milk","gtinUpc":"085239043059","ingredients":"GRADE A ORGANIC MILK, VITAMIN D3**.","marketCountry":"United States","servingSize":240,"servingSizeUnit":"ml","packageWeight":"1.89 L"}],"labelNutrients":{"fat":{"value":9},"saturatedFat":{"value":4.99},"transFat":{"value":0},"cholesterol":{"value":36},"sodium":{"value":139},"carbohydrates":{"value":13},"fiber":{"value":0},"sugars":{"value":12},"protein":{"value":7.99},"calcium":{"value":331},"iron":{"value":0},"potassium":{"value":430},"addedSugar":{"value":0},"calories":{"value":170}}}
                                                                                                                                                                                                                    
                                                                                                    

按ID搜索食物 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/1218/food+nutrition+information+api/1059/search+food+by+id&fcid=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 食品营养信息 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

🚀 企业版

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

食品营养信息 API FAQs

“按关键词搜索食品”接口返回与搜索词匹配的食品项目列表,包括卡路里含量、蛋白质、脂肪和碳水化合物含量等详细信息。“按ID搜索食品”接口检索由其FDC ID识别的特定食品项目的详细营养信息

响应中的关键字段包括“描述”(食品名称) “品牌名称”(制造商) “食品类别”(食品类型) “每份量”(每份的数量)和“食品营养成分”(营养成分 breakdown,如卡路里 蛋白质 脂肪 和碳水化合物)

响应数据采用JSON格式结构化 包含像“totalHits”和“currentPage”这样的元数据 然后是一个食品项目数组 每个项目包含详细属性比如“fdcId”“description”和“foodNutrients” 列出具体的营养价值

“按关键字搜索食物”端点提供多种食物的基本营养信息,而“按ID搜索食物”端点则提供单种食物的详细营养数据,包括成分、份量和营养成分细分

“通过关键字搜索食品”接口接受参数,如“query”(食品关键字)、“pageNumber”(用于分页)和“numberOfResultsPerPage”(限制结果数量)。“通过ID搜索食品”接口需要食品项的“fdcId”

数据准确性通过定期更新和从可靠数据库获取维持。该API确保营养信息是最新的,并反映最新的食品行业标准和实践

典型的使用案例包括膳食计划 饮食跟踪 餐厅菜单分析和产品开发 用户可以利用API创建个性化营养计划或分析各种食品的营养成分

用户可以通过将返回的数据整合到应用程序中来跟踪饮食摄入、生成餐 Meal计划或在食品相关服务中提供营养信息。结构化的格式便于解析和在用户界面中显示

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API


您可能还喜欢