Changes

Jump to navigation Jump to search
186 bytes added ,  18:08, 31 December 2016
Migrate the API doc to HTTPS
Line 34: Line 34:  
* Do not send copyrighted photos or information using the API. Everything you send is OdBL for the data, and CC-BY-SA for the pictures. If those are not yours (eg from scraping), you bear all the legal consequences.
 
* Do not send copyrighted photos or information using the API. Everything you send is OdBL for the data, and CC-BY-SA for the pictures. If those are not yours (eg from scraping), you bear all the legal consequences.
 
* You can create a global account for your app if you don't want to implement Open Food Facts user creation in your app right now. Please report it in #api so that it can be monitored for errors.
 
* You can create a global account for your app if you don't want to implement Open Food Facts user creation in your app right now. Please report it in #api so that it can be monitored for errors.
* You should do all your test edits on http://world.openfoodfacts.net (ask for the password on Slack)
+
* You should do all your test edits on https://world.openfoodfacts.net (ask for the password on Slack)
    
=== Conventions for the API ===
 
=== Conventions for the API ===
Line 70: Line 70:  
=== Downloading static data ===
 
=== Downloading static data ===
 
It is recommended to use the live API to get fresh data about products, the minute they are uploaded to the database. However, in some cases, you may need a snapshot. They are available at:
 
It is recommended to use the live API to get fresh data about products, the minute they are uploaded to the database. However, in some cases, you may need a snapshot. They are available at:
* http://world.openfoodfacts.org/data (all data)
+
* https://world.openfoodfacts.org/data (all data)
* http://fr.openfoodfacts.org/data (data for that country)
+
* https://fr.openfoodfacts.org/data (data for that country)
    
==== CSV API ====
 
==== CSV API ====
Line 81: Line 81:  
=== Field reference ===
 
=== Field reference ===
 
The [[fields used]] in the api.
 
The [[fields used]] in the api.
http://world.openfoodfacts.org/data/data-fields.txt
+
https://world.openfoodfacts.org/data/data-fields.txt
    
=== JSON interface ===
 
=== JSON interface ===
Line 89: Line 89:  
A few things to note:  
 
A few things to note:  
 
* if you use a country subdomain instead of world, you get products for that countries only which might change the language but also the name of the fields, in that case you need to use the local language
 
* if you use a country subdomain instead of world, you get products for that countries only which might change the language but also the name of the fields, in that case you need to use the local language
** http://fr.openfoodfacts.org/categorie/pizzas.json
+
** https://fr.openfoodfacts.org/categorie/pizzas.json
** an alternative is to specify the language in the subdomain: http://fr-en.openfoodfacts.org/category/pizzas.json
+
** an alternative is to specify the language in the subdomain: https://fr-en.openfoodfacts.org/category/pizzas.json
    
=== Reading a product ===
 
=== Reading a product ===
Line 97: Line 97:  
==== Structure of the call ====
 
==== Structure of the call ====
   −
* http://world.openfoodfacts.org/api/v0/product/737628064502.xml
+
* https://world.openfoodfacts.org/api/v0/product/737628064502.xml
* http://world.openfoodfacts.org/api/v0/product/737628064502.json
+
* https://world.openfoodfacts.org/api/v0/product/737628064502.json
    
The final number must be a valid barcode.
 
The final number must be a valid barcode.
Line 143: Line 143:     
       ],
 
       ],
       "image_front_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.400.jpg",
+
       "image_front_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.400.jpg",
 
       "stores":"Casino",
 
       "stores":"Casino",
 
       "origins":"",
 
       "origins":"",
Line 190: Line 190:  
         "tacite"
 
         "tacite"
 
       ],
 
       ],
       "image_ingredients_small_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/ingredients_fr.12.200.jpg",
+
       "image_ingredients_small_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/ingredients_fr.12.200.jpg",
 
       "_keywords":[   
 
       "_keywords":[   
 
         "plat",
 
         "plat",
Line 417: Line 417:  
       ],
 
       ],
 
       "countries":"France",
 
       "countries":"France",
       "image_front_small_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.200.jpg",
+
       "image_front_small_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.200.jpg",
 
       "stores_debug_tags":[   
 
       "stores_debug_tags":[   
   Line 517: Line 517:  
       "packaging":"barquette,plastique",
 
       "packaging":"barquette,plastique",
 
       "emb_codes_orig":"",
 
       "emb_codes_orig":"",
       "image_nutrition_small_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/nutrition_fr.13.200.jpg",
+
       "image_nutrition_small_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/nutrition_fr.13.200.jpg",
 
       "correctors_tags":[   
 
       "correctors_tags":[   
 
         "tacinte",
 
         "tacinte",
Line 561: Line 561:  
         "en:photos-uploaded"
 
         "en:photos-uploaded"
 
       ],
 
       ],
       "image_small_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.200.jpg",
+
       "image_small_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.200.jpg",
 
       "quantity":"2 x 150 g (300 g)",
 
       "quantity":"2 x 150 g (300 g)",
 
       "additives_old_tags":[   
 
       "additives_old_tags":[   
Line 576: Line 576:  
         "en:e160"
 
         "en:e160"
 
       ],
 
       ],
       "image_ingredients_thumb_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/ingredients_fr.12.100.jpg",
+
       "image_ingredients_thumb_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/ingredients_fr.12.100.jpg",
 
       "ingredients_n_tags":[   
 
       "ingredients_n_tags":[   
 
         "45",
 
         "45",
Line 609: Line 609:  
       ],
 
       ],
 
       "states":"en:to-be-checked, en:complete, en:nutrition-facts-completed, en:ingredients-completed, en:expiration-date-to-be-completed, en:characteristics-completed, en:categories-completed, en:brands-completed, en:packaging-completed, en:quantity-completed, en:product-name-completed, en:photos-validated, en:photos-uploaded",
 
       "states":"en:to-be-checked, en:complete, en:nutrition-facts-completed, en:ingredients-completed, en:expiration-date-to-be-completed, en:characteristics-completed, en:categories-completed, en:brands-completed, en:packaging-completed, en:quantity-completed, en:product-name-completed, en:photos-validated, en:photos-uploaded",
       "image_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.400.jpg",
+
       "image_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.400.jpg",
 
       "link":"",
 
       "link":"",
 
       "allergens":"blé, gluten de blé, fromage, fromages, emmental, beurre, lactosérum, beurre",
 
       "allergens":"blé, gluten de blé, fromage, fromages, emmental, beurre, lactosérum, beurre",
Line 625: Line 625:  
         "fr:lactoserum"
 
         "fr:lactoserum"
 
       ],
 
       ],
       "image_thumb_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.100.jpg",
+
       "image_thumb_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.100.jpg",
 
       "unknown_nutrients_tags":[   
 
       "unknown_nutrients_tags":[   
   Line 697: Line 697:  
       ],
 
       ],
 
       "brands":"Casino",
 
       "brands":"Casino",
       "image_front_thumb_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.100.jpg",
+
       "image_front_thumb_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/front_fr.10.100.jpg",
 
       "countries_tags":[   
 
       "countries_tags":[   
 
         "en:france"
 
         "en:france"
Line 762: Line 762:     
       ],
 
       ],
       "image_ingredients_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/ingredients_fr.12.400.jpg",
+
       "image_ingredients_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/ingredients_fr.12.400.jpg",
 
       "product_name":"Croque Monsieur Maxi",
 
       "product_name":"Croque Monsieur Maxi",
 
       "additives_prev":" [ pain-de-mie-49 -> fr:pain-de-mie-49  ]  [ pain-de-mie -> fr:pain-de-mie  ]  [ pain-de -> fr:pain-de  ]  [ pain -> fr:pain  ]  [ 3 -> fr:3  ]  [ farine-de-ble -> fr:farine-de-ble  ]  [ farine-de -> fr:farine-de  ]  [ farine -> fr:farine  ]  [ eau -> fr:eau  ]  [ huile-de-colza -> fr:huile-de-colza  ]  [ huile-de -> fr:huile-de  ]  [ huile -> fr:huile  ]  [ sel -> fr:sel  ]  [ dextrose -> fr:dextrose  ]  [ levure -> fr:levure  ]  [ propionate-de-calcium -> en:e282  -> exists  ]  [ mono-et-diglycerides-d-acides-gras -> en:e471  -> exists  ]  [ lecithines -> en:e322  -> exists  ]  [ gluten-de-ble -> fr:gluten-de-ble  ]  [ gluten-de -> fr:gluten-de  ]  [ gluten -> fr:gluten  ]  [ gomme-xanthane -> en:e415  -> exists  ]  [ agent -> fr:agent  ]  [ de-la-farine -> fr:de-la-farine  ]  [ de-la -> fr:de-la  ]  [ de -> fr:de  ]  [ acide-ascorbique -> en:e300  -> exists  ]  [ fromage-fondu-28 -> fr:fromage-fondu-28  ]  [ fromage-fondu -> fr:fromage-fondu  ]  [ fromage -> fr:fromage  ]  [ fromages-14 -> fr:fromages-14  ]  [ fromages -> fr:fromages  ]  [ dont-emmental-4 -> fr:dont-emmental-4  ]  [ dont-emmental -> fr:dont-emmental  ]  [ dont -> fr:dont  ]  [ 2 -> fr:2  ]  [ beurre -> fr:beurre  ]  [ eau -> fr:eau  ]  [ proteines-de-lait -> fr:proteines-de-lait  ]  [ proteines-de -> fr:proteines-de  ]  [ proteines -> fr:proteines  ]  [ amidons-transformes-de-mais-et-ou-pomme-de-terre -> fr:amidons-transformes-de-mais-et-ou-pomme-de-terre  ]  [ amidons-transformes-de-mais-et-ou-pomme-de -> fr:amidons-transformes-de-mais-et-ou-pomme-de  ]  [ amidons-transformes-de-mais-et-ou-pomme -> fr:amidons-transformes-de-mais-et-ou-pomme  ]  [ amidons-transformes-de-mais-et-ou -> fr:amidons-transformes-de-mais-et-ou  ]  [ amidons-transformes-de-mais-et -> fr:amidons-transformes-de-mais-et  ]  [ amidons-transformes-de-mais -> fr:amidons-transformes-de-mais  ]  [ amidons-transformes-de -> fr:amidons-transformes-de  ]  [ amidons-transformes -> fr:amidons-transformes  ]  [ amidons -> fr:amidons  ]  [ lactoserum -> fr:lactoserum  ]  [ sels -> fr:sels  ]  [ citrates-de-sodium -> en:e331  -> exists  ]  [ polyphosphates -> en:e452  -> exists  ]  [ carraghenanes -> en:e407  -> exists  ]  [ jambon-cuit-choix-sans-polyphosphates-14 -> fr:jambon-cuit-choix-sans-polyphosphates-14  ]  [ jambon-cuit-choix-sans-polyphosphates -> fr:jambon-cuit-choix-sans-polyphosphates  ]  [ jambon-cuit-choix-sans -> fr:jambon-cuit-choix-sans  ]  [ jambon-cuit-choix -> fr:jambon-cuit-choix  ]  [ jambon-cuit -> fr:jambon-cuit  ]  [ jambon -> fr:jambon  ]  [ 7 -> fr:7  ]  [ jambon-de-porc -> fr:jambon-de-porc  ]  [ jambon-de -> fr:jambon-de  ]  [ jambon -> fr:jambon  ]  [ eau -> fr:eau  ]  [ sel -> fr:sel  ]  [ sirop-de-glucose -> fr:sirop-de-glucose  ]  [ sirop-de -> fr:sirop-de  ]  [ sirop -> fr:sirop  ]  [ dextrose -> fr:dextrose  ]  [ aromes -> fr:aromes  ]  [ erythorbate-de-sodium -> fr:erythorbate-de-sodium  ]  [ erythorbate-de -> fr:erythorbate-de  ]  [ erythorbate -> fr:erythorbate  ]  [ nitrite-de-sodium -> en:e250  -> exists  ]  [ matiere-grasse-vegetale-raffinee-de-colza -> fr:matiere-grasse-vegetale-raffinee-de-colza  ]  [ matiere-grasse-vegetale-raffinee-de -> fr:matiere-grasse-vegetale-raffinee-de  ]  [ matiere-grasse-vegetale-raffinee -> fr:matiere-grasse-vegetale-raffinee  ]  [ matiere-grasse-vegetale -> fr:matiere-grasse-vegetale  ]  [ matiere-grasse -> fr:matiere-grasse  ]  [ matiere -> fr:matiere  ]  [ beurre-concentre -> fr:beurre-concentre  ]  [ beurre -> fr:beurre  ]  [ carotenoides -> en:e160  -> exists  ]  [ mono -> fr:mono  ]  [ diglycerides-d-acides-gras -> fr:diglycerides-d-acides-gras  ]  [ diglycerides-d-acides -> fr:diglycerides-d-acides  ]  [ diglycerides-d -> fr:diglycerides-d  ]  [ diglycerides -> fr:diglycerides  ] ",
 
       "additives_prev":" [ pain-de-mie-49 -> fr:pain-de-mie-49  ]  [ pain-de-mie -> fr:pain-de-mie  ]  [ pain-de -> fr:pain-de  ]  [ pain -> fr:pain  ]  [ 3 -> fr:3  ]  [ farine-de-ble -> fr:farine-de-ble  ]  [ farine-de -> fr:farine-de  ]  [ farine -> fr:farine  ]  [ eau -> fr:eau  ]  [ huile-de-colza -> fr:huile-de-colza  ]  [ huile-de -> fr:huile-de  ]  [ huile -> fr:huile  ]  [ sel -> fr:sel  ]  [ dextrose -> fr:dextrose  ]  [ levure -> fr:levure  ]  [ propionate-de-calcium -> en:e282  -> exists  ]  [ mono-et-diglycerides-d-acides-gras -> en:e471  -> exists  ]  [ lecithines -> en:e322  -> exists  ]  [ gluten-de-ble -> fr:gluten-de-ble  ]  [ gluten-de -> fr:gluten-de  ]  [ gluten -> fr:gluten  ]  [ gomme-xanthane -> en:e415  -> exists  ]  [ agent -> fr:agent  ]  [ de-la-farine -> fr:de-la-farine  ]  [ de-la -> fr:de-la  ]  [ de -> fr:de  ]  [ acide-ascorbique -> en:e300  -> exists  ]  [ fromage-fondu-28 -> fr:fromage-fondu-28  ]  [ fromage-fondu -> fr:fromage-fondu  ]  [ fromage -> fr:fromage  ]  [ fromages-14 -> fr:fromages-14  ]  [ fromages -> fr:fromages  ]  [ dont-emmental-4 -> fr:dont-emmental-4  ]  [ dont-emmental -> fr:dont-emmental  ]  [ dont -> fr:dont  ]  [ 2 -> fr:2  ]  [ beurre -> fr:beurre  ]  [ eau -> fr:eau  ]  [ proteines-de-lait -> fr:proteines-de-lait  ]  [ proteines-de -> fr:proteines-de  ]  [ proteines -> fr:proteines  ]  [ amidons-transformes-de-mais-et-ou-pomme-de-terre -> fr:amidons-transformes-de-mais-et-ou-pomme-de-terre  ]  [ amidons-transformes-de-mais-et-ou-pomme-de -> fr:amidons-transformes-de-mais-et-ou-pomme-de  ]  [ amidons-transformes-de-mais-et-ou-pomme -> fr:amidons-transformes-de-mais-et-ou-pomme  ]  [ amidons-transformes-de-mais-et-ou -> fr:amidons-transformes-de-mais-et-ou  ]  [ amidons-transformes-de-mais-et -> fr:amidons-transformes-de-mais-et  ]  [ amidons-transformes-de-mais -> fr:amidons-transformes-de-mais  ]  [ amidons-transformes-de -> fr:amidons-transformes-de  ]  [ amidons-transformes -> fr:amidons-transformes  ]  [ amidons -> fr:amidons  ]  [ lactoserum -> fr:lactoserum  ]  [ sels -> fr:sels  ]  [ citrates-de-sodium -> en:e331  -> exists  ]  [ polyphosphates -> en:e452  -> exists  ]  [ carraghenanes -> en:e407  -> exists  ]  [ jambon-cuit-choix-sans-polyphosphates-14 -> fr:jambon-cuit-choix-sans-polyphosphates-14  ]  [ jambon-cuit-choix-sans-polyphosphates -> fr:jambon-cuit-choix-sans-polyphosphates  ]  [ jambon-cuit-choix-sans -> fr:jambon-cuit-choix-sans  ]  [ jambon-cuit-choix -> fr:jambon-cuit-choix  ]  [ jambon-cuit -> fr:jambon-cuit  ]  [ jambon -> fr:jambon  ]  [ 7 -> fr:7  ]  [ jambon-de-porc -> fr:jambon-de-porc  ]  [ jambon-de -> fr:jambon-de  ]  [ jambon -> fr:jambon  ]  [ eau -> fr:eau  ]  [ sel -> fr:sel  ]  [ sirop-de-glucose -> fr:sirop-de-glucose  ]  [ sirop-de -> fr:sirop-de  ]  [ sirop -> fr:sirop  ]  [ dextrose -> fr:dextrose  ]  [ aromes -> fr:aromes  ]  [ erythorbate-de-sodium -> fr:erythorbate-de-sodium  ]  [ erythorbate-de -> fr:erythorbate-de  ]  [ erythorbate -> fr:erythorbate  ]  [ nitrite-de-sodium -> en:e250  -> exists  ]  [ matiere-grasse-vegetale-raffinee-de-colza -> fr:matiere-grasse-vegetale-raffinee-de-colza  ]  [ matiere-grasse-vegetale-raffinee-de -> fr:matiere-grasse-vegetale-raffinee-de  ]  [ matiere-grasse-vegetale-raffinee -> fr:matiere-grasse-vegetale-raffinee  ]  [ matiere-grasse-vegetale -> fr:matiere-grasse-vegetale  ]  [ matiere-grasse -> fr:matiere-grasse  ]  [ matiere -> fr:matiere  ]  [ beurre-concentre -> fr:beurre-concentre  ]  [ beurre -> fr:beurre  ]  [ carotenoides -> en:e160  -> exists  ]  [ mono -> fr:mono  ]  [ diglycerides-d-acides-gras -> fr:diglycerides-d-acides-gras  ]  [ diglycerides-d-acides -> fr:diglycerides-d-acides  ]  [ diglycerides-d -> fr:diglycerides-d  ]  [ diglycerides -> fr:diglycerides  ] ",
Line 1,195: Line 1,195:     
       ],
 
       ],
       "image_nutrition_thumb_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/nutrition_fr.13.100.jpg",
+
       "image_nutrition_thumb_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/nutrition_fr.13.100.jpg",
 
       "packaging_debug_tags":[   
 
       "packaging_debug_tags":[   
   Line 1,240: Line 1,240:     
       ],
 
       ],
       "image_nutrition_url":"http://static.openfoodfacts.org/images/products/322/247/589/3421/nutrition_fr.13.400.jpg",
+
       "image_nutrition_url":"https://static.openfoodfacts.org/images/products/322/247/589/3421/nutrition_fr.13.400.jpg",
 
       "id":"3222475893421"
 
       "id":"3222475893421"
 
   },
 
   },
Line 1,259: Line 1,259:  
* code : barcode of the product (can be EAN-13 or internal codes for some food stores), for products without a barcode, Open Food Facts assigns a number starting with the 200 reserved prefix
 
* code : barcode of the product (can be EAN-13 or internal codes for some food stores), for products without a barcode, Open Food Facts assigns a number starting with the 200 reserved prefix
 
=====List of List of barcodes beginning with a given number =====
 
=====List of List of barcodes beginning with a given number =====
* http://world.openfoodfacts.org/codes.json
+
* https://world.openfoodfacts.org/codes.json
* http://world.openfoodfacts.org/codes.xml
+
* https://world.openfoodfacts.org/codes.xml
 
=====List of barcodes beginning with 3596710 =====
 
=====List of barcodes beginning with 3596710 =====
* http://world.openfoodfacts.org/code/3596710xxxxxx.json
+
* https://world.openfoodfacts.org/code/3596710xxxxxx.json
* http://world.openfoodfacts.org/code/3596710xxxxxx.xml
+
* https://world.openfoodfacts.org/code/3596710xxxxxx.xml
    
==== Quantity and unit ====
 
==== Quantity and unit ====
Line 1,277: Line 1,277:  
* brands_tags
 
* brands_tags
 
=====List of Brands=====
 
=====List of Brands=====
* http://world.openfoodfacts.org/brands.json
+
* https://world.openfoodfacts.org/brands.json
* http://world.openfoodfacts.org/brands.xml
+
* https://world.openfoodfacts.org/brands.xml
 
=====Individual Brand=====
 
=====Individual Brand=====
* http://world.openfoodfacts.org/brand/monoprix.json
+
* https://world.openfoodfacts.org/brand/monoprix.json
* http://world.openfoodfacts.org/brand/monoprix.xml
+
* https://world.openfoodfacts.org/brand/monoprix.xml
    
==== Product images ====
 
==== Product images ====
Line 1,308: Line 1,308:  
Languages on the packaging of the product.
 
Languages on the packaging of the product.
 
=====List of languages present on packaging =====
 
=====List of languages present on packaging =====
* http://world.openfoodfacts.org/languages.json
+
* https://world.openfoodfacts.org/languages.json
* http://world.openfoodfacts.org/languages.xml
+
* https://world.openfoodfacts.org/languages.xml
 
=====List of products with given language on packaging =====
 
=====List of products with given language on packaging =====
* http://world.openfoodfacts.org/language/italian.json
+
* https://world.openfoodfacts.org/language/italian.json
* http://world.openfoodfacts.org/language/italian.xml
+
* https://world.openfoodfacts.org/language/italian.xml
 
=====List of products in Italian and Chinese =====
 
=====List of products in Italian and Chinese =====
* http://world.openfoodfacts.org/language/italian/language/chinese.json
+
* https://world.openfoodfacts.org/language/italian/language/chinese.json
 
===== List of multilingual products =====
 
===== List of multilingual products =====
* http://world.openfoodfacts.org/language/multilingual.json
+
* https://world.openfoodfacts.org/language/multilingual.json
* http://world.openfoodfacts.org/language/multilingual.xml
+
* https://world.openfoodfacts.org/language/multilingual.xml
 
===== List of products by language count =====
 
===== List of products by language count =====
* http://world.openfoodfacts.org/language/1.json
+
* https://world.openfoodfacts.org/language/1.json
* http://world.openfoodfacts.org/language/1.xml
+
* https://world.openfoodfacts.org/language/1.xml
* http://world.openfoodfacts.org/language/2.json
+
* https://world.openfoodfacts.org/language/2.json
* http://world.openfoodfacts.org/language/2.xml
+
* https://world.openfoodfacts.org/language/2.xml
* http://world.openfoodfacts.org/language/3.json
+
* https://world.openfoodfacts.org/language/3.json
* http://world.openfoodfacts.org/language/3.xml
+
* https://world.openfoodfacts.org/language/3.xml
 
=====Getting suggestions for languages=====
 
=====Getting suggestions for languages=====
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=languages&string=a
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=languages&string=a
      Line 1,336: Line 1,336:  
For a list of all taxonomized values in all supported languages, please refer to the [[Global labels taxonomy]]
 
For a list of all taxonomized values in all supported languages, please refer to the [[Global labels taxonomy]]
 
=====List of labels=====
 
=====List of labels=====
* http://world.openfoodfacts.org/labels.json
+
* https://world.openfoodfacts.org/labels.json
* http://world.openfoodfacts.org/labels.xml
+
* https://world.openfoodfacts.org/labels.xml
 
=====Individual label=====
 
=====Individual label=====
* http://world.openfoodfacts.org/label/utz-certified.json
+
* https://world.openfoodfacts.org/label/utz-certified.json
* http://world.openfoodfacts.org/label/utz-certified.xml
+
* https://world.openfoodfacts.org/label/utz-certified.xml
    
=====Getting suggestions for labels=====
 
=====Getting suggestions for labels=====
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=labels&string=a
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=labels&string=a
    
====Categories====
 
====Categories====
Line 1,356: Line 1,356:     
=====List of categories=====
 
=====List of categories=====
* http://world.openfoodfacts.org/categories.json
+
* https://world.openfoodfacts.org/categories.json
* http://world.openfoodfacts.org/categories.xml
+
* https://world.openfoodfacts.org/categories.xml
 
=====Individual category=====
 
=====Individual category=====
* http://world.openfoodfacts.org/category/baby-foods.json
+
* https://world.openfoodfacts.org/category/baby-foods.json
* http://world.openfoodfacts.org/category/baby-foods.xml
+
* https://world.openfoodfacts.org/category/baby-foods.xml
 
=====Getting suggestions for categories=====
 
=====Getting suggestions for categories=====
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=categories&string=a
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=categories&string=a
    
==== Location of a product (from country to store) ====
 
==== Location of a product (from country to store) ====
Line 1,383: Line 1,383:  
* countries_fr
 
* countries_fr
 
======List of Countries ======
 
======List of Countries ======
* http://world.openfoodfacts.org/countries.json
+
* https://world.openfoodfacts.org/countries.json
* http://world.openfoodfacts.org/countries.xml
+
* https://world.openfoodfacts.org/countries.xml
 
======Individual Country ======
 
======Individual Country ======
* http://world.openfoodfacts.org/country/france.json
+
* https://world.openfoodfacts.org/country/france.json
* http://world.openfoodfacts.org/country/france.xml
+
* https://world.openfoodfacts.org/country/france.xml
 
======Getting suggestions for Countries======
 
======Getting suggestions for Countries======
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=countries&string=f
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=countries&string=f
 
=====Purchase place of products=====
 
=====Purchase place of products=====
 
* purchase_places
 
* purchase_places
 
======List of purchase places ======
 
======List of purchase places ======
* http://world.openfoodfacts.org/purchase-places.json
+
* https://world.openfoodfacts.org/purchase-places.json
* http://world.openfoodfacts.org/purchase-places.xml
+
* https://world.openfoodfacts.org/purchase-places.xml
 
======Individual purchase place ======
 
======Individual purchase place ======
* http://world.openfoodfacts.org/purchase-place/marseille-5.json
+
* https://world.openfoodfacts.org/purchase-place/marseille-5.json
* http://world.openfoodfacts.org/purchase-place/marseille-5.xml
+
* https://world.openfoodfacts.org/purchase-place/marseille-5.xml
 
=====Store of products=====
 
=====Store of products=====
 
* stores
 
* stores
 
======List of Stores======
 
======List of Stores======
* http://world.openfoodfacts.org/stores.json
+
* https://world.openfoodfacts.org/stores.json
* http://world.openfoodfacts.org/stores.xml
+
* https://world.openfoodfacts.org/stores.xml
 
======Individual Store======
 
======Individual Store======
* http://world.openfoodfacts.org/store/super-u.json
+
* https://world.openfoodfacts.org/store/super-u.json
* http://world.openfoodfacts.org/store/super-u.xml
+
* https://world.openfoodfacts.org/store/super-u.xml
    
==== Composition of a product : ingredients, detected ingredients, traces, allergens ====
 
==== Composition of a product : ingredients, detected ingredients, traces, allergens ====
Line 1,422: Line 1,422:  
*** text: the raw text of the detected ingredient
 
*** text: the raw text of the detected ingredient
 
** ingredients_tags
 
** ingredients_tags
* The ingredients are not yet taxonomized on [http://world.openfoodfacts.org Open Food Facts]. They are taxonomized on [http://world.openbeautyfacts.org Open Beauty Facts]
+
* The ingredients are not yet taxonomized on [https://world.openfoodfacts.org Open Food Facts]. They are taxonomized on [https://world.openbeautyfacts.org Open Beauty Facts]
* The taxonomies of ingredients need expansion:  [[Global ingredients taxonomy]] (OFF), [http://en.wiki.openbeautyfacts.org/Global_ingredients_taxonomy Global ingredients taxonomy Open Beauty Facts]
+
* The taxonomies of ingredients need expansion:  [[Global ingredients taxonomy]] (OFF), [https://en.wiki.openbeautyfacts.org/Global_ingredients_taxonomy Global ingredients taxonomy Open Beauty Facts]
 
====== List of detected ingredients ======
 
====== List of detected ingredients ======
* http://world.openfoodfacts.org/ingredients.json
+
* https://world.openfoodfacts.org/ingredients.json
* http://world.openfoodfacts.org/ingredients.xml
+
* https://world.openfoodfacts.org/ingredients.xml
 
====== List of products where a specific ingredient has been detected ======
 
====== List of products where a specific ingredient has been detected ======
* http://world.openfoodfacts.org/ingredient/sucre.xml
+
* https://world.openfoodfacts.org/ingredient/sucre.xml
* http://world.openfoodfacts.org/ingredient/sucre.json
+
* https://world.openfoodfacts.org/ingredient/sucre.json
 
======Getting suggestions for ingredients (ONLY FOR OBF at the moment) ======
 
======Getting suggestions for ingredients (ONLY FOR OBF at the moment) ======
* http://world.openbeautyfacts.org/cgi/suggest.pl?lc=fr&tagtype=ingredients&string=f
+
* https://world.openbeautyfacts.org/cgi/suggest.pl?lc=fr&tagtype=ingredients&string=f
    
===== Palm Oil Detection =====  
 
===== Palm Oil Detection =====  
Line 1,442: Line 1,442:  
====== Ingredients from palm oil ======
 
====== Ingredients from palm oil ======
 
======= List of ingredients from palm oil =======
 
======= List of ingredients from palm oil =======
* http://world.openfoodfacts.org/ingredients-from-palm-oil.json
+
* https://world.openfoodfacts.org/ingredients-from-palm-oil.json
* http://world.openfoodfacts.org/ingredients-from-palm-oil.xml
+
* https://world.openfoodfacts.org/ingredients-from-palm-oil.xml
 
======= List of products where a specific ingredient from palm oil has been detected =======
 
======= List of products where a specific ingredient from palm oil has been detected =======
* http://world.openfoodfacts.org/ingredients-from-palm-oil/huile-de-palme.json
+
* https://world.openfoodfacts.org/ingredients-from-palm-oil/huile-de-palme.json
* http://world.openfoodfacts.org/ingredients-from-palm-oil/huile-de-palme.xml
+
* https://world.openfoodfacts.org/ingredients-from-palm-oil/huile-de-palme.xml
    
====== Ingredients that may be from palm oil ======
 
====== Ingredients that may be from palm oil ======
 
======= List of ingredients that may be from palm oil =======
 
======= List of ingredients that may be from palm oil =======
* http://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil.json
+
* https://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil.json
* http://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil.xml
+
* https://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil.xml
    
======= List of products where a specific ingredient that may be from palm oil has been detected =======
 
======= List of products where a specific ingredient that may be from palm oil has been detected =======
* http://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil/e470b-stearate-de-magnesium.json
+
* https://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil/e470b-stearate-de-magnesium.json
* http://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil/e470b-stearate-de-magnesium.xml
+
* https://world.openfoodfacts.org/ingredients-that-may-be-from-palm-oil/e470b-stearate-de-magnesium.xml
    
=====Trace of products=====
 
=====Trace of products=====
Line 1,461: Line 1,461:  
* traces_tags
 
* traces_tags
 
======List of Traces ======
 
======List of Traces ======
* http://world.openfoodfacts.org/traces.json
+
* https://world.openfoodfacts.org/traces.json
* http://world.openfoodfacts.org/traces.xml
+
* https://world.openfoodfacts.org/traces.xml
 
======Individual Trace ======
 
======Individual Trace ======
* http://world.openfoodfacts.org/trace/eggs.json
+
* https://world.openfoodfacts.org/trace/eggs.json
* http://world.openfoodfacts.org/trace/eggs.xml
+
* https://world.openfoodfacts.org/trace/eggs.xml
    
======Getting suggestions for traces ======
 
======Getting suggestions for traces ======
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=traces&string=m
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=traces&string=m
    
===== Food (or cosmetic) additives =====
 
===== Food (or cosmetic) additives =====
Line 1,476: Line 1,476:  
For a list of all taxonomized values in all supported languages, please refer to the [[Global additives taxonomy]]
 
For a list of all taxonomized values in all supported languages, please refer to the [[Global additives taxonomy]]
 
====== List of Additives ======
 
====== List of Additives ======
* http://world.openfoodfacts.org/additives.json
+
* https://world.openfoodfacts.org/additives.json
* http://world.openfoodfacts.org/additives.xml
+
* https://world.openfoodfacts.org/additives.xml
 
====== Individual Additive ======
 
====== Individual Additive ======
* http://world.openfoodfacts.org/additive/e301-sodium-ascorbate.json
+
* https://world.openfoodfacts.org/additive/e301-sodium-ascorbate.json
* http://world.openfoodfacts.org/additive/e301-sodium-ascorbate.xml
+
* https://world.openfoodfacts.org/additive/e301-sodium-ascorbate.xml
 
====== Getting suggestions for additives ======
 
====== Getting suggestions for additives ======
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=additives&string=e
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=additives&string=e
    
=====Allergens of products=====
 
=====Allergens of products=====
 
======List of allergens======
 
======List of allergens======
* http://world.openfoodfacts.org/allergens.json
+
* https://world.openfoodfacts.org/allergens.json
* http://world.openfoodfacts.org/allergens.xml
+
* https://world.openfoodfacts.org/allergens.xml
 
======Individual allergen======
 
======Individual allergen======
* http://world.openfoodfacts.org/allergen/fish.json
+
* https://world.openfoodfacts.org/allergen/fish.json
* http://world.openfoodfacts.org/allergen/fish.xml
+
* https://world.openfoodfacts.org/allergen/fish.xml
    
======Getting suggestions for allergens ======
 
======Getting suggestions for allergens ======
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=allergens&string=a
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=allergens&string=a
    
==== Nutrition values ====
 
==== Nutrition values ====
Line 1,608: Line 1,608:     
===== Nutrition grades =====
 
===== Nutrition grades =====
* For more details, see [http://fr.openfoodfacts.org/score-nutritionnel-experimental-france the page explaining the grade computation]
+
* For more details, see [https://fr.openfoodfacts.org/score-nutritionnel-experimental-france the page explaining the grade computation]
 
* 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>
 
====== List of all nutrition grades ======
 
====== List of all nutrition grades ======
* http://world.openfoodfacts.org/nutrition-grades.json
+
* https://world.openfoodfacts.org/nutrition-grades.json
* http://world.openfoodfacts.org/nutrition-grades.xml
+
* https://world.openfoodfacts.org/nutrition-grades.xml
    
====== List of products with a given nutrition grade (from A to E, including unknown) ======
 
====== List of products with a given nutrition grade (from A to E, including unknown) ======
* http://world.openfoodfacts.org/nutrition-grade/a.json
+
* https://world.openfoodfacts.org/nutrition-grade/a.json
* http://world.openfoodfacts.org/nutrition-grade/a.xml
+
* https://world.openfoodfacts.org/nutrition-grade/a.xml
* http://world.openfoodfacts.org/nutrition-grade/e.json
+
* https://world.openfoodfacts.org/nutrition-grade/e.json
* http://world.openfoodfacts.org/nutrition-grade/e.xml
+
* https://world.openfoodfacts.org/nutrition-grade/e.xml
* http://world.openfoodfacts.org/nutrition-grade/unknown.json
+
* https://world.openfoodfacts.org/nutrition-grade/unknown.json
* http://world.openfoodfacts.org/nutrition-grade/unknown.xml
+
* https://world.openfoodfacts.org/nutrition-grade/unknown.xml
    
===== Nutrients levels =====
 
===== Nutrients levels =====
 
====== List of all nutrition levels ======
 
====== List of all nutrition levels ======
   −
* http://world.openfoodfacts.org/nutrient-levels.json
+
* https://world.openfoodfacts.org/nutrient-levels.json
* http://world.openfoodfacts.org/nutrient-levels.xml
+
* https://world.openfoodfacts.org/nutrient-levels.xml
    
====== List of products with fat in low quantity ======
 
====== List of products with fat in low quantity ======
* http://world.openfoodfacts.org/nutrient-level/fat-in-low-quantity.json
+
* https://world.openfoodfacts.org/nutrient-level/fat-in-low-quantity.json
* http://world.openfoodfacts.org/nutrient-level/fat-in-low-quantity.xml
+
* https://world.openfoodfacts.org/nutrient-level/fat-in-low-quantity.xml
    
===== Unknown Nutrients =====
 
===== Unknown Nutrients =====
 
They might be unknown for a good reason…
 
They might be unknown for a good reason…
 
======List of Unknown Nutrients ======
 
======List of Unknown Nutrients ======
*http://world.openfoodfacts.org/unknown-nutrients.json
+
*https://world.openfoodfacts.org/unknown-nutrients.json
* http://world.openfoodfacts.org/unknown-nutrients.xml
+
* https://world.openfoodfacts.org/unknown-nutrients.xml
 
======Individual Unknown Nutrients======
 
======Individual Unknown Nutrients======
* http://world.openfoodfacts.org/unknown-nutrient/sulfates.json
+
* https://world.openfoodfacts.org/unknown-nutrient/sulfates.json
* http://world.openfoodfacts.org/unknown-nutrient/sulfates.xml
+
* https://world.openfoodfacts.org/unknown-nutrient/sulfates.xml
    
====Packaging====
 
====Packaging====
Line 1,647: Line 1,647:  
* Packaging are not taxonomized yet.
 
* Packaging are not taxonomized yet.
 
=====List of Packagings=====
 
=====List of Packagings=====
* http://world.openfoodfacts.org/packaging.json
+
* https://world.openfoodfacts.org/packaging.json
* http://world.openfoodfacts.org/packaging.xml
+
* https://world.openfoodfacts.org/packaging.xml
 
=====Individual Packaging=====
 
=====Individual Packaging=====
* http://world.openfoodfacts.org/packaging/cardboard.json
+
* https://world.openfoodfacts.org/packaging/cardboard.json
* http://world.openfoodfacts.org/packaging/cardboard.xml
+
* https://world.openfoodfacts.org/packaging/cardboard.xml
 
=====Packager codes=====
 
=====Packager codes=====
 
* emb_codes
 
* emb_codes
Line 1,657: Line 1,657:  
* first_packaging_code_geo : coordinates corresponding to the first packaging code indicated
 
* first_packaging_code_geo : coordinates corresponding to the first packaging code indicated
 
======List of Packager codes ======
 
======List of Packager codes ======
* http://world.openfoodfacts.org/packager-codes.json
+
* https://world.openfoodfacts.org/packager-codes.json
* http://world.openfoodfacts.org/packager-codes.xml
+
* https://world.openfoodfacts.org/packager-codes.xml
 
======List of products with given Packager code ======
 
======List of products with given Packager code ======
 
=======EMB (France specific)=======
 
=======EMB (France specific)=======
* http://world.openfoodfacts.org/packager-code/emb-35069c.json
+
* https://world.openfoodfacts.org/packager-code/emb-35069c.json
* http://world.openfoodfacts.org/packager-code/emb-35069c.xml
+
* https://world.openfoodfacts.org/packager-code/emb-35069c.xml
 
=======EU Codes (Europe-wide) =======
 
=======EU Codes (Europe-wide) =======
* http://world.openfoodfacts.org/packager-code/fr-38-012-001-ec.json
+
* https://world.openfoodfacts.org/packager-code/fr-38-012-001-ec.json
* http://world.openfoodfacts.org/packager-code/fr-38-012-001-ec.xml
+
* https://world.openfoodfacts.org/packager-code/fr-38-012-001-ec.xml
 
======= Note =======
 
======= Note =======
 
Other codes might be present, but we don't have specific support yet
 
Other codes might be present, but we don't have specific support yet
 
======List of Packaging cities ======
 
======List of Packaging cities ======
* http://world.openfoodfacts.org/cities.json
+
* https://world.openfoodfacts.org/cities.json
* http://world.openfoodfacts.org/cities.xml
+
* https://world.openfoodfacts.org/cities.xml
 
======List of products with given Packaging city ======
 
======List of products with given Packaging city ======
* http://world.openfoodfacts.org/city/argenteuil-val-d-oise-france.json
+
* https://world.openfoodfacts.org/city/argenteuil-val-d-oise-france.json
* http://world.openfoodfacts.org/city/argenteuil-val-d-oise-france.xml
+
* https://world.openfoodfacts.org/city/argenteuil-val-d-oise-france.xml
       
==== Contributors ====
 
==== Contributors ====
 
===== Contributors =====
 
===== Contributors =====
* http://world.openfoodfacts.org/contributor/teolemon.json
+
* https://world.openfoodfacts.org/contributor/teolemon.json
* http://world.openfoodfacts.org/contributors.json
+
* https://world.openfoodfacts.org/contributors.json
 
===== Photographers =====
 
===== Photographers =====
* http://world.openfoodfacts.org/photographer/teolemon.json
+
* https://world.openfoodfacts.org/photographer/teolemon.json
* http://world.openfoodfacts.org/photographers.json
+
* https://world.openfoodfacts.org/photographers.json
 
===== Informers =====
 
===== Informers =====
* http://world.openfoodfacts.org/informer/teolemon.json
+
* https://world.openfoodfacts.org/informer/teolemon.json
* http://world.openfoodfacts.org/informers.json
+
* https://world.openfoodfacts.org/informers.json
    
==== Product status & modification history ====
 
==== Product status & modification history ====
Line 1,697: Line 1,697:  
For all possible values, please refer to the [[Global states taxonomy]]
 
For all possible values, please refer to the [[Global states taxonomy]]
 
======List of States ======
 
======List of States ======
* http://world.openfoodfacts.org/states.json
+
* https://world.openfoodfacts.org/states.json
* http://world.openfoodfacts.org/states.xml
+
* https://world.openfoodfacts.org/states.xml
 
======Individual Status ======
 
======Individual Status ======
* http://world.openfoodfacts.org/state/complete.json
+
* https://world.openfoodfacts.org/state/complete.json
* http://world.openfoodfacts.org/state/complete.xml
+
* https://world.openfoodfacts.org/state/complete.xml
 
======Getting suggestions for states======
 
======Getting suggestions for states======
* http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=states&string=a
+
* https://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=states&string=a
 
===== Last Edit Dates =====
 
===== Last Edit Dates =====
 
====== List of Last Edit Dates ======
 
====== List of Last Edit Dates ======
* http://world.openfoodfacts.org/last-edit-dates.json
+
* https://world.openfoodfacts.org/last-edit-dates.json
* http://world.openfoodfacts.org/last-edit-dates.xml
+
* https://world.openfoodfacts.org/last-edit-dates.xml
 
====== List of products with a given last edit date ======
 
====== List of products with a given last edit date ======
* http://world.openfoodfacts.org/last-edit-date/2014.json
+
* https://world.openfoodfacts.org/last-edit-date/2014.json
* http://world.openfoodfacts.org/last-edit-date/2016-08.json
+
* https://world.openfoodfacts.org/last-edit-date/2016-08.json
* http://world.openfoodfacts.org/last-edit-date/2016-05-19.json
+
* https://world.openfoodfacts.org/last-edit-date/2016-05-19.json
* http://world.openfoodfacts.org/last-edit-date/2014.xml
+
* https://world.openfoodfacts.org/last-edit-date/2014.xml
* http://world.openfoodfacts.org/last-edit-date/2016-08.xml
+
* https://world.openfoodfacts.org/last-edit-date/2016-08.xml
* http://world.openfoodfacts.org/last-edit-date/2016-05-19.xml
+
* https://world.openfoodfacts.org/last-edit-date/2016-05-19.xml
 
===== Entry dates=====
 
===== Entry dates=====
 
====== List of entry dates ======
 
====== List of entry dates ======
* http://world.openfoodfacts.org/entry-dates.json
+
* https://world.openfoodfacts.org/entry-dates.json
* http://world.openfoodfacts.org/entry-dates.xml
+
* https://world.openfoodfacts.org/entry-dates.xml
 
====== List of products with a given entry date ======
 
====== List of products with a given entry date ======
* http://world.openfoodfacts.org/entry-dates/2014.xml
+
* https://world.openfoodfacts.org/entry-dates/2014.xml
* http://world.openfoodfacts.org/entry-dates/2016-08.xml
+
* https://world.openfoodfacts.org/entry-dates/2016-08.xml
* http://world.openfoodfacts.org/entry-dates/2016-05-19.xml
+
* https://world.openfoodfacts.org/entry-dates/2016-05-19.xml
* http://world.openfoodfacts.org/entry-dates/2014.json
+
* https://world.openfoodfacts.org/entry-dates/2014.json
* http://world.openfoodfacts.org/entry-dates/2016-08.json
+
* https://world.openfoodfacts.org/entry-dates/2016-08.json
* http://world.openfoodfacts.org/entry-dates/2016-05-19.json
+
* https://world.openfoodfacts.org/entry-dates/2016-05-19.json
    
=== Searching for products ===
 
=== Searching for products ===
Line 1,731: Line 1,731:  
====== Core principle: Combine tags to get custom results ======
 
====== Core principle: Combine tags to get custom results ======
 
'''Combining tags is really powerful, letting you create thousands of custom APIs for your use case.'''
 
'''Combining tags is really powerful, letting you create thousands of custom APIs for your use case.'''
* http://world.openfoodfacts.org/packager-code/emb-35069c/brand/sojasun.json
+
* https://world.openfoodfacts.org/packager-code/emb-35069c/brand/sojasun.json
       
===== Advanced Search =====
 
===== Advanced Search =====
 
====== Query examples ======  
 
====== Query examples ======  
<pre>http://world.openfoodfacts.org/cgi/search.pl?search_terms=coke&search_simple=1&jqm=1</pre>
+
<pre>https://world.openfoodfacts.org/cgi/search.pl?search_terms=coke&search_simple=1&jqm=1</pre>
<pre>http://world.openfoodfacts.org/cgi/search.pl?search_terms=banania&search_simple=1&action=process&json=1</pre>
+
<pre>https://world.openfoodfacts.org/cgi/search.pl?search_terms=banania&search_simple=1&action=process&json=1</pre>
<pre>http://world.openfoodfacts.org/cgi/search.pl?search_terms=banania&search_simple=1&action=process&xml=1</pre>
+
<pre>https://world.openfoodfacts.org/cgi/search.pl?search_terms=banania&search_simple=1&action=process&xml=1</pre>
    
====== Parameters ======
 
====== Parameters ======
You can basically use all the parameters you'd use in a [http://world.openfoodfacts.org/cgi/search.pl?action=display&sort_by=unique_scans_n&page_size=20&action=display graphical advanced search on the site]<br>
+
You can basically use all the parameters you'd use in a [https://world.openfoodfacts.org/cgi/search.pl?action=display&sort_by=unique_scans_n&page_size=20&action=display graphical advanced search on the site]<br>
    
<pre>
 
<pre>
search_url = "http://world.openfoodfacts.org/cgi/search.pl"
+
search_url = "https://world.openfoodfacts.org/cgi/search.pl"
 
search_terms2 # search terms
 
search_terms2 # search terms
   Line 1,961: Line 1,961:  
HTML 200 code + an html page with a link to login
 
HTML 200 code + an html page with a link to login
 
   
 
   
Example: http://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%2
+
Example: https://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%2
    
=== Authentification ===
 
=== Authentification ===
Line 1,967: Line 1,967:  
* password
 
* password
   −
WARNING: If the password is not correct, the API will currently "silently" fail, both for image addition and product data addition (will return HTML 200 code + an html page with a link to login - [http://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%2 example] )
+
WARNING: If the password is not correct, the API will currently "silently" fail, both for image addition and product data addition (will return HTML 200 code + an html page with a link to login - [https://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%2 example] )
    
==== Anonymous contribution ====
 
==== Anonymous contribution ====
Line 1,991: Line 1,991:     
* Use the POST method on:
 
* Use the POST method on:
<pre>Test server: http://world.openfoodfacts.net/cgi/product_image_upload.pl</pre>
+
<pre>Test server: https://world.openfoodfacts.net/cgi/product_image_upload.pl</pre>
<pre>Live server: http://world.openfoodfacts.org/cgi/product_image_upload.pl</pre>
+
<pre>Live server: https://world.openfoodfacts.org/cgi/product_image_upload.pl</pre>
 
<sup>(remember to do tests on world.openfoodfacts.net - login and password: off )</sup>
 
<sup>(remember to do tests on world.openfoodfacts.net - login and password: off )</sup>
   Line 2,250: Line 2,250:  
Values:
 
Values:
 
==== Rotating a photo ====
 
==== Rotating a photo ====
<pre>Test server: http://world.openfoodfacts.net/cgi/product_image_rotate.pl</pre>
+
<pre>Test server: https://world.openfoodfacts.net/cgi/product_image_rotate.pl</pre>
<pre>Live server: http://world.openfoodfacts.org/cgi/product_image_rotate.pl</pre>
+
<pre>Live server: https://world.openfoodfacts.org/cgi/product_image_rotate.pl</pre>
 
===== Values and output =====
 
===== Values and output =====
 
Parameters:
 
Parameters:
Line 2,284: Line 2,284:  
<br>
 
<br>
   −
<pre>Test server: http://world.openfoodfacts.net/cgi/product_image_crop.pl</pre>
+
<pre>Test server: https://world.openfoodfacts.net/cgi/product_image_crop.pl</pre>
<pre>Live server: http://world.openfoodfacts.org/cgi/product_image_crop.pl</pre>
+
<pre>Live server: https://world.openfoodfacts.org/cgi/product_image_crop.pl</pre>
 
=====Values=====
 
=====Values=====
 
<pre>
 
<pre>
Line 2,320: Line 2,320:  
We start from a source image (defined by barcode and id) as selected for ingredients. We ask Product Opener to process it (process_image=1). Product Opener returns a JSON. Processing is done using Tesseract (3 on preprod). The result is often cripped with errors. Take steps to avoid direct copy pasting into the ingredients field by your users.
 
We start from a source image (defined by barcode and id) as selected for ingredients. We ask Product Opener to process it (process_image=1). Product Opener returns a JSON. Processing is done using Tesseract (3 on preprod). The result is often cripped with errors. Take steps to avoid direct copy pasting into the ingredients field by your users.
   −
<pre>Test server: http://world.openfoodfacts.net/cgi/ingredients.pl</pre>
+
<pre>Test server: https://world.openfoodfacts.net/cgi/ingredients.pl</pre>
<pre>Live server: http://world.openfoodfacts.net/cgi/ingredients.pl</pre>
+
<pre>Live server: https://world.openfoodfacts.net/cgi/ingredients.pl</pre>
 
===== Values and output =====
 
===== Values and output =====
 
<pre>
 
<pre>
Line 2,349: Line 2,349:     
=== Posting a new product ===
 
=== Posting a new product ===
* URL: <pre>http://world.openfoodfacts.org/cgi/product_jqm2.pl</pre> (Product post)<sup>(remember to do tests on world.openfoodfacts.net - login and password: off )</sup>
+
* URL: <pre>https://world.openfoodfacts.org/cgi/product_jqm2.pl</pre> (Product post)<sup>(remember to do tests on world.openfoodfacts.net - login and password: off )</sup>
* URL for your tests : <pre>http://world.openfoodfacts.net/cgi/product_jqm2.pl</pre>
+
* URL for your tests : <pre>https://world.openfoodfacts.net/cgi/product_jqm2.pl</pre>
 
==== Quick overview ====
 
==== Quick overview ====
 
* var foodfact = { barcode : '0048151623426', name : 'Product name', energy: 500, energy_unit: "kJ", weight: 282 };
 
* var foodfact = { barcode : '0048151623426', name : 'Product name', energy: 500, energy_unit: "kJ", weight: 282 };
Line 2,370: Line 2,370:  
<sup>(remember to do tests on world.openfoodfacts.net - login and password: off)</sup><br>
 
<sup>(remember to do tests on world.openfoodfacts.net - login and password: off)</sup><br>
 
===== Query 1 : Unauthentified query =====
 
===== Query 1 : Unauthentified query =====
<pre>http://world.openfoodfacts.net/cgi/product_jqm2.pl?code=0048151623426&product_name=Maryland%20Choc%20Chip&quantity=230g&brand=Golden%20Cookies&nutriment_energy=450&nutriment_energy_unit=kJ&nutrition_data_per=serving&ingredients_text=Fortified%20wheat%20flour%2C%20Chocolate%20chips%20%2825%25%29%2C%20Sugar%2C%20Palm%20oil%2C%20Golden%20syrup%2C%20Whey%20and%20whey%20derivatives%20%28Milk%29%2C%20Raising%20agents%2C%20Salt%2C%20Flavouring&traces=Milk%2C+Soya%2C+Nuts%2C+Wheat</pre>
+
<pre>https://world.openfoodfacts.net/cgi/product_jqm2.pl?code=0048151623426&product_name=Maryland%20Choc%20Chip&quantity=230g&brand=Golden%20Cookies&nutriment_energy=450&nutriment_energy_unit=kJ&nutrition_data_per=serving&ingredients_text=Fortified%20wheat%20flour%2C%20Chocolate%20chips%20%2825%25%29%2C%20Sugar%2C%20Palm%20oil%2C%20Golden%20syrup%2C%20Whey%20and%20whey%20derivatives%20%28Milk%29%2C%20Raising%20agents%2C%20Salt%2C%20Flavouring&traces=Milk%2C+Soya%2C+Nuts%2C+Wheat</pre>
    
===== Result 2 =====
 
===== Result 2 =====
<pre>http://uk.openfoodfacts.net/product/0072417136160/maryland-choc-chip</pre>
+
<pre>https://uk.openfoodfacts.net/product/0072417136160/maryland-choc-chip</pre>
    
===== Query 2 : Authentified query =====
 
===== Query 2 : Authentified query =====
<pre>http://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%20GOUTER%20280G%208%20PORTIONS&quantity=282%20g&stores=Intermarch%C3%A9&nutriment_energy=500&nutriment_energy_unit=kJ&nutrition_data_per=serving</pre>
+
<pre>https://world.openfoodfacts.org/cgi/product_jqm2.pl?code=0048151623426&user_id=usernameexample&password=*****&product_name=KIRI%20GOUTER%20280G%208%20PORTIONS&quantity=282%20g&stores=Intermarch%C3%A9&nutriment_energy=500&nutriment_energy_unit=kJ&nutrition_data_per=serving</pre>
    
===== Result 2 =====
 
===== Result 2 =====
Line 2,652: Line 2,652:  
'''Very experimental. Do not rely on this for allergen or ingredient parsing yet.'''
 
'''Very experimental. Do not rely on this for allergen or ingredient parsing yet.'''
 
==== List of ingredients detected by the current experimental parser ====
 
==== List of ingredients detected by the current experimental parser ====
* http://world.openbeautyfacts.org/ingredients.json
+
* https://world.openbeautyfacts.org/ingredients.json
* http://world.openbeautyfacts.org/ingredients.xml
+
* https://world.openbeautyfacts.org/ingredients.xml
 
==== Products where the current experimental parser could not detect aluminium salts ====
 
==== Products where the current experimental parser could not detect aluminium salts ====
* http://world.openbeautyfacts.org/ingredient/-aluminum-salts.json
+
* https://world.openbeautyfacts.org/ingredient/-aluminum-salts.json
* http://world.openbeautyfacts.org/ingredient/-aluminum-salts.xml
+
* https://world.openbeautyfacts.org/ingredient/-aluminum-salts.xml
 
==== Products where the current experimental parser could detect aluminium salts ====
 
==== Products where the current experimental parser could detect aluminium salts ====
* http://world.openbeautyfacts.org/ingredient/aluminum-salts.json
+
* https://world.openbeautyfacts.org/ingredient/aluminum-salts.json
* http://world.openbeautyfacts.org/ingredient/aluminum-salts.xml
+
* https://world.openbeautyfacts.org/ingredient/aluminum-salts.xml
 
=== Periods after Opening ===
 
=== Periods after Opening ===
[http://en.wiki.openbeautyfacts.org/Global_period_after_opening_taxonomy Periods after opening taxonomy]
+
[https://en.wiki.openbeautyfacts.org/Global_period_after_opening_taxonomy Periods after opening taxonomy]
 
==== List of periods after opening ====
 
==== List of periods after opening ====
* http://world.openbeautyfacts.org/periods-after-opening.json
+
* https://world.openbeautyfacts.org/periods-after-opening.json
* http://world.openbeautyfacts.org/periods-after-opening.xml
+
* https://world.openbeautyfacts.org/periods-after-opening.xml
 
==== List of products with a given period after opening ====
 
==== List of products with a given period after opening ====
* http://world.openbeautyfacts.org/period-after-opening/12-months.json
+
* https://world.openbeautyfacts.org/period-after-opening/12-months.json
* http://world.openbeautyfacts.org/period-after-opening/12-months.xml
+
* https://world.openbeautyfacts.org/period-after-opening/12-months.xml

Navigation menu