Sleep
Sleep Cycle
Meal
Workouts
Profile
Activity
Body
Menstrual Cycle
Electrocardiogram
Vitals Timeseries
Activity Timeseries
Wellness Timeseries
Diary Timeseries
Nutrition Timeseries
Summary
Get electrocardiogram summary for user_id
curl --request GET \
--url {{BASE_URL}}/v2/summary/electrocardiogram/{user_id} \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"electrocardiogram": [
{
"classification": "sinus_rhythm",
"heart_rate_mean": 73,
"id": "f1b3b3b3-1b3b-1b3b-1b3b-1b3b3b3b3b3b",
"sampling_frequency_hz": 505,
"session_end": "2022-01-01T08:00:00",
"session_start": "2022-01-01T00:00:00",
"source": {
"provider": "apple_health_kit",
"type": "watch"
},
"source_provider": "oura",
"source_type": "ring",
"time_zone": "America/Los_Angeles",
"user_id": "f1b3b3b3-1b3b-1b3b-1b3b-1b3b3b3b3b3b",
"voltage_sample_count": 1600
}
]
}
The Electrocardiogram summary type does not embed the voltage measurements.
Use the Get Electrocardiogram Voltage endpoint
with the session_start
and session-end
timestamps to query the voltage measurements.
curl --request GET \
--url {{BASE_URL}}/v2/summary/electrocardiogram/{user_id} \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
Authorizations
Vital Team API Key
Path Parameters
Query Parameters
Start date in YYYY-MM-DD
End date (inclusive) in YYYY-MM-DD
Provider oura/strava etc
Response
oura
, fitbit
, garmin
, whoop
, strava
, renpho
, peloton
, wahoo
, zwift
, freestyle_libre
, abbott_libreview
, freestyle_libre_ble
, eight_sleep
, withings
, apple_health_kit
, manual
, ihealth
, google_fit
, beurer_api
, beurer_ble
, omron
, omron_ble
, onetouch_ble
, accuchek_ble
, contour_ble
, dexcom
, dexcom_v3
, hammerhead
, my_fitness_pal
, health_connect
, polar
, cronometer
, kardia
, whoop_v2
, ultrahuman
, my_fitness_pal_v2
, map_my_fitness
unknown
, phone
, watch
, app
, multiple_sources
, fingerprick
, cuff
, manual_scan
, automatic
, scale
, chest_strap
, ring
, lab
Source summarizes where a sample or a summary is sourced from. At minimum, the source provider is always included.
Provider slug. e.g., oura
, fitbit
, garmin
.
The type of the data source (app or device) by which the summary or the timeseries data were recorded. This defaults to unknown
when Vital cannot extract or infer that information
The identifier of the app which recorded this summary. This is only applicable to multi-source providers like Apple Health and Android Health Connect.
Deprecated. Subject to removal after 1 Jan 2024.
Deprecated. Use provider
instead. Subject to removal after 1 Jan 2024.
Deprecated. Subject to removal after 1 Jan 2024.
sinus_rhythm
, atrial_fibrillation
, inconclusive
high_heart_rate
, low_heart_rate
, poor_reading
curl --request GET \
--url {{BASE_URL}}/v2/summary/electrocardiogram/{user_id} \
--header 'Accept: application/json' \
--header 'x-vital-api-key: <API_KEY>'
{
"electrocardiogram": [
{
"classification": "sinus_rhythm",
"heart_rate_mean": 73,
"id": "f1b3b3b3-1b3b-1b3b-1b3b-1b3b3b3b3b3b",
"sampling_frequency_hz": 505,
"session_end": "2022-01-01T08:00:00",
"session_start": "2022-01-01T00:00:00",
"source": {
"provider": "apple_health_kit",
"type": "watch"
},
"source_provider": "oura",
"source_type": "ring",
"time_zone": "America/Los_Angeles",
"user_id": "f1b3b3b3-1b3b-1b3b-1b3b-1b3b3b3b3b3b",
"voltage_sample_count": 1600
}
]
}