Sleep
Sleep Cycle
Meal
Workouts
Profile
Activity
Body
Menstrual Cycle
Electrocardiogram
Vitals Timeseries
- GETAfib Burden
- GETBlood Oxygen
- GETBlood Pressure
- GETCholesterol
- GETGlucose
- GETHeart Rate
- GETHeart Rate Variability
- GETHeart Rate Alert
- GETInsulin Injection
- GETIgg
- GETIge
- GETRespiratory Rate
- GETVo2 Max
- GETForced Expiratory Volume 1
- GETForced Vital Capacity
- GETPeak Expiratory Flow Rate
- GETInhaler Usage
- GETHeart Rate Recovery One Minute
Body Timeseries
Activity Timeseries
Workout Stream Timeseries
Wellness Timeseries
Diary Timeseries
Nutrition Timeseries
Meal
Summary
Get user’s meals
GET
/
v2
/
summary
/
meal
/
{user_id}
curl --request GET \
--url {{BASE_URL}}/v2/summary/meal/{user_id}?start_date={{START_DATE}}&end_date={{END_DATE}} \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"meals": [
{
"created_at": "2023-02-27T20:31:24+00:00",
"data": {
"Chiken coquet starter": {
"energy": {
"unit": "kcal",
"value": 400
},
"macros": {
"carbs": 75,
"fats": {
"monounsaturated": 1,
"omega3": 0,
"omega6": 0,
"polyunsaturated": 1,
"saturated": 98,
"total": 100
},
"protein": 10,
"sugar": 25
},
"micros": {
"minerals": {
"sodium": 500
}
}
},
"Coffee, black, 1 tbsp(s)": {
"energy": {
"unit": "kcal",
"value": 0
},
"macros": {
"carbs": 0,
"fats": {
"total": 0
},
"protein": 0,
"sugar": 0
},
"micros": {
"minerals": {
"sodium": 0
}
}
}
},
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Dinner",
"priority_id": 42,
"provider_id": "123456",
"source": {
"app_id": "com.myfitnesspal.mfp",
"provider": "apple_health_kit",
"type": "unknown"
},
"source_app_id": "com.myfitnesspal.mfp",
"source_id": 10,
"timestamp": "2019-08-24T14:15:22Z",
"updated_at": "2023-02-28T01:22:38+00:00",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}
]
}
curl --request GET \
--url {{BASE_URL}}/v2/summary/meal/{user_id}?start_date={{START_DATE}}&end_date={{END_DATE}} \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
Authorizations
Vital Team API Key
Path Parameters
Query Parameters
Provider oura/strava etc
Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
Response
200
application/json
Successful Response
The response is of type object
.
curl --request GET \
--url {{BASE_URL}}/v2/summary/meal/{user_id}?start_date={{START_DATE}}&end_date={{END_DATE}} \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"meals": [
{
"created_at": "2023-02-27T20:31:24+00:00",
"data": {
"Chiken coquet starter": {
"energy": {
"unit": "kcal",
"value": 400
},
"macros": {
"carbs": 75,
"fats": {
"monounsaturated": 1,
"omega3": 0,
"omega6": 0,
"polyunsaturated": 1,
"saturated": 98,
"total": 100
},
"protein": 10,
"sugar": 25
},
"micros": {
"minerals": {
"sodium": 500
}
}
},
"Coffee, black, 1 tbsp(s)": {
"energy": {
"unit": "kcal",
"value": 0
},
"macros": {
"carbs": 0,
"fats": {
"total": 0
},
"protein": 0,
"sugar": 0
},
"micros": {
"minerals": {
"sodium": 0
}
}
}
},
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Dinner",
"priority_id": 42,
"provider_id": "123456",
"source": {
"app_id": "com.myfitnesspal.mfp",
"provider": "apple_health_kit",
"type": "unknown"
},
"source_app_id": "com.myfitnesspal.mfp",
"source_id": 10,
"timestamp": "2019-08-24T14:15:22Z",
"updated_at": "2023-02-28T01:22:38+00:00",
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}
]
}