Get image predictions
Return image predictions based on various filters. The results can be filtered by model name, type, confidence, and more.
Query Parameters
The number of items to return
25
1 <= value
Page index to return (starting at 1)
1
1 <= value
The server type (=project) to use, such as 'off' (Open Food Facts), 'obf' (Open Beauty Facts),...
"off"
"off" | "obf" | "opff" | "opf" | "off_pro"
Filter by barcode value
if True, only return image predictions that have associated logos (only valid for universal-logo-detector image predictions). If false, only return image predictions that have no associated logos. Otherwise, return all image predictions.
null
filter by name of the image predictor model
filter by image ID. It should be a digit (raw images only), otherwise no result will be returned.
filter by type of the image predictor model
filter by model version value
filter by minimum confidence score value
0 <= value <= 1
Response Body
curl -X GET "https://robotoff.openfoodfacts.org/api/v1/image_predictions?count=25&page=1&server_type=off&barcode=5410041040807&model_name=universal-logo-detector&image_id=1&type=object_detection&model_version=string&min_confidence=1"
{
"status": "no_image_predictions",
"image_predictions": [
{}
],
"count": 0
}