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

What you can query

Fields

FieldTypeDescription
food_idstringStable identifier (fdc-<FDC id>).
fdc_idnumberFoodData Central id.
descriptionstringFood description.
data_typestringFoundation or SR Legacy.
food_categorystringUSDA food category.
ndb_numbernumberSR/NDB number.
publication_datestringPublication date of the entry, YYYY-MM-DD.
energy_kcalnumberEnergy (kcal) per 100 g edible portion, null if not reported.
energy_kjnumberEnergy (kJ) per 100 g edible portion, null if not reported.
water_gnumberWater (g) per 100 g edible portion, null if not reported.
protein_gnumberProtein (g) per 100 g edible portion, null if not reported.
fat_gnumberTotal fat (g) per 100 g edible portion, null if not reported.
saturated_fat_gnumberSaturated fat (g) per 100 g edible portion, null if not reported.
monounsaturated_fat_gnumberMonounsaturated fat (g) per 100 g edible portion, null if not reported.
polyunsaturated_fat_gnumberPolyunsaturated fat (g) per 100 g edible portion, null if not reported.
cholesterol_mgnumberCholesterol (mg) per 100 g edible portion, null if not reported.
carbohydrate_gnumberCarbohydrate by difference (g) per 100 g edible portion, null if not reported.
fiber_gnumberTotal dietary fiber (g) per 100 g edible portion, null if not reported.
sugars_gnumberTotal sugars (g) per 100 g edible portion, null if not reported.
calcium_mgnumberCalcium (mg) per 100 g edible portion, null if not reported.
iron_mgnumberIron (mg) per 100 g edible portion, null if not reported.
magnesium_mgnumberMagnesium (mg) per 100 g edible portion, null if not reported.
phosphorus_mgnumberPhosphorus (mg) per 100 g edible portion, null if not reported.
potassium_mgnumberPotassium (mg) per 100 g edible portion, null if not reported.
sodium_mgnumberSodium (mg) per 100 g edible portion, null if not reported.
zinc_mgnumberZinc (mg) per 100 g edible portion, null if not reported.
vitamin_c_mgnumberVitamin C (mg) per 100 g edible portion, null if not reported.
vitamin_a_rae_ugnumberVitamin A RAE (ug) per 100 g edible portion, null if not reported.
vitamin_d_ugnumberVitamin D (ug) per 100 g edible portion, null if not reported.
vitamin_e_mgnumberVitamin E (mg) per 100 g edible portion, null if not reported.
vitamin_k_ugnumberVitamin K (ug) per 100 g edible portion, null if not reported.
vitamin_b12_ugnumberVitamin B-12 (ug) per 100 g edible portion, null if not reported.
folate_dfe_ugnumberFolate 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

Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.