Food.com Recipe API: How to Get Nutrition and Protein Data as JSON (2027)
Food.com has no official recipe API. Here is what its pages and the Kaggle Food.com datasets really contain, and how to get recipe nutrition and protein as JSON from USDA FoodData Central, Edamam, Spoonacular and Nutritionix, with real requests, a worked per-serving example and prices checked on 8 November 2026.
Food.com has no official recipe API. Get nutrition and protein JSON from USDA FoodData Central (free, CC0), Edamam or Spoonacular, with real code and data.
Quick answer: Food.com does not offer an official recipe API: there is no developer portal, no API key and no documented nutrition endpoint. Its recipe pages do embed schema.org nutrition data in JSON-LD, and two Kaggle datasets hold Food.com recipes with nutrition fields, but Food.com's visitor agreement limits its content to personal, non-commercial use. For an app, use a licensed source: USDA FoodData Central is free and public domain (CC0) with 1,000 requests an hour, Edamam's Nutrition Analysis API turns an ingredient list into calories and protein from $29 a month, and Spoonacular returns recipes with per-serving nutrition, starting with a free 50-point daily plan. Make An App Like checked these docs and prices on 8 November 2026.
A developer's guide to recipe nutrition and protein data as JSON. Updated 8 November 2026 with live API calls, current prices and the real structure of the Food.com datasets.
Quick Answer: Your Options for Food.com Nutrition Data
There is no Food.com recipe API. If you need recipe nutrition, calories and protein as JSON, these are your real options, checked on 8 November 2026:
| Option | What you get | Cost | Commercial app? |
|---|---|---|---|
| Food.com recipe pages (JSON-LD) | Calories, fat, carbs, protein and more as strings without units | Free to view | No: personal, non-commercial use only |
| Kaggle Food.com datasets | 180K+ or 522K recipes with nutrition columns | Free download | Research use; rights in the recipes are not cleared |
| USDA FoodData Central API | Nutrients per 100 g for single foods | Free, CC0 | Yes |
| Edamam Nutrition Analysis API | Nutrition for a free-text ingredient list | From $29 a month | Yes, on its terms |
| Spoonacular API | Recipes plus per-serving nutrition | Free 50 points a day; paid from $29 a month | Yes, on its terms |
| Nutritionix API | Natural-language and barcode lookups | From $499 a month, billed annually | Yes, on its terms |
Key Takeaways
- No official Food.com API exists. We found no developer program, and its /api and /developers paths return 404.
- Food.com pages carry JSON-LD nutrition, but values are plain strings with no units, and its visitor agreement allows personal, non-commercial use only.
- The main Kaggle dataset stores nutrition as percent daily values, not grams, apart from calories.
- USDA FoodData Central is the best free source: CC0 public domain data and 1,000 requests an hour per IP address, but you sum ingredients yourself.
- Edamam and Spoonacular do the recipe math for you, from $29 a month; Spoonacular's free plan gives 50 points a day with a required backlink.
- Per-serving vs per-recipe is the classic bug: per_serving = per_recipe / servings. Store and label both.
Executive Summary
Food.com is one of the largest recipe communities online; its About page says it hosts more than 500,000 recipes. It belongs to the Discovery family of networks: its footer credits Warner Bros. Discovery, Inc. and its subsidiaries, and its visitor agreement names Discovery Communications, LLC. Despite that volume, Food.com does not publish a public REST API for recipes, nutrition facts, calories or protein.
For developers building recipe apps, fitness trackers or meal planners, that leaves three paths. You can study the data Food.com already exposes (JSON-LD on recipe pages and the Kaggle datasets) for research. You can compute nutrition yourself from USDA FoodData Central, which is free and public domain. Or you can pay an API such as Edamam, Spoonacular or Nutritionix that does the ingredient parsing and per-serving math. This guide shows the real JSON for each, with live requests, a worked example and current prices.
Does Food.com Have a Public Recipe API?
No. On 8 November 2026 we found no API or developer link in Food.com's footer, and the paths /api, /developers, /developer and /api-docs on www.food.com all returned 404. The developer.food.com subdomain does not resolve, and api.food.com simply serves the normal consumer homepage. Food.com's robots.txt allows general crawlers on /recipe/ pages but blocks paths such as /search/ and /mobile/api/, and it blocks AI crawlers including GPTBot, ClaudeBot, CCBot and PerplexityBot from the whole site.
The legal side matters more than the technical one. Food.com's terms link points to a visitor agreement that lets you display and print content for your personal, non-commercial use and requires prior written permission for other reproduction or distribution. A plain request for the homepage returns the full page without a challenge (the site is served through Akamai), so the barrier to a live commercial app is permission, not bot protection.
The Food.com datasets on Kaggle
What does exist is a pair of community datasets built from Food.com pages. They are useful for research, recommendation models and prototypes, not as a live API.
| Dataset | Size | Nutrition fields | License label on Kaggle |
|---|---|---|---|
| Food.com Recipes and Interactions (shuyangli94) | 180K+ recipes and 700K+ reviews covering 18 years (2000 to 2018); RAW_recipes.csv is about 295 MB | One "nutrition" list: calories, then six percent daily values | Data files © Original Authors |
| Food.com Recipes and Reviews (irkaal) | 522,517 recipes and 1,401,982 reviews from 271,907 users | Calories, FatContent, SaturatedFatContent, CholesterolContent, SodiumContent, CarbohydrateContent, FiberContent, SugarContent, ProteinContent, plus RecipeServings | CC0: Public Domain |
The first dataset comes from the EMNLP 2019 paper "Generating Personalized Recipes from Historical User Preferences" (arXiv 1909.00105), whose authors collected more than 230,000 recipes and 1 million interactions before filtering. The Kaggle data card for the Food.com Recipes and Interactions dataset defines its nutrition column, and the key detail for anyone who wants protein in grams is that only calories is an absolute number: protein, fat, sugar, sodium, saturated fat and carbohydrates are percent daily values, and the card does not say which daily values were used. This snippet turns one row into labeled JSON:
import ast
import json
import pandas as pd
recipes = pd.read_csv("RAW_recipes.csv")
# The nutrition column is a list stored as text, in this order (Kaggle data card):
# calories (#), total fat (PDV), sugar (PDV), sodium (PDV), protein (PDV),
# saturated fat (PDV), carbohydrates (PDV). PDV = percent daily value.
LABELS = ["calories", "total_fat_pdv", "sugar_pdv", "sodium_pdv",
"protein_pdv", "saturated_fat_pdv", "carbohydrates_pdv"]
def to_json(row):
values = ast.literal_eval(row["nutrition"])
return {"id": int(row["id"]), "name": row["name"], **dict(zip(LABELS, values))}
print(json.dumps(to_json(recipes.iloc[0]), indent=2))
The second dataset is an independent upload with absolute nutrition columns, but its units and per-serving basis are not documented, and the CC0 label is the uploader's choice: it cannot clear rights in content copied from Food.com. Use either dataset for research and prototypes, and get legal advice before shipping one inside a commercial product.
How Food.com Shows Nutrition and Protein Data (JSON-LD)
Food.com recipe pages embed a schema.org Recipe object in JSON-LD, the structured data search engines read, and its nutrition block uses the NutritionInformation type. This is the block from recipe 394639 as served on 8 November 2026, trimmed to the fields that matter:
{
"@context": "http://schema.org",
"@type": "Recipe",
"name": "Chicken Tikka Tomato Masala",
"recipeYield": "3 serving(s)",
"nutrition": {
"@type": "NutritionInformation",
"calories": "1142",
"fatContent": "96.9",
"saturatedFatContent": "50",
"cholesterolContent": "298.2",
"sodiumContent": "338.6",
"carbohydrateContent": "33.2",
"fiberContent": "7.6",
"sugarContent": "18.4",
"proteinContent": "42.1"
}
}
Three things to notice. The values are strings with no units, so "42.1" means 42.1 grams of protein only by convention. The page does not state whether the values are per serving or for the whole recipe, so compare them with recipeYield before you rely on them. And Food.com does not document how it calculates nutrition, so treat the numbers as estimates rather than lab values. Reading this block for a personal project is one thing; copying it at scale into an app is reproduction that the visitor agreement does not allow without permission.
A Recipe Nutrition JSON Structure for Protein, Calories, Carbs and Fat
Whichever source you use, store recipe nutrition in one normalized shape so your app does not care where the numbers came from. Here is the structure we recommend, filled with real values from the worked example later in this guide (USDA FoodData Central data, summed from raw ingredient weights):
{
"recipe": {
"title": "Chicken, black bean and corn soup",
"servings": 6,
"ingredients": [
{
"text": "1.5 lb boneless skinless chicken breast, raw",
"grams": 680,
"fdc_id": 171077
},
{
"text": "15 oz can black beans",
"grams": 425,
"fdc_id": 175188
},
{
"text": "1 cup frozen sweet corn kernels",
"grams": 136,
"fdc_id": 168398
}
]
},
"nutrition": {
"per_recipe": {
"calories_kcal": 1322,
"protein_g": 182.7,
"fat_g": 20.1,
"carbohydrates_g": 98.5,
"fiber_g": 32.2,
"sodium_mg": 1942
},
"per_serving": {
"calories_kcal": 220,
"protein_g": 30.5,
"fat_g": 3.4,
"carbohydrates_g": 16.4,
"fiber_g": 5.4,
"sodium_mg": 324
},
"basis": "raw ingredient weights, summed",
"data_source": "USDA FoodData Central, SR Legacy, retrieved 2026-11-08"
}
}
Field Reference
| Field | Type | Description |
|---|---|---|
| recipe.servings | integer | Number of servings the recipe yields. Used to derive per-serving values. |
| recipe.ingredients[].grams | number | Resolved weight of each ingredient, the input to every calculation. |
| recipe.ingredients[].fdc_id | integer | USDA FoodData Central ID, so you can re-check or refresh a value later. |
| nutrition.per_recipe | object | Totals for the whole recipe, used for storage and batch cooking. |
| nutrition.per_serving.protein_g | number | Protein in grams per serving, the main field for fitness apps. |
| nutrition.per_serving.sodium_mg | number | Sodium in milligrams per serving; note the unit differs from the gram fields. |
| nutrition.basis | string | How the numbers were produced, for example raw weights summed or lab analysis. |
| nutrition.data_source | string | The database and retrieval date, so stale values are easy to find. |
How to Get Recipe Nutrition Data From Alternative APIs
Since Food.com has no API, you call a different provider. The four below are the most common choices. Each exposes HTTP endpoints that accept a food name, a list of ingredients or a recipe ID, and each returns structured JSON with calories, protein, fat and carbohydrates.
USDA FoodData Central API
FoodData Central is the USDA's nutrient database and the reference source behind much of the market. The API is free with an api.data.gov key, and the FoodData Central API guide sets a default limit of 1,000 requests per hour per IP address; going over blocks the key for an hour. The shared DEMO_KEY is meant for testing only, at 30 requests per IP per hour and 50 per day. The data is in the public domain under CC0 1.0. The main endpoints are /v1/foods/search, /v1/food/{fdcId}, /v1/foods and /v1/foods/list, covering five data types: Foundation, SR Legacy, Survey (FNDDS), Branded and Experimental. It is the right choice when you want authoritative data and can handle recipe math yourself, because it returns nutrients per 100 g for single foods and does not parse recipes.
Edamam Nutrition Analysis API
Edamam sells several APIs, including Nutrition Analysis, Recipe Search, Food Database and Meal Planner. Nutrition Analysis is the one that matters here: you POST a recipe title and a free-text ingredient list, and it returns calories and nutrients for the whole recipe plus percent daily values. Pricing starts at $29 a month for Enterprise Basic Multilingual (2,500 recipes a month, with a 10-day trial) and $299 a month for Enterprise Core Multilingual (50,000 recipes), with a custom Unlimited tier. Only Meal Planner has a free plan today, Basic and Core do not allow data caching, and attribution is required.
Spoonacular Recipe and Food API
Spoonacular is recipe-first: it combines recipe search, ingredient parsing, nutrition and meal planning in one API, and its recipe endpoints return per-serving nutrition. Its free plan gives 50 points a day and requires a backlink, and calls stop when you run out. Paid plans are Cook at $29 a month (1,500 points a day), Culinarian at $79 (4,500) and Chef at $149 (10,000), and Enterprise starts at $300. Most calls cost about 1 point plus a little per result, and its terms do not allow scraping or storing its data beyond limited caching.
Nutritionix API
Nutritionix, now owned by Syndigo, specializes in natural-language and barcode lookups: its POST /v2/natural/nutrients endpoint takes text such as "1 cup of rice and 2 eggs", and /v2/search/item looks up a UPC. Its database lists 1,266,570 items, including 1,053,256 from 48,317 grocery brands and 202,837 from 860 restaurants. The public free tier has ended; plans are Starter at $499 a month, MVP at $999 and Unicorn from $1,850, billed annually, with a free Business Trial for up to 2 monthly active users.
Comparison Table
| Provider | Free access | Paid pricing (8 Nov 2026) | Best for |
|---|---|---|---|
| USDA FoodData Central | Free: 1,000 requests an hour per IP | Free | Authoritative single-food data you sum yourself |
| Edamam Nutrition Analysis | 10-day trial on the $29 plan | $29 to $299 a month, or custom | Free-text ingredient lists to recipe nutrition |
| Spoonacular | 50 points a day with a backlink | $29, $79 or $149 a month; Enterprise from $300 | Recipe search plus per-serving nutrition |
| Nutritionix | Business Trial, up to 2 users | $499 to $1,850+ a month, billed annually | Natural-language and barcode lookups |
Example Requests and JSON Responses
Below are working requests against the real endpoints. Replace DEMO_KEY and the placeholder keys with your own from each provider. The USDA responses are from live calls we made on 8 November 2026, trimmed to the fields shown.
USDA FoodData Central: Search, Then Fetch by fdcId
Search request:
curl -s "https://api.nal.usda.gov/fdc/v1/foods/search?api_key=DEMO_KEY&query=chicken%20breast%20raw&dataType=Foundation,SR%20Legacy&pageSize=3"
Response (trimmed):
{
"totalHits": 1918,
"currentPage": 1,
"foods": [
{
"fdcId": 2646170,
"description": "Chicken, breast, boneless, skinless, raw",
"dataType": "Foundation",
"publishedDate": "2023-10-26",
"foodNutrients": [
{ "nutrientName": "Protein", "nutrientNumber": "203", "unitName": "G", "value": 22.5 },
{ "nutrientName": "Total lipid (fat)", "nutrientNumber": "204", "unitName": "G", "value": 1.93 },
{ "nutrientName": "Energy (Atwater General Factors)", "nutrientNumber": "957", "unitName": "KCAL", "value": 106 }
]
}
]
}
Notice the gotcha: Foundation foods such as this one report energy as nutrient 957 or 958 (Atwater factors) and have no nutrient 208, so code that only reads "Energy" will find no calories. SR Legacy foods do use 208. Once you pick a food, fetch it by ID:
curl -s "https://api.nal.usda.gov/fdc/v1/food/171077?format=abridged&api_key=DEMO_KEY"
{
"fdcId": 171077,
"description": "Chicken, broiler or fryers, breast, skinless, boneless, meat only, raw",
"dataType": "SR Legacy",
"publicationDate": "2019-04-01",
"foodNutrients": [
{ "number": "208", "name": "Energy", "amount": 120, "unitName": "KCAL", "derivationDescription": "Calculated" },
{ "number": "203", "name": "Protein", "amount": 22.5, "unitName": "G", "derivationDescription": "Analytical" },
{ "number": "204", "name": "Total lipid (fat)", "amount": 2.62, "unitName": "G", "derivationDescription": "Analytical" },
{ "number": "307", "name": "Sodium, Na", "amount": 45, "unitName": "MG", "derivationDescription": "Analytical" }
]
}
Edamam Nutrition Analysis: POST an Ingredient List
Request (title and ingr are required; yield is a string):
curl -s -X POST "https://api.edamam.com/api/nutrition-details?app_id=YOUR_APP_ID&app_key=YOUR_APP_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Chicken, black bean and corn soup",
"yield": "6",
"ingr": ["1.5 lb boneless skinless chicken breast", "15 oz canned black beans", "1 cup frozen corn kernels"]
}'
Response shape (field names from Edamam's OpenAPI spec; values omitted because they depend on how Edamam parses your text):
{
"yield": 6,
"calories": "<integer, whole recipe>",
"totalWeight": "<grams>",
"totalNutrients": {
"ENERC_KCAL": { "label": "Energy", "quantity": "<number>", "unit": "kcal" },
"PROCNT": { "label": "Protein", "quantity": "<number>", "unit": "g" },
"FAT": { "label": "Fat", "quantity": "<number>", "unit": "g" },
"CHOCDF": { "label": "Carbs", "quantity": "<number>", "unit": "g" },
"FIBTG": { "label": "Fiber", "quantity": "<number>", "unit": "g" },
"NA": { "label": "Sodium", "quantity": "<number>", "unit": "mg" }
},
"totalDaily": { "PROCNT": { "label": "Protein", "quantity": "<percent>", "unit": "%" } }
}
Edamam reports totals for the whole recipe, so divide by yield for per-serving values, and use totalDaily for percent daily values.
Spoonacular: Nutrition by Recipe ID
Request (the recipe ID is the example from Spoonacular's docs):
curl -s "https://api.spoonacular.com/recipes/1003464/nutritionWidget.json?apiKey=YOUR_SPOONACULAR_KEY"
Response (trimmed, from Spoonacular's documentation):
{
"nutrients": [
{ "name": "Calories", "amount": 316.49, "unit": "kcal", "percentOfDailyNeeds": 15.82 },
{ "name": "Fat", "amount": 12.09, "unit": "g", "percentOfDailyNeeds": 18.6 },
{ "name": "Sodium", "amount": 279.1, "unit": "mg", "percentOfDailyNeeds": 12.13 },
{ "name": "Protein", "amount": 3.79, "unit": "g", "percentOfDailyNeeds": 7.57 }
]
}
Spoonacular's nutrition is per serving. On its recipe information endpoint, includeNutrition defaults to false, so add includeNutrition=true when you fetch a full recipe.
Per-Serving vs Per-Recipe Nutrition: A Worked Example
One of the most common bugs in recipe apps is mixing up per-serving and per-recipe values. Per-serving values are what a user logs for one meal; per-recipe values are what you store and scale. Get them backwards and a calorie count is off by a factor of 6 or 8. The conversion is simple: per_serving = per_recipe / servings.
Here is a real calculation for a simple soup that serves 6, using USDA FoodData Central values per 100 g that we fetched on 8 November 2026. Multiply each value by the ingredient's weight, divide by 100, and sum:
| Ingredient | Weight | fdcId | Energy per 100 g | Protein per 100 g | Sodium per 100 g |
|---|---|---|---|---|---|
| 1.5 lb boneless skinless chicken breast, raw | 680 g | 171077 | 120 kcal | 22.5 g | 45 mg |
| 15 oz can black beans | 425 g | 175188 | 91 kcal | 6.03 g | 384 mg |
| 1 cup frozen sweet corn kernels | 136 g | 168398 | 88 kcal | 3.02 g | 3 mg |
Table: Worked example, chicken, black bean and corn soup (serves 6)
| Nutrient | Per recipe | Per serving | % Daily Value (per serving) |
|---|---|---|---|
| Calories | 1,322 kcal | 220 kcal | 11% |
| Protein | 182.7 g | 30.5 g | 61% |
| Total fat | 20.1 g | 3.4 g | 4% |
| Carbohydrates | 98.5 g | 16.4 g | 6% |
| Fiber | 32.2 g | 5.4 g | 19% |
| Sodium | 1,942 mg | 324 mg | 14% |
Daily values use the FDA's reference amounts for a 2,000-calorie diet: 50 g protein, 78 g fat, 275 g carbohydrate, 28 g fiber and 2,300 mg sodium. Two caveats show why APIs disagree. First, this sums raw ingredients and ignores cooking losses. Second, the bean choice moves sodium a lot: USDA lists 384 mg per 100 g for canned black beans as packed, but 217.9 mg for canned beans that are drained and rinsed (fdcId 2644285). Providers also use different reference values: Spoonacular's documented example puts 12.09 g of fat at 18.6% of daily needs, which implies a 65 g fat reference rather than the FDA's current 78 g.
Nutrition API Accuracy, Rate Limits, Pricing and Commercial Use
When you choose a nutrition API for recipes, four things matter: where the numbers come from, the free-tier limits, the price at production volume, and what the terms let you do with the data. The table summarizes what each provider published on 8 November 2026.
| Provider | Data source | Free limit | Paid pricing | Caching and reuse |
|---|---|---|---|---|
| USDA FoodData Central | USDA Foundation, SR Legacy, Survey, Branded | 1,000 requests an hour per IP | Free | Public domain (CC0) |
| Edamam | Its own food database and NLP parser | 10-day trial | $29 to $299 a month | No caching on Basic or Core; attribution required |
| Spoonacular | Its own recipe and ingredient database | 50 points a day | $29 to $149 a month | No scraping or storing; limited caching with permission |
| Nutritionix | Grocery and restaurant items, natural-language engine | Business Trial, 2 users | $499 to $1,850+ a month | Attribution required below the top plan |
Accuracy
USDA FoodData Central is the most transparent source: each nutrient carries a derivation code that says whether it was analyzed, calculated or assumed, as you can see in the abridged response above. Edamam and Spoonacular add a parsing layer that turns ingredient text into foods and weights, which is where most errors come from: brand names, regional ingredients and vague amounts such as "a handful" are hard to resolve. Nutritionix is strongest on packaged and restaurant foods, where values come from labels. For clinical or coaching apps, including diet features inside an AI telehealth app like Maven Clinic, show users which source and basis you used, and let them correct portions.
Rate Limits
USDA FoodData Central is the most generous free option at 1,000 requests an hour per IP address, with a one-hour block if you exceed it. Spoonacular's free plan stops at 50 points a day, enough for prototyping but not production. Edamam offers a 10-day trial on its $29 plan, and Nutritionix now handles trials through its sales team. Whichever you choose, cache what the terms allow and batch your lookups, because recipe pages tend to request the same ingredients again and again.
Pricing
USDA FoodData Central is free. Spoonacular and Edamam both start at $29 a month, with Spoonacular scaling to $149 for 10,000 points a day and Edamam's Nutrition Analysis to $299 for 50,000 recipes a month. Nutritionix is the most expensive, from $499 a month billed annually. Prices change, so confirm them on each provider's pricing page before you budget.
Commercial Use
USDA FoodData Central data is public domain under CC0 1.0, so you can use it commercially. Edamam requires attribution on every plan and restricts caching on its lower tiers. Spoonacular requires a backlink on the free plan and bans scraping and storing its data, and Nutritionix requires attribution below its top plan. Food.com content itself is limited to personal, non-commercial use by its visitor agreement. Read each provider's terms carefully, because rules on caching, redistribution and white label use vary, and this guide is not legal advice.
Best Recipe Nutrition API for Recipe or Fitness Apps
The best API depends on what your app does. Use this as a starting point:
| App type | Best source | Why |
|---|---|---|
| Recipe app with search and meal planning | Spoonacular | Recipes, per-serving nutrition and meal plans in one API |
| Users paste their own recipes | Edamam Nutrition Analysis | Turns free-text ingredient lists into recipe nutrition |
| Calorie counter with barcode scanning | Nutritionix | Large grocery and restaurant database plus natural language |
| Free, educational or open-source project | USDA FoodData Central | Free, public domain, transparent derivation codes |
| Research or recommendation models | Kaggle Food.com datasets | Hundreds of thousands of recipes and reviews; research only |
For many apps the practical stack is Spoonacular or Edamam for the recipe flow, with USDA FoodData Central as a free fallback for generic ingredients and for checking suspicious values. Before you commit to one, compare the subscription against the rest of the build: our breakdown of what a SaaS MVP really costs puts a $29 to $499 monthly API bill in context.
Building a Recipe or Nutrition App With Make An App Like
Make An App Like has published app build and cost guides since 2016, and nutrition features come up in many of the food and fitness products founders ask us about. When we scope one, we pick the API that fits the use case, add a caching layer where the terms allow it, and store per-serving and per-recipe values separately so the portion math never breaks. If your nutrition data feeds a grocery or meal-kit app, our guide to building a grocery delivery app like Tesco covers the ordering, catalogue and delivery side.
Estimate Your Recipe or Fitness App Build
Want a budget for a recipe, nutrition or fitness app built on these APIs? Our guide to how much it costs to make an app explains the main cost drivers, and our app development cost calculator turns your feature list, platforms and team location into a cost and timeline range.
Price your recipe or nutrition app
Pick features such as recipe search, macro tracking, barcode scanning and meal plans, and get a cost and timeline range in about two minutes.
Launch Faster With a Ready-Made Foundation
If you would rather start from a working app than a blank repository, a white label foundation can save months of build time before you add your nutrition API.
Start from a ready-made app
Browse production-ready white label apps you can rebrand and extend with recipe and nutrition features.
Conclusion
There is no Food.com recipe API, and its visitor agreement keeps its content to personal, non-commercial use, but that is less of an obstacle than it looks. Food.com's JSON-LD and the Kaggle datasets show you the data shape and are fine for research. For a real app, USDA FoodData Central gives you free, public domain nutrient data to sum yourself, Edamam turns ingredient text into recipe nutrition, Spoonacular gives you recipes with per-serving values, and Nutritionix covers barcodes and restaurants. Store per-serving and per-recipe values separately, record your data source and basis, and cache only what the terms allow.
Source References
All sources were checked on 8 November 2026.
- USDA FoodData Central API guide (fdc.nal.usda.gov/api-guide) and api.data.gov rate limits; live DEMO_KEY calls for fdcIds 2646170, 171077, 175188, 2644285 and 168398.
- Food.com About page, robots.txt, footer and the Discovery visitor agreement it links to.
- Kaggle: Food.com Recipes and Interactions (shuyangli94) data card and Food.com Recipes and Reviews (irkaal).
- Majumder, Li, Ni and McAuley, "Generating Personalized Recipes from Historical User Preferences," EMNLP 2019 (arXiv 1909.00105).
- Edamam developer site: Nutrition Analysis pricing and OpenAPI specification (developer.edamam.com).
- Spoonacular food API pricing, documentation and terms (spoonacular.com/food-api).
- Nutritionix API pricing and database pages (nutritionix.com/api and nutritionix.com/database).
- FDA Daily Values for nutrition labels, 21 CFR 101.9.
Frequently Asked Questions
#Does Food.com have a public recipe API?
No. Food.com does not offer an official public recipe API, developer program or API key, and its /api and /developers paths return 404. Its recipe pages embed schema.org nutrition data in JSON-LD, but its visitor agreement limits content to personal, non-commercial use. For an app, use USDA FoodData Central, Edamam, Spoonacular or Nutritionix instead.
#How can I get Food.com recipe nutrition as JSON?
Each Food.com recipe page includes a schema.org Recipe block in JSON-LD with a nutrition object (calories, fatContent, proteinContent and more) stored as strings without units. That is fine to read for personal research, but copying it at scale needs permission. For JSON you can use in a product, call USDA FoodData Central, Edamam or Spoonacular, which return documented nutrition fields.
#Is there a Food.com dataset with nutrition data?
Yes, two on Kaggle. Food.com Recipes and Interactions has 180K+ recipes and 700K+ reviews from 2000 to 2018, with a nutrition column of calories plus six percent daily values. Food.com Recipes and Reviews has 522,517 recipes with absolute nutrition columns such as ProteinContent. Both are scraped from Food.com, so treat them as research data.
#What is the best free recipe API with protein data?
USDA FoodData Central is the best free option. It is free with an api.data.gov key, allows 1,000 requests an hour per IP address, and its data is public domain under CC0. It returns protein, fat, carbohydrates and many micronutrients per 100 g, but it does not parse recipes, so you look up each ingredient and sum the values by weight yourself.
#How do I get macros from a recipe API?
Send the ingredient list or recipe ID to an endpoint that returns nutrition. Edamam's nutrition-details endpoint takes a title and ingredient lines and returns totals for the whole recipe, so divide by yield. Spoonacular's nutritionWidget endpoint returns per-serving values. With USDA FoodData Central, multiply each food's per-100 g values by its weight and add them up.
#Is scraping Food.com for nutrition data legal?
It is risky for any commercial use. Food.com's visitor agreement allows display and printing for personal, non-commercial use and requires prior written permission for other reproduction or distribution. Its robots.txt also blocks AI crawlers. Use the Kaggle datasets only for research, use a licensed API for products, and ask a lawyer about your specific case.
#What is the difference between Edamam and Spoonacular?
Edamam's Nutrition Analysis API is built for analyzing your own ingredient lists, from $29 a month for 2,500 recipes. Spoonacular is recipe-first, with search, per-serving nutrition and meal planning in one API, a free plan of 50 points a day with a backlink, and paid plans of $29, $79 and $149 a month. Pick Edamam for user-entered recipes and Spoonacular for a recipe catalogue.
#Can I use the USDA FoodData Central API commercially?
Yes. USDA FoodData Central data is in the public domain and published under CC0 1.0 Universal, so you can use it in commercial products. The API allows 1,000 requests an hour per IP address by default and blocks the key for an hour if you exceed it. The shared DEMO_KEY is only for testing, with 30 requests an hour and 50 a day.
#How accurate are recipe nutrition APIs?
They are estimates. Most errors come from parsing ingredient text into the right food and weight, so brand names, regional ingredients and vague amounts cause the biggest misses. Preparation matters too: USDA lists 384 mg of sodium per 100 g for canned black beans as packed but 217.9 mg once drained and rinsed. Show users your data source and let them adjust portions.
#Which nutrition API is best for a fitness app?
For a fitness app where users log their own meals, combine Edamam for free-text recipes with USDA FoodData Central as a free fallback for generic foods. If barcode scanning is central, Nutritionix lists 1,053,256 grocery items and has a barcode endpoint, but it starts at $499 a month. Store per-serving protein and the data source with every logged meal.
“Enterprise SEO Consultant in India — Founder & CEO of Triple Minds & Make An App Like. Enterprise SEO Consultant in India · Schedule a Call for Investor-Ready Solutions.”
Continue reading
How to Apply as a Joom Third-Party Integration Partner (2027 Guide)
A practical business and technical guide for ERP, PIM, OMS, WMS, and SaaS teams that want to integrate with Joom. Verified against Joom's API v3 and JMS API documentation, with sandbox, data mapping, security, monitoring, FAQs, and source references.
Fuel Delivery App Documentation: Guidelines, Tech Stack & Features for Startups
On-demand fuel delivery is a logistics business wearing an app, and the mistakes that kill startups here are rarely software mistakes: they are compliance gaps, tanker economics, and safety workflows designed by people who never rode along on a delivery. This documentation-style guide covers fuel delivery app development for startups end to end: the three-app architecture, the features that matter, the regulatory floor, the tech stack, honest costs, and a downloadable PDF version of the documentation.
Clubhouse Clone App Development Guide: Costing, Tech Stack & Features
Clubhouse invented a format, hit a $4 billion valuation, and then watched the giants absorb its idea while its own growth evaporated. That whole arc is the syllabus for anyone planning a clone: drop-in audio works brilliantly, but only pointed at a community that actually needs it. This guide covers Clubhouse clone app development properly: the stage-and-audience mechanics, the real-time audio stack, honest costs, monetization, and the positioning lesson the original taught everyone the hard way.