Food Nutrition & Branded Products is a no-code web scraper that collects public open data data: fdc id, description, data type, brand owner and brand and more. Enter search terms, data type and brand owner, start a run and download the results as Excel, CSV or JSON. It costs 1 credit per run plus 0.01 credits per result, so 100 results cost about 2 credits.
Category: Open data · Price: 1 credits per run + 0.01 per result.
Food Nutrition & Branded Products
Search USDA FoodData Central, the US Department of Agriculture's food composition database, for generic foods and hundreds of thousands of branded grocery products, or look products up by barcode. Each row has the product details (brand, barcode, ingredients, serving size, category) and a core set of nutrients per 100 g and per serving.
Typical uses
- Nutrition facts for a recipe app, meal planner or calorie counter.
- Product data enrichment from a list of UPC/GTIN barcodes.
- Compare a brand's products, or a category across brands (sugar, sodium, protein…).
- Reference values for generic foods (raw apples, cooked rice) from the USDA's lab-analysed datasets.
Input
| Field |
What to enter |
| Search terms |
One food or product per line, such as greek yogurt or cheddar cheese. |
| Data type |
Branded products, Foundation foods, SR Legacy, Survey (FNDDS), all generic foods, or any. |
| Brand owner |
Limits branded products to one company, such as Chobani. On its own (no search terms), it lists that owner's products. Ignored for generic data types. |
| GTIN / UPC barcodes |
8 to 14 digits, one per line. Each is looked up among branded products, with and without a leading zero. |
| Sort search results by |
Relevance, name, newest first or data type. |
| Fetch full records |
Adds the per-serving values exactly as printed on the label, household portions (for generic foods) and the discontinued date. Costs one extra request per 20 foods. |
| Include every nutrient |
Adds all reported nutrients per 100 g as one column (up to about 150 for generic foods). |
| Foods per search term |
Up to 10,000 (FoodData Central's search does not go deeper). |
| Maximum foods for the run |
Overall cap. |
Output example
{
"fdcId": 2663558,
"description": "BLUEBERRY BLENDED NON-FAT GREEK YOGURT, BLUEBERRY",
"dataType": "Branded",
"brandOwner": "Chobani, Inc.",
"brandName": "CHOBANI",
"gtinUpc": "818290010643",
"ingredients": "NONFAT YOGURT (CULTURED PASTEURIZED NONFAT MILK), BLUEBERRIES, EVAPORATED CANE SUGAR, …",
"servingSize": 227,
"servingSizeUnit": "GRM",
"householdServing": "1 cup",
"packageWeight": "32 oz/2 lbs/907 g",
"foodCategory": "Yogurt",
"marketCountry": "United States",
"publishedDate": "2023-11-16",
"modifiedDate": "2023-10-24",
"energyKcalPer100g": 75,
"proteinPer100g": 8.37,
"sugarsPer100g": 8.81,
"sodiumPer100g": 40,
"energyKcalPerServing": 170.25,
"proteinPerServing": 19,
"url": "https://fdc.nal.usda.gov/food-details/2663558/nutrients",
"query": "greek yogurt",
"licence": "CC0 1.0 (public domain)",
"attribution": "USDA FoodData Central"
}
Output fields
fdcId, description, dataType, brandOwner, brandName, gtinUpc, ingredients (up to 4,000 characters), servingSize, servingSizeUnit, householdServing, packageWeight, foodCategory, marketCountry, publishedDate, modifiedDate, then for each of energy (kcal), protein, fat, saturated fat, carbohydrates, sugars, fibre (g), sodium, cholesterol, calcium, iron, potassium (mg) and vitamin D (µg) a …Per100g and a …PerServing column (energyKcalPer100g, proteinPerServing, …), portions and discontinuedDate (full records), allNutrients (optional), url, query, licence, attribution.
How it fetches data
Searches use FoodData Central's foods/search API, 200 foods per request (20 when full records are fetched, so that each step is one search and one batch of up to 20 full records from the foods endpoint). Barcodes are searched in the gtinUpc field. Calls from every run on the server are spaced at least 1.5 seconds apart.
Good to know
- Per 100 g and per serving. FoodData Central reports nutrients per 100 g (or 100 ml for drinks). Per-serving values are worked out from the serving size when it is in grams or millilitres, which is the case for branded products; generic foods have no serving, so those columns are empty unless household portions are fetched (see
portions). With Fetch full records, per-serving values come from the printed nutrition label instead, which manufacturers round. Energy for Foundation foods uses the Atwater general factors when no plain kcal value exists; vitamin D reported in IU is converted to µg.
- Free key. FoodData Central runs on api.data.gov. An administrator adds one free api.data.gov key in Admin → Integrations (https://api.data.gov/signup/: instant, no card); it is shared by every api.data.gov crawler on this server. FoodData Central allows 1,000 requests an hour, and going over blocks the key for an hour, so a run stops early (keeping its rows, with a note in the log) when fewer than about 25 requests are left in the hour. Without a key, the public
DEMO_KEY allows only about 10 requests an hour per server, so such runs stop after 3 requests.
- Licence. The data is in the public domain under CC0 1.0. No permission is needed, but the USDA asks users to credit "USDA FoodData Central" as the source, so every row carries
licence and attribution.
- Branded data comes from manufacturers and label data providers; values are as declared, and the same product can appear more than once when it was submitted by more than one source. Older versions of a product are replaced by new records with new
fdcIds.
- Barcodes are matched ignoring leading zeros; a product missing from the database returns a warning, not a row.