Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Open Food Facts Search API Version 2
(view source)
Revision as of 14:11, 13 October 2020
546 bytes added
,
14:11, 13 October 2020
→Conditions on nutrients
:
added links to API examples
Line 52:
Line 52:
* Per 100g or per serving
* Per 100g or per serving
−
** energy-kj_100g < 200
+
**
[https://world.openfoodfacts.org/api/v2/search?categories_tags=en:sodas&energy-kj_100g%3C200&fields=code,product_name,energy-kj_100g
energy-kj_100g < 200
]
−
** sugars_serving > 10
+
**
[https://world.openfoodfacts.org/api/v2/search?categories_tags=en:sodas&sugars_serving%3E10g&fields=code,product_name,sugars_serving
sugars_serving > 10
]
* Per the product as sold, or prepared
* Per the product as sold, or prepared
−
** saturated-fat_100g (as sold)
+
**
[https://world.openfoodfacts.org/api/v2/search?categories_tags=en:sodas&
saturated-fat_100g
=1&fields=code,product_name,saturated-fat_100g saturated-fat_100g=1
(as sold)
]
−
** salt_prepared_serving (prepared, per serving)
+
**
[https://world.openfoodfacts.org/api/v2/search?categories_tags=en:meals&salt_prepared_100g=1&fields=code,product_name,salt_prepared_100g
salt_prepared_serving (prepared, per serving)
]
== Development and deployment ==
== Development and deployment ==
Stephane
Bureaucrats
,
Administrators
1,083
edits
Navigation menu
Personal tools
English
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Log in
Open Food Facts galaxy
📍Where am I?
🍊Open Food Facts website
Open Food Facts wiki
Main page
Recent changes
Random page
🧴 Open Beauty Facts wiki
Main page
Deep dive per topic
All topics
Whole wiki
Help about MediaWiki
Icons in the wiki
Tools
Special pages
Printable version
Admins
Edit sidebar
Styling
Replace text
Special Pages