Personal Search

Get Preferences Weights

Changed on

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

Request

  • Base URL
    https://world.openfoodfacts.net
  • Auth
    API key in header User-Agent

Query parameters

lcstring
Example:fr

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 domain name prefix.

Response

OK

id'not_important' | 'important' | 'very_important' | 'mandatory'

id for the setting value

namestring

name for the setting value, translated according to lc parameter

factorinteger

factor to apply to the property of the product corresponding to attributes having this setting value

minimum_matchinteger

FIXME

Changes