Predict

Extract ingredient list from OCR

Extract and parse ingredient lists from OCR text

GET
/predict/ingredient_list

Query Parameters

ocr_urlstring

URL of the OCR JSON to process

Formaturi
aggregation_strategy?string

Strategy for aggregating ingredient entities

Default"simple"
Value in"simple" | "max" | "first"
model_version?string

Version of the ingredient extraction model

Default"1"

Response Body

curl -X GET "https://robotoff.openfoodfacts.org/api/v1/predict/ingredient_list?ocr_url=https%3A%2F%2Fstatic.openfoodfacts.org%2Fimages%2Fproducts%2F216%2F124%2F000%2F3089%2F1.json&aggregation_strategy=simple&model_version=1"
{
  "ingredients": [
    {}
  ]
}