Ann search
Approximate search for nearest neighbors of a random query logo
Return ID and distance of each logo found, the number of neighbors returned and the ID of the query logo.
Query Parameters
count?integer
Number of neighbors to return
Default
25Range
1 <= value <= 2000server_type?string
The server type (=project) to use, such as 'off' (Open Food Facts), 'obf' (Open Beauty Facts),...
Default
"off"Value in
"off" | "obf" | "opff" | "opf" | "off_pro"Response Body
curl -X GET "https://robotoff.openfoodfacts.org/api/v1/ann/search?count=25&server_type=off"{
"results": [
{
"logo_id": 1,
"distance": 0.1
}
],
"count": 0,
"query_logo_id": 0
}