GET
/
v2
/
timeseries
/
workouts
/
{workout_id}
/
stream
curl --request GET \
     --url {{BASE_URL}}/v2/summary/workouts/{workout_id}/stream \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>'
{
  "cadence": [10, 12, 12, 11, 10],
  "time": [1626625123, 1626625140, 1626625145, 1626625150, 162662560],
  "heartrate": [120, 125, 125, 130, 135],
  "distance": [12, 15, 18, 20, 25],
  "power": [100, 100, 100, 100, 100],
  "altitude": [10, 20, 30, 40, 50],
  "velocity_smooth": [10, 20, 30, 40, 50],
  "lat": [10, 20, 30, 40, 50],
  "lng": [10, 20, 30, 40, 50],
  "resistance": [10, 20, 30, 40, 50]
}

Authorizations

x-vital-api-key
string
headerrequired

API key based authentication

Path Parameters

workout_id
string
required

The Vital ID for the workout

Response

200 - application/json
altitude

Data points for altitude

cadence

RPM for cycling, Steps per minute for running

distance

Cumulated distance for exercise

heartrate

Heart rate in bpm

lat

Latitude for data point

lng

Longitude for data point

power

Power in watts

resistance

Resistance on bike

time
integer[]

Corresponding time stamp in unix time for datapoint

velocity_smooth

Velocity in m/s