Nutrition
Activities related to calorie intake and consumption and nutritional information (such as fat, protein, carbohydrates, sodium, etc.).
Example
GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users/{USER_ID}/nutrition.json?access_token={ORGANIZATION_ACCESS_TOKEN}
GET https://api.validic.com/v1/organizations/5176906c6deddac02c000001/users/51 552cd7fded0807c4000017/nutrition.json?access_token=e7ba1f04e88f25d399a91c8c bcd72300e01309e96b7725e40b49cd1effaa5deb 200 { "summary": { ... }, "nutrition": [ { "_id": "51552cd9fded0807c4000043", "timestamp": "2013-03-10T07:12:16+00:00", "utc_offset": "+00:00", "calories": 865, "carbohydrates": 121, "fat": 31, "fiber": 9, "protein": 21, "sodium": 1129, "water": 14, "meal": "lunch", "source": "sample_app", "source_name": "Sample App", "last_updated": "2013-03-10T07:12:16+00:00" } ] }
Params
Field
Type
Description
timestamp
String
Timestamp for the measurement set
utc_offset
String
Timezone information for the measurement set
calories
Double
The value of the measured quantity in kilocalories (Calories)
carbohydrates
Double
The value of the measured quantity in g
fat
Double
The value of the measured quantity in g
fiber
Double
The value of the measured quantity in g
protein
Double
The value of the measured quantity in g
sodium
Double
The value of the measured quantity in mg
water
Double
The value of the measured quantity in mL
meal
String
The meal, for example: pizza, Coke, chicken breast, other, unspecified
source
String
The short name of the application that recorded the activity
source_name
String
The display name of the application that recorded the activity
last_updated
String
Date and time when the measurement set was last updated
_id
String
Unique identifier of the entry