The Food Nutrition Information API is a comprehensive resource for nutritional information on a wide range of foods. Whether you are looking to track your diet and nutrition, create a meal planning platform, or build a food tracking app, this API provides the information you need to achieve your goals.
The API allows you to search and find foods based on their nutritional information, including calorie count, protein, fat, and carbohydrate content. The data is carefully sourced and regularly updated, ensuring that users have access to the most accurate and up-to-date information. With its easy-to-use interface, the API is designed to be accessible to developers of all skill levels, from those just starting out to experienced professionals.
In addition to its comprehensive database of food items, the Food Nutrition Information API also provides detailed information on the nutritional content of each food item, making it easy for users to make informed decisions about their eating habits. Whether you need to track your daily calorie intake, monitor your nutrient intake, or simply want to learn more about the foods you eat, this API provides the information you need to achieve your goals.
Pass the food keyword that you want to retrieve, and receive relevant nutritional information.
Meal planning and recipe creation - users can access nutrition information for specific ingredients and foods to create balanced meals and healthy recipes.
Food tracking and diet management - individuals can track their daily calorie intake and nutrient consumption using the API to meet their dietary goals.
Restaurant menu analysis - restaurants can use the API to analyze the nutritional content of menu items and make informed decisions about menu development and labeling.
Fitness and weight management - fitness and weight loss apps can utilize the API to provide personalized nutrition plans and track progress based on users' caloric and nutrient needs.
Food labeling and product development - food and beverage manufacturers can access accurate nutrition information for their products to comply with labeling requirements and develop healthier options.
Healthcare and wellness - health professionals and wellness centers can use the API to provide personalized nutrition recommendations and support for individuals with specific health conditions.
Besides API call limitations per month, there is a limitation of 100 requests per day on paid plans.
Search for foods using keywords.
Object | Description |
---|---|
query |
[Required] |
pageSize |
[Optional] |
pageNumber |
[Optional] |
brandOwner |
[Optional] |
{"totalHits":124425,"currentPage":1,"totalPages":12443,"pageList":[1,2,3,4,5,6,7,8,9,10],"foodSearchCriteria":{"query":"milk","generalSearchInput":"milk","pageNumber":1,"numberOfResultsPerPage":50,"pageSize":10,"requireAllWords":false},"foods":[{"fdcId":1970473,"description":"MILK","lowercaseDescription":"milk","dataType":"Branded","gtinUpc":"085239043059","publishedDate":"2021-07-29","brandOwner":"Target Stores","brandName":"GOOD & GATHER","subbrandName":"ORGANIC","ingredients":"GRADE A ORGANIC MILK, VITAMIN D3**.","marketCountry":"United States","foodCategory":"Milk","modifiedDate":"2019-08-01","dataSource":"LI","packageWeight":"0.5 GAL/1.89 L","servingSizeUnit":"ml","servingSize":240,"tradeChannels":["NO_TRADE_CHANNEL"],"allHighlightFields":"<b>Ingredients</b>: GRADE A ORGANIC <em>MILK</em>, VITAMIN D3**.","score":712.01825,"microbes":[],"foodNutrients":[{"nutrientId":1003,"nutrientName":"Protein","nutrientNumber":"203","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":3.33,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":600,"indentLevel":1,"foodNutrientId":22497025,"percentDailyValue":16},{"nutrientId":1004,"nutrientName":"Total lipid (fat)","nutrientNumber":"204","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":3.75,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":800,"indentLevel":1,"foodNutrientId":22497026,"percentDailyValue":12},{"nutrientId":1005,"nutrientName":"Carbohydrate, by difference","nutrientNumber":"205","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":5.42,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":1110,"indentLevel":2,"foodNutrientId":22497027,"percentDailyValue":5},{"nutrientId":1008,"nutrientName":"Energy","nutrientNumber":"208","unitName":"KCAL","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":300,"indentLevel":1,"foodNutrientId":22497028},{"nutrientId":2000,"nutrientName":"Sugars, total including NLEA","nutrientNumber":"269","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":5,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":1510,"indentLevel":3,"foodNutrientId":22497029},{"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":22497030,"percentDailyValue":0},{"nutrientId":1087,"nutrientName":"Calcium, Ca","nutrientNumber":"301","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":138,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5300,"indentLevel":1,"foodNutrientId":22497031,"percentDailyValue":25},{"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":22497032,"percentDailyValue":0},{"nutrientId":1091,"nutrientName":"Phosphorus, P","nutrientNumber":"305","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":104,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5600,"indentLevel":1,"foodNutrientId":22497033,"percentDailyValue":20},{"nutrientId":1092,"nutrientName":"Potassium, K","nutrientNumber":"306","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":179,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5700,"indentLevel":1,"foodNutrientId":22497034,"percentDailyValue":10},{"nutrientId":1093,"nutrientName":"Sodium, Na","nutrientNumber":"307","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":58,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":5800,"indentLevel":1,"foodNutrientId":22497035,"percentDailyValue":6},{"nutrientId":1166,"nutrientName":"Riboflavin","nutrientNumber":"405","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":0.208,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":6500,"indentLevel":1,"foodNutrientId":22497036,"percentDailyValue":40},{"nutrientId":1178,"nutrientName":"Vitamin B-12","nutrientNumber":"418","unitName":"UG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":0.54,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":7300,"indentLevel":1,"foodNutrientId":22497037,"percentDailyValue":50},{"nutrientId":1235,"nutrientName":"Sugars, added","nutrientNumber":"539","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":1540,"indentLevel":0,"foodNutrientId":22497038,"percentDailyValue":0},{"nutrientId":1253,"nutrientName":"Cholesterol","nutrientNumber":"601","unitName":"MG","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":15,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":15700,"indentLevel":1,"foodNutrientId":22497039,"percentDailyValue":12},{"nutrientId":1257,"nutrientName":"Fatty acids, total trans","nutrientNumber":"605","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":15400,"indentLevel":1,"foodNutrientId":22497040},{"nutrientId":1258,"nutrientName":"Fatty acids, total saturated","nutrientNumber":"606","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":2.08,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":9700,"indentLevel":1,"foodNutrientId":22497041,"percentDailyValue":25},{"nutrientId":1292,"nutrientName":"Fatty acids, total monounsaturated","nutrientNumber":"645","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":1.04,"foodNutrientSourceId":9,"foodNutrientSourceCode":"12","foodNutrientSourceDescription":"Manufacturer's analytical; partial documentation","rank":11400,"indentLevel":1,"foodNutrientId":22497042},{"nutrientId":1293,"nutrientName":"Fatty acids, total polyunsaturated","nutrientNumber":"646","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":12900,"indentLevel":1,"foodNutrientId":22497043}],"finalFoodInputFoods":[],"foodMeasures":[],"foodAttributes":[],"foodAttributeTypes":[],"foodVersionIds":[]},{"fdcId":2062196,"description":"MILK","lowercaseDescription":"milk","dataType":"Branded","gtinUpc":"011110502506","publishedDate":"2021-10-28","brandOwner":"The Kroger Co.","brandName":"COLORADO PROUD","ingredients":"MILK, VITAMIN D3.","marketCountry":"United States","foodCategory":"Milk","modifiedDate":"2017-07-14","dataSource":"LI","packageWeight":"1 GAL/3.78 L","servingSizeUnit":"ml","servingSize":240,"tradeChannels":["NO_TRADE_CHANNEL"],"allHighlightFields":"<b>Ingredients</b>: <em>MILK</em>, VITAMIN D3.","score":712.01825,"microbes":[],"foodNutrients":[{"nutrientId":1003,"nutrientName":"Protein","nutrientNumber":"203","unitName":"G","derivationCode":"LCCS","derivationDescription":"Calculated from value per serving size measure","derivationId":70,"value":3.33,"foodNutrientSourceId":9,"foodNutrient...
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'
Retrieves a single food item by an FDC ID.
{"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}}}
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'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Food Nutrition Information API REST API, simply include your bearer token in the Authorization header.
Header | Description |
---|---|
Authorization
|
[Required] Should be Bearer access_key . See "Your API Access Key" above when you are subscribed. |
No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.
Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.
Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldβs most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]
Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further
Prices are based on a recurring monthly subscription depending on the plan selected β plus overage fees applied when a developer exceeds a planβs quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.
Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.
You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]
Service Level:
100%
Response Time:
794ms
Service Level:
100%
Response Time:
564ms
Service Level:
100%
Response Time:
1,287ms
Service Level:
100%
Response Time:
1,662ms
Service Level:
100%
Response Time:
5,438ms
Service Level:
100%
Response Time:
709ms
Service Level:
100%
Response Time:
597ms