USDA Nutrition Database Scraper - Food & Calories avatar

USDA Nutrition Database Scraper - Food & Calories

Pricing

Pay per usage

Go to Apify Store
USDA Nutrition Database Scraper - Food & Calories

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

oscar lira

Maintained by Community

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

FieldTypeDefaultDescription
searchQueriesstring[]requiredFood search terms (e.g. "chicken breast", "avocado")
maxResultsinteger100Max results per query (1-500)
dataTypestring""Optional filter: "Foundation", "SR Legacy", "Branded", or "Survey"

Output

Each item in the dataset contains:

FieldDescription
fdcIdUSDA FoodData Central ID
descriptionFood name
brandNameBrand (Branded foods only)
ingredientsIngredient list
servingSizeServing size in grams
caloriesEnergy (kcal)
proteinProtein (g)
fatTotal fat (g)
carbsCarbohydrates (g)
fiberDietary fiber (g)
sugarTotal sugars (g)
sodiumSodium (mg)
cholesterolCholesterol (mg)
allNutrientsArray of all reported nutrients with name, amount, unit
dataTypeUSDA dataset type
publishedDatePublication date
upcUPC/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.