OCR

OCR on Ingredients

Changed on

Open Food Facts uses optical character recognition (OCR) to retrieve nutritional data and other information from the product labels.

get/cgi/ingredients.pl

Request

  • Base URL
    https://world.openfoodfacts.net
  • Auth
    API 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

statusinteger

Example response

{
  "status": 1
}

Changes

    • breaking

      added the new required query request parameter code

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property status to the response with the status