I’m looking to understand more about the field “nf_total_carbohydrate”.
Looking through the API field values spreadsheet at
…there is no description of what the field represents and I’m struggling to find more online.
“total carbs” is unclear and requires a better definition. Total of what?
Many thanks in advance for your assistance,
Is it “total carbs per serving weight”? Because “nf_serving_weight_grams” is a field.
Can someone from Nutritionix please respond?
The nf_total_carbohydrate field represents the total carbohydrate field that is found on most nutrition labels. Here is an example:
Can you let me know if this answers your question?
I’m so glad someone from your team was finally able to come back to me.
To be clear this field represents the “total carbohydrate found in a single serving of the food”?
Can I assume that the field “nf_serving_weight_grams” is the weight of the Serving?
Basically I want my users to be able to enter the weight of their Portion and have my app return the total carbs in that portion. My current calculation is
(nf_total_carbohydrate/nf_serving_weight_grams) * user_portion_weight = Carbohydrate in Portion
Can you confirm this is correct?
Yes, you are correct about total carbohydrate and serving grams.
From a simple review, your calculation seems correct, though we cannot officially give support on custom formulas like this.