Calories and nutrients for 7,793 foods in one free CSV download, from the USDA's SR Legacy database (public domain, the final edition of the Standard Reference that powered a generation of nutrition labels), one row per food with everything per 100 grams. Rows carry calories (butter at 717 and raw apples at 52 by test, with pure oils topping out at the theoretical 900 ceiling), protein, total and saturated fat, carbohydrates, fiber, sugars, sodium (table salt clears 38,000 mg by test), potassium, calcium, iron, cholesterol, vitamin C, water, and caffeine, which quietly answers the entire how-much-caffeine question class (espresso 212; the champion is instant tea powder at 5,714 mg per 100 g of dry product, a real value nobody consumes at 100 grams and the tests say so). The USDA food category column groups the catalog, from Dairy and Egg Products to Fast Foods. The 4-4-9 macro arithmetic reconciles against listed calories across a random sample by test. Open to analysis of calorie density by category, protein-per-calorie rankings, the sugar-fiber tradeoff, and joins against the fast food, candy, cheese and chocolate topics. Nine acceptance tests, one enforcing the 25 percent fill rule on every column.
7,793 rows in one CSV file, with 18 columns in total: Food, Category, Calories_kcal, Protein_g, Fat_g, Saturated_Fat_g, Carbs_g, Fiber_g, Sugars_g, Sodium_mg, Potassium_mg, Calcium_mg, Iron_mg, Cholesterol_mg, Vitamin_C_mg, Caffeine_mg, Water_g, FDC_ID.
It is built by programmatically scraping fdc.nal.usda.gov, last pulled on 2026-11-14. Datasets are versioned; older versions stay downloadable.
Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.
Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.
Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.