Activity
Summary
Get Daily Activity for user_id
GET
/v2/summary/activity/{user_id}
x-vital-api-key*
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": "2022-08-04",
"calories_total": 100,
"calories_active": 2000,
"steps": 10000,
"daily_movement": 200,
"low": 6400,
"medium": 6400,
"high": 6000,
"source": {
"name": "Garmin",
"slug": "garmin",
"logo": "https://logo_url.com"
},
"user_id": "70c64d5a-ff06-4c16-b137-361b2441d86e",
"heart_rate": {
"avg_bpm": 76.4,
"max_bpm": 134,
"min_bpm": 55,
"resting_bpm": 60
}
}
]
}
Path Parameters
user_idrequired
string
Query Parameters
provider
Default: ""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
200 - application/json
activityrequired
object[]
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": "2022-08-04",
"calories_total": 100,
"calories_active": 2000,
"steps": 10000,
"daily_movement": 200,
"low": 6400,
"medium": 6400,
"high": 6000,
"source": {
"name": "Garmin",
"slug": "garmin",
"logo": "https://logo_url.com"
},
"user_id": "70c64d5a-ff06-4c16-b137-361b2441d86e",
"heart_rate": {
"avg_bpm": 76.4,
"max_bpm": 134,
"min_bpm": 55,
"resting_bpm": 60
}
}
]
}