The Food Data API is a powerful tool that provides users with comprehensive nutritional information on various food items. This API allows users to search for specific food items and retrieve detailed information about the nutritional content of each item. With access to a vast database of food ingredients, this API provides users with the ability to analyze and understand the nutritional value of their food choices.
The Food Data API provides information such as calorie count, macronutrients (fat, protein, and carbohydrates), vitamins, minerals, and other essential nutrients for each food item. Users can utilize this information to make informed decisions about their diets, track their daily nutrient intake, and create meal plans tailored to their specific dietary needs.
With its user-friendly interface and extensive database, the Food Data API is an excellent tool for nutritionists, dietitians, fitness enthusiasts, and anyone looking to maintain a healthy lifestyle. This API is also beneficial for food-related businesses such as restaurants, grocery stores, and food delivery services that require accurate nutritional information for their products.
In summary, the Food Data API is a valuable resource for anyone looking to improve their nutrition or make informed food choices. It provides an extensive database of food ingredients and their nutritional information, making it an essential tool for maintaining a healthy lifestyle.
It will receive a parameter and provide you with a JSON.
Fitness Apps: Fitness apps can use the Food Data API to track the nutritional intake of their users, helping them to meet their fitness goals.
Nutritionists: Nutritionists can use the Food Data API to provide accurate nutritional information to their clients, helping them to make informed decisions about their diet.
Dietitians: Dietitians can use the Food Data API to design personalized meal plans for their clients based on their specific dietary needs.
Restaurants: Restaurants can use the Food Data API to provide customers with accurate nutritional information about their menu items, helping them to make healthier choices.
Grocery Stores: Grocery stores can use the Food Data API to provide customers with nutritional information about the products they sell, making it easier for them to make informed buying decisions.
Food Delivery Services: Food delivery services can use the Food Data API to provide customers with accurate nutritional information about the meals they deliver.
Fitness Trackers: Fitness trackers can use the Food Data API to track the nutritional intake of their users, helping them to achieve their fitness goals.
Healthcare Apps: Healthcare apps can use the Food Data API to provide patients with accurate nutritional information, helping them to manage chronic conditions such as diabetes.
Recipe Websites: Recipe websites can use the Food Data API to provide users with nutritional information about the recipes they share, helping them to make healthier choices.
Education: Educational apps and websites can use the Food Data API to teach students about nutrition and the importance of making healthy food choices.
Basic Plan: 5,000 API Calls.
Pro Plan: 30,000 API Calls.
Pro Plus Plan: 100,000 API Calls.
Premium Plan: 150,000 API Calls.
The "Get Food Data" endpoint is a powerful tool that enables users to retrieve comprehensive nutritional information on a specific food item. By simply sending a search query to the endpoint with the name of the desired food item, users can access thousands of food ingredients and their nutritional information. This endpoint provides detailed information on calorie counts, macronutrients (fat, protein, and carbohydrates), vitamins, minerals, and other essential nutrients for each food item. With the "Get Food Data" endpoint, users can make informed decisions about their diets, track their daily nutrient intake, and create meal plans tailored to their specific dietary needs.
Required Parameter: nutrientSearch
For example: Chocolate
{"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'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Food Data API returns comprehensive nutritional information for food items, including calorie counts, macronutrients (fat, protein, carbohydrates), vitamins, minerals, and serving sizes. The data is structured in JSON format for easy integration.
Key fields in the response include food description, energy (kcal), protein (g), carbohydrates (g), sugars (g), fiber (g), fat (g), and various vitamins and minerals. Each food item is uniquely identified by a food code.
The response data is organized in a JSON structure with a "total" count of results and an array of "result" objects. Each object contains detailed nutritional information for a specific food item, making it easy to parse and utilize.
The API provides detailed nutritional information, including macronutrient values, vitamin and mineral content, serving sizes, and food descriptions. This data helps users analyze and understand their dietary choices.
The data is sourced from reputable nutritional databases and food composition tables. Regular updates and quality checks ensure the accuracy and reliability of the nutritional information provided.
Users can customize their requests by using the "nutrientSearch" parameter to specify the food item they want to retrieve information about. This allows for targeted searches based on specific dietary needs or interests.
Typical use cases include tracking nutritional intake in fitness apps, creating personalized meal plans by dietitians, providing nutritional information in restaurants, and educating users about healthy eating through recipe websites.
Users can utilize the returned data to track daily nutrient intake, compare food items, create meal plans, and make informed dietary choices. The detailed breakdown of nutrients helps in understanding the nutritional value of foods.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
742ms
Service Level:
100%
Response Time:
1,673ms
Service Level:
100%
Response Time:
1,596ms
Service Level:
100%
Response Time:
734ms
Service Level:
100%
Response Time:
1,239ms
Service Level:
95%
Response Time:
680ms
Service Level:
100%
Response Time:
841ms
Service Level:
100%
Response Time:
59ms
Service Level:
100%
Response Time:
268ms
Service Level:
100%
Response Time:
57ms