Jump to content

Data fields: Difference between revisions

→‎Serving size: serving_quantity
(Add packaging field)
(→‎Serving size: serving_quantity)
Line 166: Line 166:
* <code>30</code> => there is no unit
* <code>30</code> => there is no unit


In the database and in Product Opener software, the technical name for this field is <code>serving_size</code>.
In the database and in Product Opener software, the technical name for this field is <code>serving_size</code>. Based on <code>serving_size</code>, Open Food Facts computes a <code>serving_quantity</code> float number for 100g or 100ml. The <code>serving_quantity</code> can be found in the API or the data exports.


See [https://github.com/openfoodfacts/openfoodfacts-server/issues?q=is%3Aissue+is%3Aopen+serving+label%3Aportions issues related to <code>serving_size</code>].
See [https://github.com/openfoodfacts/openfoodfacts-server/issues?q=is%3Aissue+is%3Aopen+serving+label%3Aportions issues related to <code>serving_size</code>].