USDA Nutrition Database Scraper - Food & Calories
Pricing
Pay per usage
USDA Nutrition Database Scraper - Food & Calories
Search the USDA FoodData Central database for nutrition facts. Get calories, protein, fat, carbs, fiber, sodium, and all nutrients for 300K+ foods. Includes branded products with UPC codes.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
oscar lira
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
USDA Nutrition Database Scraper
Apify actor that queries the USDA FoodData Central API to retrieve detailed nutrition information for any food item.
What it does
- Searches the USDA FoodData Central database by keyword
- Returns full nutrition profiles: calories, protein, fat, carbs, fiber, sugar, sodium, cholesterol, plus all reported nutrients
- Supports filtering by data type (Foundation, SR Legacy, Branded, Survey)
- Handles pagination automatically
- Uses the free DEMO_KEY (30 requests/hour, no signup needed)
Input
| Field | Type | Default | Description |
|---|---|---|---|
searchQueries | string[] | required | Food search terms (e.g. "chicken breast", "avocado") |
maxResults | integer | 100 | Max results per query (1-500) |
dataType | string | "" | Optional filter: "Foundation", "SR Legacy", "Branded", or "Survey" |
Output
Each item in the dataset contains:
| Field | Description |
|---|---|
fdcId | USDA FoodData Central ID |
description | Food name |
brandName | Brand (Branded foods only) |
ingredients | Ingredient list |
servingSize | Serving size in grams |
calories | Energy (kcal) |
protein | Protein (g) |
fat | Total fat (g) |
carbs | Carbohydrates (g) |
fiber | Dietary fiber (g) |
sugar | Total sugars (g) |
sodium | Sodium (mg) |
cholesterol | Cholesterol (mg) |
allNutrients | Array of all reported nutrients with name, amount, unit |
dataType | USDA dataset type |
publishedDate | Publication date |
upc | UPC/GTIN barcode (Branded only) |
Rate limits
The DEMO_KEY allows 30 requests per hour. The actor automatically paces requests to stay within this limit. For higher throughput, obtain a free API key at https://api.data.gov/signup/ and modify the API_KEY constant in src/main.mjs.