Public APIs
Edamam nutrition favicon

Edamam nutrition

Food & Drink

Nutrition Analysis.

Edamam nutrition's website screenshot

About Edamam nutrition

The Nutrition Analysis API from Edamam is accessed via HTTPS requests to api.edamam.com and provides natural language processing for extracting food entities, measures, and quantities from unstructured text. It performs full analysis of food recipes in real time, including nutrition computation, health and diet label assignment, and recipe classification by cuisine, meal, and dish type. The API adjusts ingredient quantities to account for cooking processes, such as calculating oil absorption in fried recipes or excluding solids from stock and broth recipes.

A food logging mode can be enabled via a "nutrition-type" parameter, allowing submission of food items without specified quantity (matched to expected serving sizes) and restricting matches to foods ready for direct consumption. The API supports active user tracking through a configurable app_id and a mandatory user ID header, with user IDs restricted to alphanumeric characters, hyphens, underscores, and periods up to 30 characters. It is also integrated into the Edamam Platform Assistant, a chatbot interface that translates natural language queries into API calls.

Responses include structured nutrient data (absolute amounts and percent daily values across nutrients like calcium, protein, vitamins, and fatty acids), ingredient details (food ID, quantity, measure, weight, and shopping aisle category), and generated diet and health labels. Diet labels describe nutrient-level characteristics such as balanced, high-fiber, high-protein, low-carb, low-fat, and low-sodium. Health labels describe ingredient-level characteristics such as allergen-free status (dairy-free, egg-free, gluten-free, peanut-free, and others), diet compatibility (keto-friendly, paleo, kosher, Mediterranean, DASH), and other attributes like alcohol content. The API is intended for developers building recipe analysis, food logging, or conversational food-query applications.

Key features

  • Extracts food entities, measures, and quantities from unstructured text using NLP
  • Computes full nutrition analysis for recipes in real time
  • Generates diet labels (e.g. Balanced, Low-Carb, High-Protein) and health labels (e.g. Gluten-Free, Kosher, Vegan)
  • Adjusts ingredient quantities for cooking effects like oil absorption in fried recipes
  • Supports food logging mode for matching consumable items without specifying quantity
  • Includes a Platform Assistant chatbot for constructing API calls from natural language queries

Frequently asked questions

What can the Edamam Nutrition Analysis API do?

It performs full nutrition analysis of recipes in real time, including entity extraction, quantity computation, and applicable health/diet labeling, and can also extract food entities with measures from unstructured text.

What is the base URL for API requests?

The base URL is https://api.edamam.com, with request paths appended to it such as /api/nutrition-details.

Does it support food logging use cases?

Yes, food logging can be enabled by setting the nutrition-type parameter to logging in the Nutrition Data GET request, allowing quantity-less item matching for consumable foods.

Is there a chatbot interface available?

Yes, the Edamam Platform Assistant is a chatbot integrated into four of Edamam's APIs, including the Nutrition Analysis API, that converts natural language queries into API calls.

Can I track individual user activity through the API?

Yes, Active User Tracking is available if your app_id is configured for it, requiring a user ID header with allowed characters limited to letters, numbers, hyphens, underscores, and periods up to 30 characters.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product