Vietnam Nutrition Label Generator API

Nutrition table for Vietnamese food labels under Circular 30/2026/TT-BYT from a recipe or per-100 g values: mandatory nutrients, %NRV, SVG / PDF label.

GETPOSThttps://apibox.io.vn/v1/vn-nutrition-label

Send per100 (values per 100 g / 100 ml: energy_kcal, protein_g, carbohydrate_g, sugars_g, fat_g, saturated_fat_g, sodium_mg) or a recipe ingredients [{name, grams, per100}] with the cooked yield_g. Energy is computed with 4 / 4 / 9 kcal/g when missing. You supply the nutrient values (lab results or calculation, as Decree 37/2026 Article 49 allows); no food database is bundled.

The result applies Circular 30/2026/TT-BYT (in force 10 July 2026, replacing 29/2023): the five mandatory nutrients, total sugars for sweetened drinks and foods (added_sugar), saturated fat for fried food (fried), the Appendix I thresholds below which a nutrient need not be declared, per 100 g / ml and per serving (serving_size), and %NRV with the Appendix II reference values (2,000 kcal, protein 50 g, carbohydrate 325 g, fat 56 g, saturated fat 20 g, sodium 2,000 mg). It also checks common "low / free" claims against the Codex conditions for reference.

format=svg or pdf returns a print-ready label in Be Vietnam Pro, in Vietnamese, English or both (lang). The circular sets no rounding rule; a stated convention is applied (kcal and mg whole, grams to 0.1 below 10 g).

Markdown · OpenAPI · Postman · llms.txt

Parameters

NameInTypeRequiredDefault
per100bodyobjectnoValues per 100 g / ml of product.
ingredientsbodyarraynoRecipe [{name, grams, per100}].
yield_gbody|querynumbernoFinal product weight (default: sum of ingredients).
formbody|querystringnosolidsolid or liquid.
serving_sizebody|querynumbernoServing size in g / ml.
servings_per_packbody|querynumbernoServings per pack.
added_sugarbody|querybooleannoSugar added (total sugars mandatory).
friedbody|querybooleannoFried food (saturated fat mandatory).
formatbody|querystringnojsonjson, svg or pdf.
langbody|querystringnovivi, en or both.
product_namebody|querystringnoName printed on the label.

Example

curl -X POST "https://apibox.io.vn/v1/vn-nutrition-label" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"per100":{"energy_kcal":463,"protein_g":7.3,"carbohydrate_g":64.7,"sugars_g":22.5,"fat_g":19.6,"saturated_fat_g":11.8,"sodium_mg":19.6},"serving_size":30,"added_sugar":true}'

Response

{
  "form": "solid",
  "basis": "both",
  "serving_size": 30,
  "rows": [
    {
      "key": "energy_kcal",
      "vi": "Năng lượng",
      "unit": "kcal",
      "per100": 463,
      "per_serving": 139,
      "nrv_pct": 7,
      "mandatory": true
    },
    {
      "key": "protein_g",
      "vi": "Chất đạm",
      "unit": "g",
      "per100": 7.3,
      "per_serving": 2.2,
      "nrv_pct": 4,
      "mandatory": true
    },
    {
      "key": "carbohydrate_g",
      "vi": "Carbohydrat",
      "unit": "g",
      "per100": 65,
      "per_serving": 19,
      "nrv_pct": 6,
      "mandatory": true
    },
    {
      "key": "sugars_g",
      "vi": "Đường tổng số",
      "unit": "g",
      "per100": 23,
      "per_serving": 6.8,
      "nrv_pct": null,
      "mandatory": true
    },
    {
      "key": "fat_g",
      "vi": "Chất béo",
      "unit": "g",
      "per100": 20,
      "per_serving": 5.9,
      "nrv_pct": 11,
      "mandatory": true
    },
    {
      "key": "saturated_fat_g",
      "vi": "Chất béo bão hòa",
      "unit": "g",
      "per100": 12,
      "per_serving": 3.5,
      "nrv_pct": 18,
      "mandatory": false
    },
    {
      "key": "sodium_mg",
      "vi": "Natri",
      "unit": "mg",
      "per100": 20,
      "per_serving": 6,
      "nrv_pct": 0,
      "mandatory": true
    }
  ],
  "claims": [
    {
      "claim": "low_sodium",
      "vi": "Ít natri",
      "ok": true,
      "cond": "≤ 120 mg/100 g"
    },
    "…"
  ],
  "rounding": "Convention (TT 30/2026 sets none): kcal and mg whole numbers; grams 1 decimal below 10 g, whole numbers from 10 g; %NRV whole numbers.",
  "disclaimer": "Reference only, not legal or food-safety advice; check Thông tư 30/2026/TT-BYT and your product standard."
}

Use cases

  • Make the nutrition table for an OCOP product or a bakery
  • Generate bilingual labels for export packaging
  • Recalculate a label when the recipe changes
  • Add a nutrition panel to a self-declaration or label-printing app

FAQ

Which nutrients are mandatory?

Energy, protein, carbohydrate, fat and sodium; plus total sugars for drinks and foods with added sugar and saturated fat for fried foods (Article 5).

Is %NRV mandatory?

No, it is optional; when shown it must use the reference values of Appendix II (Article 6.2).

Which foods are exempt?

Among others single-ingredient foods, bottled and mineral water, salt, vinegar, plain tea and coffee, food supplements, alcoholic drinks and food from small retail producers (Article 1.2).

Related APIs

Start with 1,000 free requests every month. Get free API key →