USDA FoodData Central
APISearch 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
- Get a data.gov key for FoodData Central
- Search foods and select a FoodData Central ID
- 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