curl --request GET \
--url {{BASE_URL}}/v2/summary/activity/{user_id}/raw \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"activity": [
{
"calendar_date": "2023-03-22",
"calories_active": 2000,
"calories_total": 100,
"created_at": "2023-02-27T20:31:24+00:00",
"daily_movement": 200,
"date": "2023-03-22T00:00:00+00:00",
"floors_climbed": 10,
"heart_rate": {
"avg_bpm": 80,
"avg_walking_bpm": 70,
"max_bpm": 100,
"min_bpm": 60,
"resting_bpm": 60
},
"high": 6000,
"low": 6400,
"medium": 6400,
"source": {
"device_id": "550e8400-e29b-41d4-a716-446655440000",
"logo": "https://logo_url.com",
"name": "Oura",
"slug": "oura"
},
"steps": 10000,
"time_zone": "Europe/London",
"timezone_offset": 3600,
"updated_at": "2023-02-28T01:22:38+00:00",
"user_id": "1449752e-0d8a-40e0-9206-91ab099b2537"
}
]
}
Get activity summary for user_id
curl --request GET \
--url {{BASE_URL}}/v2/summary/activity/{user_id}/raw \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"activity": [
{
"calendar_date": "2023-03-22",
"calories_active": 2000,
"calories_total": 100,
"created_at": "2023-02-27T20:31:24+00:00",
"daily_movement": 200,
"date": "2023-03-22T00:00:00+00:00",
"floors_climbed": 10,
"heart_rate": {
"avg_bpm": 80,
"avg_walking_bpm": 70,
"max_bpm": 100,
"min_bpm": 60,
"resting_bpm": 60
},
"high": 6000,
"low": 6400,
"medium": 6400,
"source": {
"device_id": "550e8400-e29b-41d4-a716-446655440000",
"logo": "https://logo_url.com",
"name": "Oura",
"slug": "oura"
},
"steps": 10000,
"time_zone": "Europe/London",
"timezone_offset": 3600,
"updated_at": "2023-02-28T01:22:38+00:00",
"user_id": "1449752e-0d8a-40e0-9206-91ab099b2537"
}
]
}
curl --request GET \
--url {{BASE_URL}}/v2/summary/activity/{user_id}/raw \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
Vital Team API Key
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
Successful Response
The response is of type object
.