Nutrition Tracker & Calculator

Track and calculate nutrients from food using USDA FoodData Central API

Get your free API key at USDA FoodData Central

Search Foods

Please enter your API key first

Nutrition Facts

Search for a food, select a variant, and enter weight to see nutrition facts

How to use:

🔑 Setup:

  • Get free API key from USDA FoodData Central
  • Enter your API key in the field above
  • Key is stored only for this session

📊 Search Mode (CORS Workaround):

  • Type food name to generate API URL
  • Click "Open API URL" to get JSON
  • Copy entire JSON response
  • Paste in text field and click "Parse"
  • Select food variant and enter weight

✏️ Manual Mode:

  • Enter nutrition values per 100g
  • Specify your portion weight
  • Great for packaged foods
  • Bypass API completely

🛠️ CORS Note: Due to browser security restrictions, direct API calls may fail. The workaround opens the API in a new tab where you can copy the JSON response manually.