USDA FoodData Central

API

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

Fiyat
Free public API
Erişim
data.gov API key

Hakkında

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.

Neler yapabilirsin

  • 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

Başlarken

  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

Örnek kod

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

Ayrıntılar

Barındırma
Hazır hizmet (bulut)
Kullanılabildiği yerler
Tüm dünya
MCP sunucusu
Yok

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .