Nutrients
Get Nutrients List
Used to display the nutrition facts table of a product, or to display a form to input those nutrition facts.
Query Parameters
cc?string
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.
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/cgi/nutrients.pl?cc=us&lc=fr"
[
{
"id": "string",
"name": "string",
"important": true,
"display_in_edit_form": true,
"unit": "g",
"nutrients": [
{}
]
}
]