Skip to content

The result ​

Every successful scan returns the same JSON, whatever the input: meal photo, pack label or text. Units are part of the field names, so protein_g is grams and sodium_mg is milligrams.

json
{
  "id": "scn_Q2mX8rT4vK1pLw9eZb3nYh6A",
  "status": "succeeded",
  "engine_version": "2026.11.0",
  "language": "en",
  "meal": {
    "name": "Grilled chicken with rice and salad",
    "nutri_score": "B",
    "nutri_score_reason": "Lean protein and vegetables balance the rice; moderate sodium from the marinade.",
    "totals": {
      "calories": 515, "protein_g": 51.9, "carbs_g": 47.7, "fat_g": 11.1,
      "fiber_g": 2.2, "sugar_g": 1.6, "saturated_fat_g": 2.3, "trans_fat_g": 0,
      "micros": { "sodium_mg": 457, "potassium_mg": 645, "calcium_mg": 69, "iron_mg": 4.2,
                  "vitamin_c_mg": 14, "vitamin_a_mcg": 204, "omega_3_mg": 100, "…": "13 in all" }
    }
  },
  "items": [
    {
      "name": "Grilled chicken breast",
      "portion": { "value": 150, "unit": "g", "display": "150 g" },
      "grams": 150,
      "calories": 248, "protein_g": 46.5, "carbs_g": 0, "fat_g": 5.4,
      "micros": { "sodium_mg": 410, "…": "…" },
      "source": "food_db"
    }
  ],
  "credits_used": 64,
  "usage": { "credits_left": 30760 }
}

Top level ​

FieldTypeMeaning
idstringThe scan id, starting with scn_. Use it with GET /v1/scans/{id}.
statusstringsucceeded for a finished scan.
engine_versionstringThe scan engine that produced the result, for example 2026.11.0. Log it with your data so you can tell results from different versions apart.
languagestringThe language of names and the reason, as requested.
mealobjectThe whole meal. See below.
itemsarrayOne entry per food item. See below.
credits_usednumberWhat this scan cost. 0 with a test key.
usage.credits_leftnumberYour balance after this scan. Live results only.
test_modebooleantrue when the result came from a test key.

The meal object ​

FieldTypeMeaning
meal.namestringThe dish as a person would name it, in the requested language.
meal.nutri_scorestringA grade from A to E.
meal.nutri_score_reasonstringOne sentence on why the meal got that grade, in the requested language.
meal.totalsobjectNutrients for the whole meal, the sum of the items.

NutriScore ​

Every result has a NutriScore grade, for photos, labels and text alike. A is the most favorable and E the least. The reason sentence names what pushed the grade up or down, such as lean protein, vegetables or sodium, so you can show it to users as is.

Which nutrients does a result include? ​

21 nutrients, for the meal total and for every item: calories, 7 macro fields and 13 micronutrients. meal.totals and each entry in items carry the same fields.

FieldUnit
calorieskcal
protein_ggrams
carbs_ggrams
fat_ggrams
fiber_ggrams
sugar_ggrams
saturated_fat_ggrams
trans_fat_ggrams
microsobject with 13 micronutrients

The micros object includes these fields, among the 13:

FieldUnit
sodium_mgmilligrams
potassium_mgmilligrams
calcium_mgmilligrams
iron_mgmilligrams
vitamin_c_mgmilligrams
vitamin_a_mcgmicrograms
omega_3_mgmilligrams

Read micros by key and treat a key you do not know as a new nutrient, so your code keeps working if the list grows.

Items ​

FieldTypeMeaning
items[].namestringThe food, in the requested language.
items[].portion.valuenumberThe amount, for example 150.
items[].portion.unitstringThe unit of that amount, for example g.
items[].portion.displaystringA label ready to show, for example "150 g" or "1 cup (158 g)".
items[].gramsnumberThe weight in grams, whatever unit the portion uses.
items[].calories, protein_g, …numberThe nutrient fields listed above, for this item.
items[].microsobjectMicronutrients for this item.
items[].sourcestringWhere this item's numbers came from. See below.

Sources ​

Each item says where its numbers came from:

sourceMeaning
food_dbMatched in NutriScan's food data.
webFound with a web lookup during the scan.
estimateEstimated by the model.

You can show the source next to an item, or treat estimate items differently in your own logic, for example by asking the user to confirm the portion.

What does a test key return? ​

A test key always returns the sample above with "test_mode": true and "credits_used": 0. Everything else has the same shape, so code written against it runs unchanged with a live key.

Results are not medical advice ​

The numbers are estimates for food logging. Do not use them for medical decisions, and say so in your app where it matters.

Related pages: streaming for the early items.detected event, errors for what comes back when a scan fails, Nutrition API pricing for what credits_used costs and the Nutrition API overview.