Personal Search

Get Attribute Groups

Changed on

Attributes are at the heart of personal search. They score the products according to different criterias, which could then be matched to a user's preferences.

This API helps you list attributes and display them in your application, for the user to choose the importance of each criteria.

note: /api/v2/attribute_groups_{lc} is also a valid route, but consider it deprecated

get/api/v2/attribute_groups

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

idstring

unique id of the group

namestring

Name of the group

Changes