Changes

Jump to navigation Jump to search
405 bytes added ,  13:14, 19 April 2017
Line 526: Line 526:  
* nutrition_score_debug: lets you see the calculations made
 
* nutrition_score_debug: lets you see the calculations made
 
<pre>"nutrition_score_debug":" -- energy 3 + sat-fat 6 + fr-sat-fat-for-fats 6 + sugars 0 + sodium 6 - fruits 0% 0 - fiber 0 - proteins 5 -- fsa 15 -- fr 15"</pre>
 
<pre>"nutrition_score_debug":" -- energy 3 + sat-fat 6 + fr-sat-fat-for-fats 6 + sugars 0 + sodium 6 - fruits 0% 0 - fiber 0 - proteins 5 -- fsa 15 -- fr 15"</pre>
 +
* Nutrition Grade Value
 
<pre>
 
<pre>
* Nutrition Grade Value
   
"nutrition_grades":"d"
 
"nutrition_grades":"d"
 
"nutrition_grades_tags":["d"]
 
"nutrition_grades_tags":["d"]
 
"nutrition_grade_fr":"d"
 
"nutrition_grade_fr":"d"
 +
</pre>
 +
====== Nutrition Grade Images ======
 +
No formal API is available, but you can use:
 +
<pre>
 +
https://static.openfoodfacts.org/images/misc/nutriscore-a.svg
 +
https://static.openfoodfacts.org/images/misc/nutriscore-b.svg
 +
https://static.openfoodfacts.org/images/misc/nutriscore-c.svg
 +
https://static.openfoodfacts.org/images/misc/nutriscore-d.svg
 +
https://static.openfoodfacts.org/images/misc/nutriscore-e.svg
 
</pre>
 
</pre>
 
====== List of all nutrition grades ======
 
====== List of all nutrition grades ======

Navigation menu