Overview
The Edamam Nutrition Analysis API parses natural-language food descriptions such as "1 cup of oatmeal" or "200g chicken breast" and returns detailed nutritional breakdowns including calories, macros, vitamins, and minerals. You need a free app ID and app key from the Edamam developer portal to use it. It is ideal for diet apps, meal planners, or any tool where users input food descriptions.
Beginner Tip
The API parses ingredient strings in natural language — you can send phrases like "2 tbsp olive oil" and it will extract the quantity, unit, and food automatically.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"recipe": "Chicken Stir Fry",
"calories": 380,
"protein_g": 32,
"carbs_g": 28,
"fat_g": 14,
"ingredients": [
"chicken breast",
"bell pepper",
"soy sauce",
"garlic"
],
"prep_time_minutes": 20
} Field Reference
calories Total calories for all ingredients combined. totalWeight Total weight in grams of all ingredients. totalNutrients Object keyed by nutrient code (e.g., PROCNT for protein) with label, quantity, and unit. totalDaily Percentage of daily recommended intake for each nutrient, based on a 2000-calorie diet. ingredients Parsed ingredient list with each item's nutritional breakdown and confidence score. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://api.edamam.com/api/nutrition-details?app_id=YOUR_APP_ID&app_key=YOUR_APP_KEY";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Recipes Using Edamam nutrition
Build something with this API. Each recipe includes step-by-step instructions and code outlines.
Similar APIs
View All →Chomp
The Chomp API provides detailed nutritional data for millions of grocery products and restaurant menu items, including macros, ingredients, and allergen flags.
Edamam recipes
⭐ Beginner's PickThe Edamam Recipe Search API lets you search a database of over 2 million recipes filtered by ingredients, diet labels such as vegan or keto, meal type, and cuisine.
Kroger
The Kroger API gives developers access to product catalog data, pricing, store locations, and promotions from one of the largest US grocery chains.
LCBO
The LCBO API provides access to the Liquor Control Board of Ontario product catalog, including wines, spirits, and beers sold in Ontario, Canada.
Spoonacular
Spoonacular is a comprehensive food and recipe API that provides recipe search, ingredient data, nutritional analysis, and meal planning features.