The nutrient dictionary that food nutrient values refer to. Not paginated.
idintegeris_major_nutrientbooleanWhether this nutrient appears on a standard nutrition facts panel.
labelstringnullableDisplay label, where one differs from the name.
namestringnullableuomstringnullableThe unit this nutrient's values are expressed in.
/nutrientscatalog:readThe nutrient dictionary, shared by every account. Not paginated: every row is returned, ordered by name.
searchstringnullableFree-text match on name or label, or the exact unit.
data, with pagination.curl "https://public-api.nutrasoft.ca/v1/nutrients" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": [
{
"id": 123,
"is_major_nutrient": false,
"label": "string",
"name": "Sample name",
"uom": "string"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
},
"order": "id:asc"
}/nutrients/{nutrient_id}catalog:readnutrient_idintegerrequiredThe nutrient's id.
data.curl "https://public-api.nutrasoft.ca/v1/nutrients/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"is_major_nutrient": false,
"label": "string",
"name": "Sample name",
"uom": "string"
}
}