Nutrients

Get Nutrients List

Changed on

Used to display the nutrition facts table of a product, or to display a form to input those nutrition facts.

get/cgi/nutrients.pl

Request

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

Query parameters

ccstring
Example:us

2 letter code of the country of the user. Used for localizing some fields in returned values (e.g. knowledge panels). If not passed, the country may be inferred by the IP address of the request.

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

id of the nutrient

namestring

Name of the nutrient in the requested language

importantboolean

Indicates if the nutrient is always shown on the nutrition facts table

display_in_edit_formboolean

Indicates if the nutrient should be shown in the nutrition facts edit form

unit'g' | 'mg' | 'μg' | 'cl' | 'ml' | 'dv' | '% vol' | '%'

Default unit of the nutrient

nutrientsNutrient[] circular

Changes