Ocr

OCR on Ingredients

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

GET
/cgi/ingredients.pl
User-Agent<token>

Identification using the User-Agent header. This is recommended in all requests so that we can contact you if there are issues. If we cannot identify the source of problematic API queries, we may have to block them. User-Agent header in the format 'app_name/app_version (URL or contact info)'

In: header

Query Parameters

idstring
codestring

Barcode of the product

process_imagestring
ocr_enginestring

Response Body

curl -X GET "https://world.openfoodfacts.net/cgi/ingredients.pl?id=ingredients_en&code=4251105501381&process_image=1&ocr_engine=google_cloud_vision"
{
  "status": 1
}