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.
{
"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
| Field | Type | Meaning |
|---|---|---|
id | string | The scan id, starting with scn_. Use it with GET /v1/scans/{id}. |
status | string | succeeded for a finished scan. |
engine_version | string | The 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. |
language | string | The language of names and the reason, as requested. |
meal | object | The whole meal. See below. |
items | array | One entry per food item. See below. |
credits_used | number | What this scan cost. 0 with a test key. |
usage.credits_left | number | Your balance after this scan. Live results only. |
test_mode | boolean | true when the result came from a test key. |
The meal object
| Field | Type | Meaning |
|---|---|---|
meal.name | string | The dish as a person would name it, in the requested language. |
meal.nutri_score | string | A grade from A to E. |
meal.nutri_score_reason | string | One sentence on why the meal got that grade, in the requested language. |
meal.totals | object | Nutrients 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.
| Field | Unit |
|---|---|
calories | kcal |
protein_g | grams |
carbs_g | grams |
fat_g | grams |
fiber_g | grams |
sugar_g | grams |
saturated_fat_g | grams |
trans_fat_g | grams |
micros | object with 13 micronutrients |
The micros object includes these fields, among the 13:
| Field | Unit |
|---|---|
sodium_mg | milligrams |
potassium_mg | milligrams |
calcium_mg | milligrams |
iron_mg | milligrams |
vitamin_c_mg | milligrams |
vitamin_a_mcg | micrograms |
omega_3_mg | milligrams |
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
| Field | Type | Meaning |
|---|---|---|
items[].name | string | The food, in the requested language. |
items[].portion.value | number | The amount, for example 150. |
items[].portion.unit | string | The unit of that amount, for example g. |
items[].portion.display | string | A label ready to show, for example "150 g" or "1 cup (158 g)". |
items[].grams | number | The weight in grams, whatever unit the portion uses. |
items[].calories, protein_g, … | number | The nutrient fields listed above, for this item. |
items[].micros | object | Micronutrients for this item. |
items[].source | string | Where this item's numbers came from. See below. |
Sources
Each item says where its numbers came from:
source | Meaning |
|---|---|
food_db | Matched in NutriScan's food data. |
web | Found with a web lookup during the scan. |
estimate | Estimated 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.