FoodData Central
APIUSDA's National Nutrient Database API for food and nutrition data
Overview
FoodData Central API grants access to USDA’s comprehensive nutrient database, including standard reference data for thousands of foods. Endpoints support searching by food name, FDC ID, or category; retrieving detailed nutrient profiles (calories, vitamins, minerals); and filtering branded/unbranded items. Responses are in JSON format. Ideal for nutrition tracking apps, diet planning tools, recipe analyzers, or research projects needing accurate food composition data.
Example Integration (JavaScript)
fetch('https://fdc.nal.usda.gov/')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful API
- JSON Responses
- USDA-Backed Data
- Branded & Unbranded Food Coverage
- Nutrient Profile Endpoints
Frequently Asked Questions
? Is FoodData Central API free to use?
Yes, the API is free for public use, but you need to register for an API key to access its endpoints.
? Does it require an API Key?
Yes, you must sign up on the FoodData Central website to obtain a valid API key before making requests.
? What is the response format?
All API responses are in JSON format, providing structured data on food items and their nutrient compositions.
Top Alternatives
People Also Ask about FoodData Central
Tool Info
Pros
- ⊕ Accurate, authoritative data
- ⊕ Wide range of food items
- ⊕ Detailed nutrient breakdowns
- ⊕ Free access with API key
Cons
- ⊖ Requires API key registration
- ⊖ Rate limits apply
- ⊖ Limited real-time updates for new foods