USDA Food Nutrients API: 8,217 foods per 100 g
Get per-100 g energy, macronutrients, minerals and vitamins for USDA reference foods, filterable by food category and nutrient ranges.
Search 8,217 foods from USDA FoodData Central (Foundation and SR Legacy): energy, protein, fat, carbohydrate, fiber, sugars, sodium and 18 more nutrients per 100 g, with food category. Embedded data, no scraping, pay per record.
Query the full dataset (API, CSV, JSON)
At a glance
- Official source
- Source: U.S. Department of Agriculture, Agricultural Research Service, FoodData Central (https://fdc.nal.usda.gov/), Foundation Foods release 2026-10-29 and SR Legacy release 2018-04. CC0 1.0 Universal; FoodData Central requests that users cite it as the source.
- Licence
- CC0 1.0 Universal (public domain), USDA FoodData Central
- Snapshot
- 2026-10-29 (Foundation), 2018-04 (SR Legacy)
- Coverage
- USDA FoodData Central download datasets (https://fdc.nal.usda.gov/download-datasets/): Foundation Foods (JSON, 2026-10-29, 424 foods) and SR Legacy (JSON, 2018-04, 7,793 foods). Licence stated at https://fdc.nal.usda.gov/ : data are in the public domain, not copyrighted, published under CC0 1.0 Universal; no permission needed, citing FoodData Central as the source is requested. Branded Foods and Survey (FNDDS) datasets are not included. All nutrient values are per 100 g edible portion. Energy kcal falls back to Atwater general then specific factors when the standard value is absent. Null means the nutrient is not reported for that food; it is never 0 (a reported 0 is a real measured zero). SR Legacy is a frozen 2018 release; Foundation is updated by USDA.
Who uses it
- Registered dietitian: Filter protein_g and sodium_mg ranges within a food_category to build low-sodium meal plans.
- Recipe app developer: Compute recipe nutrition from description matches using energy_kcal, fat_g and carbohydrate_g per 100 g.
- Food product developer: Compare fiber_g and sugars_g of candidate ingredients when reformulating a product.
What you can query
- Food description
- Food category (substring)
- Dataset (Foundation, SR Legacy)
- Min protein per 100 g (g) / Max protein per 100 g (g)
- Min fat per 100 g (g) / Max fat per 100 g (g)
- Min carbohydrate per 100 g (g) / Max carbohydrate per 100 g (g)
- Min fiber per 100 g (g) / Max fiber per 100 g (g)
- Min sugars per 100 g (g) / Max sugars per 100 g (g)
- Min sodium per 100 g (mg) / Max sodium per 100 g (mg)
- Min energy per 100 g (kcal) / Max energy per 100 g (kcal)
Fields
| Field | Type | Description |
|---|---|---|
food_id | string | Stable identifier (fdc-<FDC id>). |
fdc_id | number | FoodData Central id. |
description | string | Food description. |
data_type | string | Foundation or SR Legacy. |
food_category | string | USDA food category. |
ndb_number | number | SR/NDB number. |
publication_date | string | Publication date of the entry, YYYY-MM-DD. |
energy_kcal | number | Energy (kcal) per 100 g edible portion, null if not reported. |
energy_kj | number | Energy (kJ) per 100 g edible portion, null if not reported. |
water_g | number | Water (g) per 100 g edible portion, null if not reported. |
protein_g | number | Protein (g) per 100 g edible portion, null if not reported. |
fat_g | number | Total fat (g) per 100 g edible portion, null if not reported. |
saturated_fat_g | number | Saturated fat (g) per 100 g edible portion, null if not reported. |
monounsaturated_fat_g | number | Monounsaturated fat (g) per 100 g edible portion, null if not reported. |
polyunsaturated_fat_g | number | Polyunsaturated fat (g) per 100 g edible portion, null if not reported. |
cholesterol_mg | number | Cholesterol (mg) per 100 g edible portion, null if not reported. |
carbohydrate_g | number | Carbohydrate by difference (g) per 100 g edible portion, null if not reported. |
fiber_g | number | Total dietary fiber (g) per 100 g edible portion, null if not reported. |
sugars_g | number | Total sugars (g) per 100 g edible portion, null if not reported. |
calcium_mg | number | Calcium (mg) per 100 g edible portion, null if not reported. |
iron_mg | number | Iron (mg) per 100 g edible portion, null if not reported. |
magnesium_mg | number | Magnesium (mg) per 100 g edible portion, null if not reported. |
phosphorus_mg | number | Phosphorus (mg) per 100 g edible portion, null if not reported. |
potassium_mg | number | Potassium (mg) per 100 g edible portion, null if not reported. |
sodium_mg | number | Sodium (mg) per 100 g edible portion, null if not reported. |
zinc_mg | number | Zinc (mg) per 100 g edible portion, null if not reported. |
vitamin_c_mg | number | Vitamin C (mg) per 100 g edible portion, null if not reported. |
vitamin_a_rae_ug | number | Vitamin A RAE (ug) per 100 g edible portion, null if not reported. |
vitamin_d_ug | number | Vitamin D (ug) per 100 g edible portion, null if not reported. |
vitamin_e_mg | number | Vitamin E (mg) per 100 g edible portion, null if not reported. |
vitamin_k_ug | number | Vitamin K (ug) per 100 g edible portion, null if not reported. |
vitamin_b12_ug | number | Vitamin B-12 (ug) per 100 g edible portion, null if not reported. |
folate_dfe_ug | number | Folate DFE (ug) per 100 g edible portion, null if not reported. |
Quick start
Python (pip install apify-client):
from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/usda-food-nutrients').call(run_input={'dataTypes': ['SR Legacy'], 'maxResults': 10})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)HTTP:
curl -X POST 'https://api.apify.com/v2/acts/phonic_lily~usda-food-nutrients/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
-H 'Content-Type: application/json' -d '{"dataTypes": ["SR Legacy"], "maxResults": 10}'
FAQ
Where does the USDA Food Nutrients: 8,217 foods per 100 g data come from?
Source: U.S. Department of Agriculture, Agricultural Research Service, FoodData Central (https://fdc.nal.usda.gov/), Foundation Foods release 2026-10-29 and SR Legacy release 2018-04. CC0 1.0 Universal; FoodData Central requests that users cite it as the source. USDA FoodData Central download datasets (https://fdc.nal.usda.gov/download-datasets/): Foundation Foods (JSON, 2026-10-29, 424 foods) and SR Legacy (JSON, 2018-04, 7,793 foods). Licence stated at https://fdc.nal.usda.gov/ : data are in the public domain, not copyrighted, published under CC0 1.0 Universal; no permission needed, citing FoodData Central as the source is requested. Branded Foods and Survey (FNDDS) datasets are not included. All nutrient values are per 100 g edible portion. Energy kcal falls back to Atwater general then specific factors when the standard value is absent. Null means the nutrient is not reported for that food; it is never 0 (a reported 0 is a real measured zero). SR Legacy is a frozen 2018 release; Foundation is updated by USDA.
What can I filter on?
Food description; Food category (substring); Dataset (Foundation, SR Legacy); Min protein per 100 g (g) / Max protein per 100 g (g); Min fat per 100 g (g) / Max fat per 100 g (g); Min carbohydrate per 100 g (g) / Max carbohydrate per 100 g (g); Min fiber per 100 g (g) / Max fiber per 100 g (g); Min sugars per 100 g (g) / Max sugars per 100 g (g); Min sodium per 100 g (mg) / Max sodium per 100 g (mg); Min energy per 100 g (kcal) / Max energy per 100 g (kcal).
How much does it cost?
The full dataset is an API on Apify, paid per result returned; the current price is on https://apify.com/phonic_lily/usda-food-nutrients.
Can an AI agent query it?
Yes, through the MCP server io.github.adminglobalcostdata/product-safety-and-health-registries on the official MCP registry.
How recent is the data?
Snapshot of 2026-10-29 (Foundation), 2018-04 (SR Legacy) from the official source.
Related datasets
- FDA Recalls: 88,112 drug, food and device recalls
- FDA Drug NDC Directory: 138,262 US drug products
- FDA Device 510(k) & PMA: 233,950 clearances
- France Medicines BDPM: 15,845 drugs, prices, generics
- France Veterinary Medicines: 3,231 products (Anses)
- France Product Recalls RappelConso: 19,216 notices
- France Health & Social Facilities FINESS: 102,145 sites
- Canada Pesticide Products: 84,741 records, ARLA PPID
- Canada Vehicle Recalls 1975-2026: 147,328 rows
Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.