Changes

Jump to navigation Jump to search
940 bytes added ,  16:51, 18 April 2017
Line 245: Line 245:     
===== Label images =====
 
===== Label images =====
You can now get label images in the list of Labels as the "image" attribute.
+
No format API is currently available. However, they are predictable:
Typically: https://static.openfoodfacts.org/images/lang/en/labels/eu-organic.135x90.svg
+
<pre>
 +
https://static.openfoodfacts.org/images/lang/en/labels/eu-organic.135x90.svg
 +
</pre>
 +
 
 +
A full list is available at:
 +
<pre>
 +
https://github.com/openfoodfacts/openfoodfacts-server/tree/master/html/images/lang/fr/labels
 +
https://github.com/openfoodfacts/openfoodfacts-server/tree/master/html/images/lang/en/labels
 +
https://github.com/openfoodfacts/openfoodfacts-server/tree/master/html/images/lang/de/labels
 +
</pre>
    
=====Getting suggestions for labels=====
 
=====Getting suggestions for labels=====
Line 558: Line 567:  
* https://world.openfoodfacts.org/packaging/cardboard.json
 
* https://world.openfoodfacts.org/packaging/cardboard.json
 
* https://world.openfoodfacts.org/packaging/cardboard.xml
 
* https://world.openfoodfacts.org/packaging/cardboard.xml
 +
 +
===== Packaging images =====
 +
No API is currently available. As a workaround, you can use the images from the server, or those folders.
 +
<pre>
 +
https://github.com/openfoodfacts/openfoodfacts-server/tree/master/html/images/lang/jp/packaging
 +
https://github.com/openfoodfacts/openfoodfacts-server/tree/master/html/images/lang/de/packaging
 +
</pre>
 +
 
=====Packager codes=====
 
=====Packager codes=====
 
* emb_codes
 
* emb_codes
Line 1,600: Line 1,617:  
"periods_after_opening":"12 M"
 
"periods_after_opening":"12 M"
 
"periods_after_opening_debug_tags":[]</pre>
 
"periods_after_opening_debug_tags":[]</pre>
 +
====Images ====
 +
No API is currently available, but the image path is predictable.
 +
<pre>
 +
https://static.openbeautyfacts.org/images/lang/en/periods_after_opening/1-months.90x90.svg
 +
 +
https://static.openbeautyfacts.org/images/lang/en/periods_after_opening/12-months.90x90.svg
 +
</pre>

Navigation menu