Fetch questions
Query Parameters
The language of the question/value
"en"
The number of items to return
25
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"
Comma-separated list, filter by insight types
Comma separated list, filter by country value (2-letter code)
Comma-separated list, filter by brands
Filter by value tag, i.e the value that is going to be sent to Product Opener
Page index to return (starting at 1)
1
1 <= value
If true, also return questions about products with reserved barcodes
false
Filter by annotation campaigns (the insight must have all the campaigns) An annotation campaign allows to only retrieve questions or insights based on arbitrary criteria defined during insight import.
Filter by predictor value A predictor refers to the model/method that was used to generate the prediction.
The field to use for ordering results:
- confidence: order by (descending) model confidence, null confidence insights come last
- popularity: order by (descending) popularity (=scan count)
- random: use a random order
"popularity"
"confidence" | "random" | "popularity"
Response Body
curl -X GET "https://robotoff.openfoodfacts.org/api/v1/questions?lang=en&count=25&server_type=off&insight_types=brand%2Clabel&countries=string&brands=carrefour%2Cferrero&value_tag=string&page=1&reserved_barcode=false&campaigns=agribalyse-category&predictor=universal-logo-detector&order_by=confidence"
{
"status": "no_questions",
"questions": [
{}
],
"count": 0
}