Line 1: |
Line 1: |
− | [[Category:Developer]] | + | [[Category:Developer]] [[Category:API]] |
− | [[Category:API]] | |
| | | |
| == Introduction == | | == Introduction == |
Line 8: |
Line 7: |
| * You can have a look at the source code of the app | | * You can have a look at the source code of the app |
| ** https://github.com/openfoodfacts/cordova-app/blob/master/www/off.js | | ** https://github.com/openfoodfacts/cordova-app/blob/master/www/off.js |
− | ** https://github.com/openfoodfacts/cordova-app/blob/master/www/index.html) | + | ** https://github.com/openfoodfacts/cordova-app/blob/master/www/index.html |
| * '''Anyone with Swagger (or equivalent knowledge) willing to help us document the API is most welcome :-)''' | | * '''Anyone with Swagger (or equivalent knowledge) willing to help us document the API is most welcome :-)''' |
| | | |
Line 1,240: |
Line 1,239: |
| | | |
| ==== Fields within a product ==== | | ==== Fields within a product ==== |
| + | ==== Name ==== |
| + | * product_name : name of the product : Coca Cola |
| + | * generic_name : name that shouldn't contain brands : Cola soda |
| + | ====Barcodes==== |
| + | * 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 ===== |
| + | * http://world.openfoodfacts.org/codes.json |
| + | * http://world.openfoodfacts.org/codes.xml |
| + | =====List of barcodes beginning with 3596710 ===== |
| + | * http://world.openfoodfacts.org/code/3596710xxxxxx.json |
| + | * http://world.openfoodfacts.org/code/3596710xxxxxx.xml |
| + | |
| + | ==== Quantity and unit ==== |
| + | * quantity : quantity and unit |
| + | ==== URL of the product page ==== |
| + | * url : url of the product page on Open Food Facts |
| + | |
| + | |
| + | |
| + | |
| + | ====Brands==== |
| + | * brands |
| + | * brands_tags |
| + | =====List of Brands===== |
| + | * http://world.openfoodfacts.org/brands.json |
| + | * http://world.openfoodfacts.org/brands.xml |
| + | =====Individual Brand===== |
| + | * http://world.openfoodfacts.org/brand/monoprix.json |
| + | * http://world.openfoodfacts.org/brand/monoprix.xml |
| + | |
| ==== Product images ==== | | ==== Product images ==== |
| * image_small_url | | * image_small_url |
Line 1,256: |
Line 1,285: |
| * "image_nutrition_small_url" | | * "image_nutrition_small_url" |
| * "image_nutrition_thumb_url" | | * "image_nutrition_thumb_url" |
− |
| |
− |
| |
| | | |
| ==== Languages ==== | | ==== Languages ==== |
Line 1,282: |
Line 1,309: |
| * http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=languages&string=a | | * http://world.openfoodfacts.org/cgi/suggest.pl?lc=fr&tagtype=languages&string=a |
| | | |
− |
| |
− |
| |
− | ==== Name ====
| |
− | * product_name : name of the product : Coca Cola
| |
− | * generic_name : name that shouldn't contain brands : Cola soda
| |
− | ====Barcodes====
| |
− | * 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 =====
| |
− | * http://world.openfoodfacts.org/codes.json
| |
− | * http://world.openfoodfacts.org/codes.xml
| |
− | =====List of barcodes beginning with 3596710 =====
| |
− | * http://world.openfoodfacts.org/code/3596710xxxxxx.json
| |
− | * http://world.openfoodfacts.org/code/3596710xxxxxx.xml
| |
− |
| |
− | ==== Quantity and unit ====
| |
− | * quantity : quantity and unit
| |
− | ==== URL of the product page ====
| |
− | * url : url of the product page on Open Food Facts
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | ====Brands====
| |
− | * brands
| |
− | * brands_tags
| |
− | =====List of Brands=====
| |
− | * http://world.openfoodfacts.org/brands.json
| |
− | * http://world.openfoodfacts.org/brands.xml
| |
− | =====Individual Brand=====
| |
− | * http://world.openfoodfacts.org/brand/monoprix.json
| |
− | * http://world.openfoodfacts.org/brand/monoprix.xml
| |
| | | |
| ====Labels==== | | ====Labels==== |