fatsecret Platform API Documentation

Nutrient Content Tags

Overview

Nutrient Content Tags can identify foods that are "High" Cholesterol or Sugar "Free" across 9 different nutrients, based on a standard 100 g or 100 ml serving.

The serving type selected is based on the food_form, and the amount of the nutrient within the selected serving determines the tag applied. The pre-defined tag ranges are shown in the Thresholds by Nutrient table below.

ID NAME IDENTIFIER
1 Energy density energy
2 Fat fat
3 Saturated Fat saturated_fat
4 Sugar sugar
5 Sodium sodium
6 Cholesterol cholesterol
7 Protein protein
8 Dietary Fiber dietary_fiber
9 Carbohydrate carbohydrate

A nutrient is omitted when the food has no value for it. A nutrient whose value falls outside every band, such as dietary fiber below 1 g per 100 ml for a beverage, is returned without a tag.

Nutrient Content Tags are returned on the latest food.get and foods.search endpoints by setting the include_nutrient_content_tags flag.

The include_nutrient_content_tags flag is available for Premier and Premier Free accounts, and can be enabled by getting in touch to enable Premier Exclusive features on your account.

Which serving is used

Thresholds may be applied against a standardized 100 g or 100 ml serving size depending on the food form.

FOOD FORM REFERENCE AMOUNT NOTES
Solid 100 g Assessed against the solid thresholds below.
Liquid (non-beverage) 100 g, or 100 ml when no gram weight is available Assessed against the solid thresholds below using a 100 g serving. When no gram weight is available for the food, the beverage thresholds are used against a 100 ml serving.
Beverage 100 ml Assessed against the beverage thresholds below.

The serving used for the calculation is returned in the reference_basis property of the nutrient_content_tags.

Tags

The following table shows the seven tags that are available for return.

ID NAME RETURNED NAME BY NUTRIENT
100 Free Free ‐ Sugar, Sodium, Cholesterol, Carbohydrate
Fat Free ‐ Fat
Free of ‐ Saturated Fat
101 Very low Very low ‐ Sodium
102 Low Low ‐ all nutrients except Dietary Fiber for beverages
103 Medium Medium ‐ Energy density
104 High High ‐ all nutrients except Cholesterol for beverages
105 Contains Contains ‐ all nutrients except Energy density
106 Reasonable Reasonable ‐ Protein (solid only)

Note that not all tags appear against each nutrient. Refer to the thresholds by nutrient table below for those mappings. The name returned for a tag can vary by nutrient, as shown in the Returned name by nutrient column. Use the tag id when matching tags.

Thresholds by nutrient

The tables below give the exact band values for each nutrient/tag for the 100 g and 100 ml servings.

Each band is marked either Primary or Secondary based on its significance. Primary bands are the most meaningful. Secondary bands indicate that the nutrient was assessed, but the result would rarely be worth surfacing on its own.

Primary worth surfacing Secondary assessed, rarely surfaced alone light to dark, lowest band to highest
Energy density
energy ID 1
Solidper 100 g
040225
LowPrimary < 40
MediumSecondary ≥ 40 and < 225
HighPrimary ≥ 225
Beverageper 100 ml
02040
LowPrimary < 20
MediumSecondary ≥ 20 and ≤ 40
HighPrimary > 40
Fat
fat ID 2
Solidper 100 g
00.5314
Fat FreePrimary < 0.5
LowPrimary ≥ 0.5 and < 3
ContainsSecondary ≥ 3 and ≤ 14
HighPrimary > 14
Beverageper 100 ml
00.51.514
Fat FreePrimary < 0.5
LowPrimary ≥ 0.5 and < 1.5
ContainsSecondary ≥ 1.5 and ≤ 14
HighPrimary > 14
Saturated Fat
saturated_fat ID 3
Solidper 100 g
00.11.55
Free ofPrimary < 0.1
LowPrimary ≥ 0.1 and < 1.5
ContainsSecondary ≥ 1.5 and < 5
HighPrimary ≥ 5
Beverageper 100 ml
00.10.752
Free ofPrimary < 0.1
LowPrimary ≥ 0.1 and < 0.75
ContainsSecondary ≥ 0.75 and < 2
HighPrimary ≥ 2
Sugar
sugar ID 4
Solidper 100 g
00.5517
FreePrimary < 0.5
LowPrimary ≥ 0.5 and < 5
ContainsSecondary ≥ 5 and ≤ 17
HighPrimary > 17
Beverageper 100 ml
00.52.517
FreePrimary < 0.5
LowPrimary ≥ 0.5 and < 2.5
ContainsSecondary ≥ 2.5 and ≤ 17
HighPrimary > 17
Sodium
sodium ID 5
Solidper 100 g
00.0050.040.120.6
FreePrimary < 0.005
Very lowPrimary ≥ 0.005 and < 0.04
LowPrimary ≥ 0.04 and < 0.12
ContainsSecondary ≥ 0.12 and ≤ 0.6
HighPrimary > 0.6
Beverageper 100 ml
00.0050.040.120.6
FreePrimary < 0.005
Very lowPrimary ≥ 0.005 and < 0.04
LowPrimary ≥ 0.04 and < 0.12
ContainsSecondary ≥ 0.12 and ≤ 0.6
HighPrimary > 0.6
Cholesterol
cholesterol ID 6
Solidper 100 g
00.0050.020.2
FreePrimary < 0.005
LowPrimary ≥ 0.005 and < 0.02
ContainsSecondary ≥ 0.02 and ≤ 0.2
HighPrimary > 0.2
Beverageper 100 ml
00.0050.01
FreePrimary < 0.005
LowPrimary ≥ 0.005 and < 0.01
ContainsSecondary ≥ 0.01
Protein
protein ID 7
Solidper 100 g
031020
LowPrimary < 3
ContainsSecondary ≥ 3 and < 10
ReasonablePrimary ≥ 10 and < 20
HighPrimary ≥ 20
Beverageper 100 ml
02.55
LowPrimary < 2.5
ContainsSecondary ≥ 2.5 and < 5
HighPrimary ≥ 5
Dietary Fiber
dietary_fiber ID 8
Solidper 100 g
025
LowPrimary < 2
ContainsSecondary ≥ 2 and < 5
HighPrimary ≥ 5
Beverageper 100 ml
13
ContainsSecondary ≥ 1 and < 3
HighPrimary ≥ 3
Carbohydrate
carbohydrate ID 9
Solidper 100 g
00.51020
FreePrimary < 0.5
LowPrimary ≥ 0.5 and < 10
ContainsSecondary ≥ 10 and < 20
HighPrimary ≥ 20
Beverageper 100 ml
00.5510
FreePrimary < 0.5
LowPrimary ≥ 0.5 and < 5
ContainsSecondary ≥ 5 and < 10
HighPrimary ≥ 10