Food Text Analysis API

Food Text Analysis API

Food Text Analysis API utilizes Natural Language Processing to analyze and understand the nutritional content of food items described in text form. The API works by using semantically structured data to accurately identify and extract nutritional information from unstructured text.

API description

About the API:

The Food Text Analysis API is a powerful tool for extracting nutritional information from food items described in text form. By utilizing Natural Language Processing (NLP) and semantically structured data, the API can accurately identify and extract key nutritional information from unstructured text. This allows developers to analyze and understand the nutritional content of food items in a simple and intuitive way.

Whether you are creating a food-tracking app, a meal-planning platform, or a nutrition education resource, the Food Text Analysis API provides the information you need to build a useful and informative tool. With its advanced NLP algorithms and semantically structured data, the API can accurately extract nutritional information from a wide range of food-related text, including ingredient lists, recipes, restaurant menus, and more.

The API is easy to integrate into your existing workflow and requires no additional data entry or manual work on your part. Simply send the API a piece of text containing food-related information and receive a detailed report on the nutritional content of the food items described in that text. Whether you need to analyze a single piece of text or large volumes of data, the Food Text Analysis API is a fast and reliable solution for your needs


What this API receives and what your API provides (input/output)?

Pass the UPC code that you want to retrieve its nutritional information. 


What are the most common uses cases of this API?

  1. Food tracking and calorie counting app - The API can be used to retrieve nutritional information for food items, allowing users to track their daily calorie intake and make informed decisions about their eating habits.

  2. Meal planning and recipe creation platform - The API can provide nutritional information for ingredients and finished dishes, helping users make healthier food choices and create balanced meals.

  3. Nutrition education resource - The API can be used to create interactive nutrition education resources that provide detailed information about the nutritional content of various foods.

  4. Fitness and wellness app - The API can be used to provide users with information on the calorie, protein, fat, and carb content of foods, allowing them to create personalized nutrition and exercise plans.

  5. Food industry - Food manufacturers and restaurants can use the API to ensure that their products are accurately labeled and meet nutritional standards.

  6. Healthcare and medical research - The API can be used by healthcare providers and medical researchers to gather and analyze data on the nutritional content of foods and its impact on human health.


Are there any limitations to your plans?

Besides API call limitations per month, there is a limitation of 100 requests per day on paid plans. 

API Documentation


Extracts information from a short unstructured food text – usually an ingredient line and returns: - Structured data for the text – quantity, measure and food, if available - Diet, health and allergen labels for the text - With the build in food logging feature it allows for change of context. For example “rice” will normallly be matched to raw rice while with the food logging feature on it will match to ready to eat ‘cooked rice’



                                                                                                                                                                                                                            {"uri":"","calories":122,"totalWeight":86.0,"dietLabels":["LOW_CARB","LOW_SODIUM"],"healthLabels":["SUGAR_CONSCIOUS","LOW_POTASSIUM","KIDNEY_FRIENDLY","KETO_FRIENDLY","VEGETARIAN","PESCATARIAN","PALEO","SPECIFIC_CARBS","DAIRY_FREE","GLUTEN_FREE","WHEAT_FREE","MILK_FREE","PEANUT_FREE","TREE_NUT_FREE","SOY_FREE","FISH_FREE","SHELLFISH_FREE","PORK_FREE","RED_MEAT_FREE","CRUSTACEAN_FREE","CELERY_FREE","MUSTARD_FREE","SESAME_FREE","LUPINE_FREE","MOLLUSK_FREE","ALCOHOL_FREE","NO_OIL_ADDED","NO_SUGAR_ADDED","FODMAP_FREE","KOSHER"],"cautions":[],"totalNutrients":{"ENERC_KCAL":{"label":"Energy","quantity":122.98,"unit":"kcal"},"FAT":{"label":"Total lipid (fat)","quantity":8.1786,"unit":"g"},"FASAT":{"label":"Fatty acids, total saturated","quantity":2.68836,"unit":"g"},"FATRN":{"label":"Fatty acids, total trans","quantity":0.03268,"unit":"g"},"FAMS":{"label":"Fatty acids, total monounsaturated","quantity":3.14588,"unit":"g"},"FAPU":{"label":"Fatty acids, total polyunsaturated","quantity":1.64346,"unit":"g"},"CHOCDF":{"label":"Carbohydrate, by difference","quantity":0.6192,"unit":"g"},"":{"label":"Carbohydrates (net)","quantity":0.6192,"unit":"g"},"FIBTG":{"label":"Fiber, total dietary","quantity":0.0,"unit":"g"},"SUGAR":{"label":"Sugars, total","quantity":0.3182,"unit":"g"},"PROCNT":{"label":"Protein","quantity":10.8016,"unit":"g"},"CHOLE":{"label":"Cholesterol","quantity":319.92,"unit":"mg"},"NA":{"label":"Sodium, Na","quantity":122.12,"unit":"mg"},"CA":{"label":"Calcium, Ca","quantity":48.16,"unit":"mg"},"MG":{"label":"Magnesium, Mg","quantity":10.32,"unit":"mg"},"K":{"label":"Potassium, K","quantity":118.67999999999999,"unit":"mg"},"FE":{"label":"Iron, Fe","quantity":1.505,"unit":"mg"},"ZN":{"label":"Zinc, Zn","quantity":1.1094,"unit":"mg"},"P":{"label":"Phosphorus, P","quantity":170.28,"unit":"mg"},"VITA_RAE":{"label":"Vitamin A, RAE","quantity":137.6,"unit":"µg"},"VITC":{"label":"Vitamin C, total ascorbic acid","quantity":0.0,"unit":"mg"},"THIA":{"label":"Thiamin","quantity":0.0344,"unit":"mg"},"RIBF":{"label":"Riboflavin","quantity":0.39302000000000004,"unit":"mg"},"NIA":{"label":"Niacin","quantity":0.0645,"unit":"mg"},"VITB6A":{"label":"Vitamin B-6","quantity":0.1462,"unit":"mg"},"FOLDFE":{"label":"Folate, DFE","quantity":40.42,"unit":"µg"},"FOLFD":{"label":"Folate, food","quantity":40.42,"unit":"µg"},"FOLAC":{"label":"Folic acid","quantity":0.0,"unit":"µg"},"VITB12":{"label":"Vitamin B-12","quantity":0.7654,"unit":"µg"},"VITD":{"label":"Vitamin D (D2 + D3)","quantity":1.72,"unit":"µg"},"TOCPHA":{"label":"Vitamin E (alpha-tocopherol)","quantity":0.903,"unit":"mg"},"VITK1":{"label":"Vitamin K (phylloquinone)","quantity":0.258,"unit":"µg"},"WATER":{"label":"Water","quantity":65.489,"unit":"g"}},"totalDaily":{"ENERC_KCAL":{"label":"Energy","quantity":6.149,"unit":"%"},"FAT":{"label":"Fat","quantity":12.582461538461537,"unit":"%"},"FASAT":{"label":"Saturated","quantity":13.4418,"unit":"%"},"CHOCDF":{"label":"Carbs","quantity":0.20639999999999997,"unit":"%"},"FIBTG":{"label":"Fiber","quantity":0.0,"unit":"%"},"PROCNT":{"label":"Protein","quantity":21.6032,"unit":"%"},"CHOLE":{"label":"Cholesterol","quantity":106.64,"unit":"%"},"NA":{"label":"Sodium","quantity":5.088333333333333,"unit":"%"},"CA":{"label":"Calcium","quantity":4.816,"unit":"%"},"MG":{"label":"Magnesium","quantity":2.4571428571428573,"unit":"%"},"K":{"label":"Potassium","quantity":2.5251063829787235,"unit":"%"},"FE":{"label":"Iron","quantity":8.36111111111111,"unit":"%"},"ZN":{"label":"Zinc","quantity":10.085454545454546,"unit":"%"},"P":{"label":"Phosphorus","quantity":24.325714285714287,"unit":"%"},"VITA_RAE":{"label":"Vitamin A","quantity":15.28888888888889,"unit":"%"},"VITC":{"label":"Vitamin C","quantity":0.0,"unit":"%"},"THIA":{"label":"Thiamin (B1)","quantity":2.8666666666666667,"unit":"%"},"RIBF":{"label":"Riboflavin (B2)","quantity":30.232307692307696,"unit":"%"},"NIA":{"label":"Niacin (B3)","quantity":0.403125,"unit":"%"},"VITB6A":{"label":"Vitamin B6","quantity":11.246153846153845,"unit":"%"},"FOLDFE":{"label":"Folate equivalent (total)","quantity":10.105,"unit":"%"},"VITB12":{"label":"Vitamin B12","quantity":31.891666666666666,"unit":"%"},"VITD":{"label":"Vitamin D","quantity":11.466666666666667,"unit":"%"},"TOCPHA":{"label":"Vitamin E","quantity":6.02,"unit":"%"},"VITK1":{"label":"Vitamin K","quantity":0.215,"unit":"%"}}}

Food Analysis - Endpoint Features
Object Description
ingr [Required] An ingredient line with quantity and measure

API Access Key & Authentication

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 Text Analysis 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.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Custom quote

Need more? We offer unlimited API calls, Request Quote

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
 Response Time

API Provider: SoftDev

Useful links:



Related APIs