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": "2019-08-24T14:15:22Z",
      "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": "2019-08-24T14:15:22Z",
      "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

x-vital-api-key
string
header
required

Vital Team API Key

Path Parameters

user_id
string
required

Query Parameters

provider
string
default:

Provider oura/strava etc

start_date
string
required

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 | null

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
meals
object[]
required