List of possible nutriments?

Hi,

I’m just starting to use the API, and I’m a little confused about what exactly the API can and cannot return for “nutrients.” Is there a list? I notice that it returns expected stuff like carbohydrates, proteins, fats, etc., but sometimes it also includes vitamins(b9, b12, zinc, etc…). Is there an official list of nutrients the API can return?

Thank you

Hi,

Yes there is a taxonomy for all the nutrients here: openfoodfacts-server/taxonomies/nutrients.txt at main · openfoodfacts/openfoodfacts-server · GitHub

In an API call, the existence of the nutrients depends on two things.

1st: depending on the country or even on the manufacturer, some nutrients are displayed or not on the packaging. In the USA, for example, the official nutritional sheet enforce to display added sugars, which is not the case in Europe.

2nd: some contributors are filling all the nutrients, while some others don’t.