Home/Food, Nutrition & Health/USDA FoodData Central
GETFree API Key·CORS Ready·Verified 2026-12-02

USDA FoodData Central

Authoritative US Department of Agriculture laboratory nutrient profiles for 400,000+ whole and branded foods.

Live JSON Playground & Client Code

GETUSDA FoodData Central
https://api.nal.usda.gov/fdc/v1/foods/search?query=avocado&pageSize=2&api_key=DEMO_KEY
// Click "Send Live Request" to call this endpoint live from your browser:
// GET https://api.nal.usda.gov/fdc/v1/foods/search?query=avocado&pageSize=2&api_key=DEMO_KEY
// Auth: Free API Key | CORS: CORS Ready
// Rate limit: DEMO_KEY 30/hr · Free key 1,000/hr
Limit: DEMO_KEY 30/hr · Free key 1,000/hrCommercial: Yes (Public Domain)

Production Integration Checklist

  • Store your free API key in server-side environment variables or an edge Worker instead of client bundles.
  • Browser CORS is enabled. Avoid unnecessary custom headers to skip extra OPTIONS preflight latency.
  • Documented rate limit: "DEMO_KEY 30/hr · Free key 1,000/hr". Always pair requests with an 8s timeout and shared HTTP caching to avoid 429 errors.
  • Commercial license note: Yes (Public Domain). Verify attribution wording in official docs before production launch.