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]
}
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

Vital Team API Key

Path Parameters

workout_id
string
required

The Vital ID for the workout

Response

200 - application/json
cadence

RPM for cycling, Steps per minute for running

time
integer[] | null

Corresponding time stamp in unix time for datapoint

altitude

Data points for altitude

velocity_smooth

Velocity in m/s

heartrate

Heart rate in bpm

lat

Latitude for data point

lng

Longitude for data point

distance

Cumulated distance for exercise

power

Power in watts

resistance

Resistance on bike