Included with a Data Pass
Nutrition facts for 7,793 foods.
Calories, protein, fat, carbs, fiber, sugar, sodium and 25 more nutrients per 100 grams, plus a household serving size for most foods. It comes from the USDA’s standard reference and is laid out one food per row, ready for a recipe app or a meal planner.
- Recipe and meal apps. Total up a recipe or a day’s meals from the ingredients.
- Calorie and macro trackers. Look up a food and its serving size in one place.
One pass covers every dataset and collection for 365 days. No automatic renewal.
- Rows
- 7,793
- Columns
- 39
- Formats
- CSV, JSON, XML
As of: USDA SR Legacy, the final edition of the National Nutrient Database for Standard Reference (April 2018). Final. The USDA no longer changes this edition, so neither will this collection.
Preview
A few rows from the file
| Description | Category | ServingDescription | Calories | ProteinGrams | FatGrams | CarbohydrateGrams | FiberGrams |
|---|---|---|---|---|---|---|---|
| Butter, salted | Dairy and Egg Products | 1 pat (1" sq, 1/3" high) | 717 | 0.85 | 81.11 | 0.06 | 0 |
| Egg, whole, raw, fresh | Dairy and Egg Products | 1 large | 143 | 12.56 | 9.51 | 0.72 | 0 |
| Bananas, raw | Fruits and Fruit Juices | 1 cup, mashed | 89 | 1.09 | 0.33 | 22.84 | 2.6 |
| Milk, whole, 3.25% milkfat, with added vitamin D | Dairy and Egg Products | 1 cup | 61 | 3.15 | 3.25 | 4.8 | 0 |
| Apples, raw, with skin (Includes foods for USDA's Food Distribution Program) | Fruits and Fruit Juices | 1 cup, quartered or chopped | 52 | 0.26 | 0.17 | 13.81 | 2.4 |
| Broccoli, raw | Vegetables and Vegetable Products | 1 cup chopped | 34 | 2.82 | 0.37 | 6.64 | 2.6 |
Field guide
What’s in each row
The food
USDA’s food IDs, its description and food group.
FDCID NDBNumber Description Category
Serving
A common household serving, like 1 cup or 1 medium, and what it weighs.
ServingDescription ServingGrams
Calories, fat, carbs and protein
Per 100 grams.
Calories ProteinGrams FatGrams SaturatedFatGrams MonounsaturatedFatGrams PolyunsaturatedFatGrams TransFatGrams CholesterolMg CarbohydrateGrams FiberGrams SugarGrams
Minerals
Per 100 grams, in milligrams.
SodiumMg PotassiumMg CalciumMg IronMg MagnesiumMg PhosphorusMg ZincMg
Vitamins
Per 100 grams. Mcg columns are in micrograms, Mg columns in milligrams.
VitaminAMcg VitaminCMg VitaminDMcg VitaminEMg VitaminKMcg ThiaminMg RiboflavinMg NiacinMg VitaminB6Mg FolateMcg VitaminB12Mcg
Other
Water, caffeine and alcohol, per 100 grams.
WaterGrams CaffeineMg AlcoholGrams
What we prepared
The work already done
What we did to the source
We flattened the USDA’s SR Legacy release of April 2018 to one row per food by combining its food, nutrient, portion and NDB number files on the USDA’s FDC ID, with food group and measure unit names looked up from their own files. We picked 32 nutrients by their USDA nutrient IDs and gave each its own column, per 100 grams and rounded to three decimal places, without converting any units. A nutrient the USDA did not measure for a food is left empty, not set to zero. For the serving we took the first household portion the USDA lists for each food, with its description and its weight in grams.
How we check it
After loading we check the number of foods and the calories of salted butter against the value the USDA publishes. We also check how many foods have no vitamin K figure, which shows that unmeasured values stayed empty and did not become zero.
Good to know
Before you use it
- Every amount is per 100 grams. Multiply by ServingGrams / 100 for one serving.
- A blank means the USDA did not measure that nutrient for the food. It does not mean the food has none.
- In every format, dates are written as yyyy-MM-dd, and yes/no values as true or false. An empty value means nothing was recorded.
Source
USDA Agricultural Research Service, FoodData Central
Public domain (CC0)
Where it comes in handy
What you can build with it
- Recipe and meal apps. Total up a recipe or a day’s meals from the ingredients.
- Calorie and macro trackers. Look up a food and its serving size in one place.
- Nutrition research. Compare foods and food groups on any nutrient.
- Teaching. A clean, real dataset for statistics and health classes.
Access
Try it free. Get all of it with a pass.
Data Pass $69
Download with your pass
- All 7,793 rows of Nutrition facts
- One ZIP in CSV, JSON or XML, with a README
- Also every other collection and the whole dataset catalog, for 365 days
Commercial use is allowed, free or paid. Keep using what you download, even after your pass ends.
Downloaded a CSV? Convert CSV to JSON, generate SQL inserts, remove duplicate lines, or sort a list with the free tools.