Nutrition API

GET

Know the exact calories, macros, and serving sizes in any whole food.

Nutrition returns the nutrition facts for a generic whole food by name - calories and the core macronutrients per 100 grams straight from the USDA food composition database - plus a full micronutrient panel and derived nutrition intelligence like calories per gram and the protein, fat and carbohydrate share of calories.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/nutrition?food=banana
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "food": "Bananas, raw",
    "fdcId": 173944,
    "category": "Fruits and Fruit Juices",
    "basis": "per 100g",
    "servingSizes": [
      {
        "label": "1 NLEA serving",
        "grams": 126
      },
      {
        "label": "1 extra large (9\" or longer)",
        "grams": 152
      },
      {
        "label": "1 large (8\" to 8-7/8\" long)",
        "grams": 136
      }
    ],
    "nutrition": {
      "calories": 89,
      "protein": 1.09,
      "totalFat": 0.33,
      "carbohydrates": 22.8,
      "fiber": 2.6,
      "sugars": 12.2
    },
    "micronutrients": {
      "sodium": 1,
      "potassium": 358,
      "cholesterol": 0,
      "saturatedFat": 0.112,
      "transFat": 0,
      "monounsaturatedFat": 0.032,
      "polyunsaturatedFat": 0.073,
      "calcium": 5,
      "iron": 0.26,
      "magnesium": 27,
      "phosphorus": 22,
      "zinc": 0.15,
      "vitaminC": 8.7,
      "vitaminA": 3,
      "vitaminD": 0,
      "vitaminE": 0.1,
      "vitaminK": 0.5,
      "thiamin": 0.031,
      "riboflavin": 0.073,
      "niacin": 0.665,
      "vitaminB6": 0.367,
      "folate": 20,
      "vitaminB12": 0,
      "water": 74.9
    },
    "analytics": {
      "caloriesPerGram": 0.89,
      "proteinCaloriePercent": 4.4,
      "fatCaloriePercent": 3,
      "carbCaloriePercent": 92.6,
      "proteinPer100Calories": 1.22
    },
    "dailyValues": {
      "protein": 2.2,
      "totalFat": 0.4,
      "saturatedFat": 0.6,
      "cholesterol": 0,
      "sodium": 0,
      "carbohydrates": 8.3,
      "fiber": 9.3,
      "potassium": 7.6,
      "calcium": 0.4,
      "iron": 1.4,
      "magnesium": 6.4,
      "phosphorus": 1.8,
      "zinc": 1.4,
      "vitaminC": 9.7,
      "vitaminA": 0.3,
      "vitaminD": 0,
      "vitaminE": 0.7,
      "vitaminK": 0.4,
      "thiamin": 2.6,
      "riboflavin": 5.6,
      "niacin": 4.2,
      "vitaminB6": 21.6,
      "folate": 5,
      "vitaminB12": 0
    },
    "dietaryFlags": {
      "highProtein": false,
      "goodSourceOfProtein": false,
      "highFiber": false,
      "goodSourceOfFiber": false,
      "lowSodium": true,
      "lowFat": true,
      "lowSaturatedFat": true,
      "lowCholesterol": true,
      "lowCalorie": false
    }
  }
}

About the Nutrition API

A food and nutrition facts API. Nutrition works by matching your search term to the best generic food in the USDA FoodData Central SR Legacy database and returning its per-100-gram nutrition panel, layered with derived intelligence the raw USDA data does not carry - calories per gram, the percentage of calories from protein, fat and carbohydrate, and protein per 100 calories. Paid plans unlock the full micronutrient panel (sodium, potassium, cholesterol, the individual fats, minerals and vitamins), the percent Daily Value each nutrient supplies the way a Nutrition Facts label reads, plain-language dietary flags like high protein and low sodium, and can scale the whole panel to any serving weight in grams. Data comes from the public-domain USDA food composition dataset.

What people use it for

Meal Tracker Logging
When users log raw ingredients in a diet diary, calculate carbohydrates, fiber, and total calories per serving without manual entry.
Recipe Nutrition Calculator
Cooking websites aggregate raw ingredient lists to display standard calorie counts, protein totals, and common household serving measurements on recipe cards.
Restaurant Menu Labeling
To meet calorie disclosure rules, kitchen inventory managers check baseline calories and macronutrient breakdowns for raw ingredients before publishing physical menus.
Meal Kit Breakdown
Dietary subscription services evaluate ingredient names against USDA composition figures to print clear sugar, fat, and carbohydrate amounts on customer packing slips.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Nutrition

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Nutrition API.

Read the docs →
Where does the nutritional data come from?
Data comes directly from the USDA FoodData Central SR Legacy database. On paid plans, Nutrition combines this reference data with calculated metrics such as calorie percentages from macronutrients and FDA Daily Value shares.
Is it cheap enough to calculate nutrition for every logged meal?
Yes. Each lookup takes 2 credits, working out to $0.0003 per food item or $0.30 per 1,000 calls on the Starter plan. You can test with 100 free calls per month, while Starter covers up to 100,000 lookups each month.
Are vitamins and micronutrients included on the Free plan?
No. The Free plan provides calories and core macronutrients including protein, total fat, carbohydrates, fiber, and sugars. Accessing the full micronutrient breakdown (including sodium, potassium, and individual vitamins), FDA Daily Values, dietary flags, and custom serving weights requires a paid plan.
What types of foods does the search cover?
It covers generic whole foods and raw ingredients cataloged in the USDA database, such as fruits, vegetables, cuts of meat, and cooking oils. Responses include the matched food name, category, FoodData Central ID, and standard household serving measurements like cups or slices.
How does the API handle custom serving sizes?
By default, all nutrient values are calculated on a standard 100-gram basis. If you supply a specific serving weight using the grams parameter on a paid plan, the entire panel automatically scales to reflect that portion.
Can I display this nutrition data inside a commercial health app?
Yes, commercial use is permitted on any paid plan. You can display and store the nutrition panels, daily values, and dietary flags within your application, but you cannot resell or redistribute the raw USDA dataset.

Ready to build with Nutrition? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs