Edamam API
Recipe search and nutrition analysis APIs with free developer tiers.
What it does
Edamam is a suite of three food APIs: Recipe Search (2M+ recipes with diet/health/nutrient filters), Nutrition Analysis (free-text ingredient list → full nutrition), and the Food Database (branded and generic foods with nutrient profiles). Each is licensed and billed separately.
Base URL
Authentication
Each API has its own app_id and app_key, passed as query parameters. The Recipe Search API v2 also requires an Edamam-Account-User header identifying the end user.
Code examples
curl -s "https://api.edamam.com/api/recipes/v2?type=public&q=chicken%20curry&app_id=$ID&app_key=$KEY&health=gluten-free" \ -H "Edamam-Account-User: demo-user"
import requests
r = requests.get("https://api.edamam.com/api/nutrition-data", params={
"app_id": NUTR_ID, "app_key": NUTR_KEY,
"ingr": "1 cup rice, 2 tbsp olive oil"}, timeout=10)
d = r.json()
print(d["calories"], "kcal", d["totalNutrients"]["PROCNT"]["quantity"], "g protein")Rate limits & quotas
Free tiers vary by API — typically around 10 requests/minute and a monthly cap in the low tens of thousands, non-commercial. Recipe Search free returns limited fields unless you page with the provided _links.next.href. Over the limit: HTTP 429; a wrong plan/feature: 401/403.
Key response fields
| (Recipe) hits[].recipe.label / url / image | Recipe title, source link, photo |
| (Recipe) hits[].recipe.totalNutrients / dietLabels / healthLabels | Nutrition and tags |
| (Recipe) _links.next.href | Full URL for the next page |
| (Nutrition) calories / totalNutrients / totalDaily | Analysed totals and %DV |
| (Food DB) hints[].food.nutrients | Per-100g nutrient profile |
Common errors
| 401 / 403 | Wrong app_id/app_key pair for that API, or feature not in your plan. |
| 400 "Unable to determine ..." | Nutrition API could not parse an ingredient line — rephrase it. |
| 429 | Per-minute or monthly limit exceeded. |
| (missing Edamam-Account-User) | Recipe Search v2 rejects requests without that header. |
When to use it (and alternatives)
Best when nutrition analysis of free-text ingredients is the core need — Edamam’s parser is strong. For recipe discovery with meal planning, Spoonacular is more of an all-in-one; for authoritative raw nutrient data, USDA FoodData Central.
FAQ
Why do I need three sets of keys?
Edamam sells Recipe Search, Nutrition Analysis and the Food Database as separate products. Sign up for each one you need; the credentials are not interchangeable.
What is the Edamam-Account-User header for?
Recipe Search API v2 uses it to attribute usage to individual end users of your app. Send a stable per-user identifier; requests without the header are rejected.
Is the free tier commercial-safe?
No — the free plans are for development and non-commercial use. Commercial deployment requires a paid plan and, for recipes, agreeing to the attribution/link rules.
New to APIs?
Short guides for working with this API — and any other.