GET
/
v2
/
summary
/
workouts
/
{user_id}
curl --request GET \
     --url {{BASE_URL}}/v2/summary/workouts/{user_id} \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>'
{
  "workouts": {
    "id": "f09c1083-701f-4030-b43d-e48825377de9",
    "average_hr": 100,
    "max_hr": 190,
    "distance": 1700,
    "calendar_date": "2022-08-04",
    "time_start": "2022-08-04T11:42:44.864554+00:00",
    "time_end": "2022-08-04T12:42:44.864576+00:00",
    "timezone_offset": 2400,
    "calories": 300,
    "sport": {
      "id": 1,
      "name": "football"
    },
    "source": {
      "name": "Strava",
      "slug": "strava",
      "logo": "https://logo_url.com"
    },
    "hr_zones": [100, 90, 10, 10, 200],
    "user_id": "701830a9-bd50-48d5-91e5-8c7485d95c12",
    "moving_time": 100,
    "total_elevation_gain": 10,
    "elev_high": 20.2,
    "elev_low": -10.2,
    "average_speed": 4.2,
    "max_speed": 7.8,
    "average_watts": 100,
    "device_watts": 80,
    "max_watts": 200,
    "weighted_average_watts": 250,
    "map": {
      "summary_polyline": "agn~Ftb{uOvr@daBunBjdBkHwiD????"
    }
  },
  "title": "Workout Data"
}
curl --request GET \
     --url {{BASE_URL}}/v2/summary/workouts/{user_id} \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>'
{
  "workouts": {
    "id": "f09c1083-701f-4030-b43d-e48825377de9",
    "average_hr": 100,
    "max_hr": 190,
    "distance": 1700,
    "calendar_date": "2022-08-04",
    "time_start": "2022-08-04T11:42:44.864554+00:00",
    "time_end": "2022-08-04T12:42:44.864576+00:00",
    "timezone_offset": 2400,
    "calories": 300,
    "sport": {
      "id": 1,
      "name": "football"
    },
    "source": {
      "name": "Strava",
      "slug": "strava",
      "logo": "https://logo_url.com"
    },
    "hr_zones": [100, 90, 10, 10, 200],
    "user_id": "701830a9-bd50-48d5-91e5-8c7485d95c12",
    "moving_time": 100,
    "total_elevation_gain": 10,
    "elev_high": 20.2,
    "elev_low": -10.2,
    "average_speed": 4.2,
    "max_speed": 7.8,
    "average_watts": 100,
    "device_watts": 80,
    "max_watts": 200,
    "weighted_average_watts": 250,
    "map": {
      "summary_polyline": "agn~Ftb{uOvr@daBunBjdBkHwiD????"
    }
  },
  "title": "Workout Data"
}

Authorizations

x-vital-api-key
string
headerrequired

Vital Team API Key

Path Parameters

user_id
string
required

Query Parameters

provider
string
default:

Provider oura/strava etc

start_date
string
required

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 | null

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
workouts
object[]
required