USDA FoodData Central

API

Search foods and retrieve calories, nutrients and branded-food records

Price
Free public API
Access
data.gov API key

About

FoodData Central provides USDA nutrient-reference and branded-food records through a REST API. Search foods, then retrieve their nutrients by food ID. Access requires a data.gov key and has hourly limits. The CC0 data does not cover every packaged product worldwide.

What you can do with it

  • Look up calories, protein, fiber and micronutrients for a food
  • Add USDA nutrient-reference data to a meal tracking app
  • Retrieve a branded food's nutrient record by its FoodData Central ID

Get started

  1. Get a data.gov key for FoodData Central
  2. Search foods and select a FoodData Central ID
  3. Fetch its nutrients and respect the hourly request limit

Example

curl "https://api.nal.usda.gov/fdc/v1/foods/search?api_key=$FDC_API_KEY&query=Cheddar%20Cheese&pageSize=3"

Details

Hosting
Hosted service
Available in
Worldwide
MCP server
None

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .