Jump to content

Open Food Facts Search API Version 2: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 35: Line 35:
For OR queries, use | to separate values
For OR queries, use | to separate values
* labels_tags=en:organic|en:fair-trade|en:some-other-label
* labels_tags=en:organic|en:fair-trade|en:some-other-label
=== Conditions on nutrients ===
* Per 100g or per serving
** energy-kj_100g < 200
** sugars_serving > 10
* Per the product as sold, or prepared
** saturated-fat_100g (as sold)
** salt_prepared_serving (prepared, per serving)


== Development and deployment ==
== Development and deployment ==
Line 45: Line 54:


=== Nutrients ===
=== Nutrients ===
* [https://github.com/openfoodfacts/openfoodfacts-server/issues/4075 New search API - conditions on nutrients #4075]


=== Other fields ===
=== Other fields ===