USDA FoodData Central Nutrition Scraper avatar

USDA FoodData Central Nutrition Scraper

Pricing

Pay per event

Go to Apify Store
USDA FoodData Central Nutrition Scraper

USDA FoodData Central Nutrition Scraper

Scrape USDA FoodData Central nutrition data via search API or by food type. Returns full nutrient panels (140+ nutrients), serving sizes, GTIN/UPC codes, ingredients, and household portions for 2M+ foods across Branded, Foundation, SR Legacy, FNDDS, and Survey databases.

Pricing

Pay per event

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Extract complete nutrition data from the USDA FoodData Central database — the official US government source for food composition data. Covers 2M+ foods across the Branded, Foundation, SR Legacy, FNDDS, and Survey databases, with full nutrient panels (140+ nutrients per food), GTIN/UPC barcodes, ingredient lists, serving sizes, and household portion data.

What you get

Each record contains:

  • fdc_id — USDA FDC unique identifier
  • description — Food name / product name
  • data_type — Source database (Branded, Foundation, SR Legacy, Survey_FNDDS, Experimental)
  • brand_owner / brand_name — Brand information for commercial products
  • gtin_upc — GTIN or UPC barcode for retail product matching
  • ingredients — Full ingredients list as printed on the label
  • serving_size / serving_size_unit — Serving size with unit
  • food_category — USDA food category
  • market_country — Country where the product is marketed
  • published_date — When the food record was published in FDC
  • nutrients — JSON array of all nutrients: [{name, amount, unit, derivation}] — includes calories, macros (protein, fat, carbs, fiber, sugars), all vitamins, all minerals, amino acids, and fatty acid breakdown
  • portions — JSON array of household measures: [{modifier, gramWeight}]
  • food_attributes — JSON array of additional food attributes

Modes

Search mode (default)

Search for foods by keyword across all or a specific USDA database.

{
"query": "cheddar cheese",
"dataType": "Branded",
"maxItems": 100
}

Direct lookup mode

Fetch specific foods by their FDC ID for full detail data.

{
"fdcIds": ["454004", "747448", "321358"],
"maxItems": 10
}

Input options

FieldTypeDescription
querystringSearch keyword (e.g. "apple", "whole wheat bread"). Leave blank for default Foundation search.
dataTypestringFilter to one database: Branded, Foundation, SR Legacy, Survey_FNDDS, or Experimental.
fdcIdsstring[]List of FDC IDs for direct lookup. When provided, overrides query and dataType.
apiKeystringYour own api.data.gov API key (1,000 req/hr). Leave blank to use the built-in key.
maxItemsintegerMaximum number of food records to return.

API key

This actor uses the USDA FoodData Central API via api.data.gov. A free API key is pre-configured for seamless operation. For very large runs (1,000+ requests per hour), provide your own free key from api.data.gov/signup.

Use cases

  • Nutrition apps — Enrich recipe databases with verified USDA nutritional data
  • Retail product enrichment — Join GTIN/UPC barcodes with full nutrient panels
  • Food science research — Bulk extraction of Foundation or SR Legacy reference data
  • LLM grounding — Build a nutrition knowledge base for AI applications
  • Diet / health apps — Power macro tracking with government-verified data
  • Food database deduplication — Match commercial products across Branded database

Data sources

All data is sourced directly from USDA FoodData Central via the official public API. FDC is the US government's integrated food composition database, maintained by the USDA Agricultural Research Service.

Limits

  • The search API returns up to 2M+ Branded foods, 7,000+ Foundation foods, 260,000+ SR Legacy entries, 9,000+ FNDDS entries
  • Rate limit: 1,000 requests/hour with a registered key; 30/hour on DEMO_KEY
  • Maximum page size: 200 foods per API call