Personal search

Get Preferences Weights

This endpoint retrieves the weights corresponding to attribute preferences for computing personal product recommendations. The weights are used to personalize the product recommendations based on user preferences.

GET
/api/v2/preferences

Query Parameters

lc?string

2 letter code of the language of the user. Used for localizing some fields in returned values (e.g. knowledge panels). If not passed, the language may be inferred by the Accept-Language header of the request, or from the domain name prefix.

Response Body

curl -X GET "https://world.openfoodfacts.net/api/v2/preferences?lc=fr"
[
  {
    "id": "not_important",
    "name": "string",
    "factor": 0,
    "minimum_match": 0
  }
]