OCR
OCR on Ingredients
Changed onOpen Food Facts uses optical character recognition (OCR) to retrieve nutritional data and other information from the product labels.
get/cgi/ingredients.pl
Request
- Base URLhttps://world.openfoodfacts.net
- AuthAPI key in header User-Agent
Query parameters
idstring required
Example:ingredients_en
codestring required
Example:4251105501381
Barcode of the product
process_imagestring required
Example:1
ocr_enginestring required
Example:google_cloud_vision
Response
OK
Example response
{
"status": 1
}Changes
- breaking
added the new required
queryrequest parametercode - breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
statusto the response with the status
- breaking