---
title: "Get Preferences Weights"
method: GET
path: "/api/v2/preferences"
tags: ["Personal Search"]
---

# Get Preferences Weights

`GET /api/v2/preferences`

## Request

- Base URL: `https://world.openfoodfacts.net`
- URL: `https://world.openfoodfacts.net/api/v2/preferences`
- Auth: API key in header `User-Agent`

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.

## Query parameters

- `lc` string

## Response `200`

OK

- object[]: Rules to apply to compute personal ranking of a product, based upon the setting value of each attribute.
  - `id` 'not_important' | 'important' | 'very_important' | 'mandatory': id for the setting value
  - `name` string: name for the setting value, translated according to `lc` parameter
  - `factor` integer: factor to apply to the property of the product corresponding to attributes having this setting value
  - `minimum_match` integer: FIXME

## Changes

- **2026-11-18** `ebaef6823f1f`: 1 breaking, 1 info
  - the response's body type changed from no type to `array` for status `200`
  - added the new optional `query` request parameter `lc`
- **2025-11-07** `61843b2fdbde`: 1 warning
  - deleted the `query` request parameter `lc`
- **2025-07-02** `7193ad484e5d`: 2 info
  - api tag `Personal Search` added
  - api tag `Personal search` removed

[Operation history](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api/changes/api/v2/preferences/get.md)

---

[API](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api.md) - [All operations](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-api/revisions/ebaef6823f1f?raw)
