1. Meal
  2. Summary
GET

/v2/summary/meal/{user_id}

x-vital-api-key*

All values in the returned model are supplied in the following units:

  • meals[*].data[*].energy.value in calories kcal
  • meals[*].data[*].macros.carbs in grams g
  • meals[*].data[*].macros.protein in grams g
  • meals[*].data[*].macros.fats.saturated in grams g
  • meals[*].data[*].macros.fats.monounsaturated in grams g
  • meals[*].data[*].macros.fats.polyunsaturated in grams g
  • meals[*].data[*].macros.fats.omega3 in grams g
  • meals[*].data[*].macros.fats.omega6 in grams g
  • meals[*].data[*].macros.alcohol in litres lt
  • meals[*].data[*].macros.water in litres lt
  • meals[*].data[*].macros.fibre in grams g
  • meals[*].data[*].macros.sugar in grams g
  • meals[*].data[*].micros.minerals key: value pairs in milligrams mg
  • meals[*].data[*].micros.trace_elements key: value pairs in milligrams mg
  • meals[*].data[*].micros.vitamins key: value pairs in milligrams mg

Parameters

user_idRequired
string

User id returned by vital create user id request. This id should be stored in your database against the user and used for all interactions with the vital api.

provider
string

Provider oura/strava etc

start_dateRequired
string

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

end_date
string

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

mealsRequired
array