TrainingPeaks

App · 6 actions

Read your TrainingPeaks athlete profile, zones, workouts and metrics.

Actions

ActionWhat it does
Get a workoutRead a workout by its ID.
Get training zonesRead the connected athlete’s configured training zones.
Get your athlete profileRead the connected athlete’s profile and settings.
List athlete metricsRead measurements such as body weight and resting heart rate over a date range.
List changed workoutsFind workouts changed or deleted since a calendar date.
List workoutsRead the connected athlete’s workouts for a calendar date range.

Get a workout

Read a workout by its ID.

Inputs

Workout IDworkout_idnumberRequired
The numeric workout ID from List workouts.At least 1.

Outputs

dataobject
The response from TrainingPeaks.
Example output
{
  "data": {
    "Distance": 1,
    "Id": 1,
    "LastModifiedDate": "example",
    "StartTime": "example",
    "Title": "example",
    "TotalTime": 1,
    "WorkoutDay": "example",
    "WorkoutType": "example"
  }
}

Get training zones

Read the connected athlete’s configured training zones.

Inputs

None.

Outputs

dataobject
The response from TrainingPeaks.
Example output
{
  "data": {}
}

Get your athlete profile

Read the connected athlete’s profile and settings.

Inputs

None.

Outputs

dataobject
The response from TrainingPeaks.
Example output
{
  "data": {}
}

List athlete metrics

Read measurements such as body weight and resting heart rate over a date range.

Inputs

Start datestart_datedateRequired
The first TrainingPeaks calendar date.
End dateend_datedateRequired
The last TrainingPeaks calendar date.

Outputs

datalist
The response from TrainingPeaks.
Example output
{
  "data": [
    {}
  ]
}

List changed workouts

Find workouts changed or deleted since a calendar date.

Inputs

SincesincedateRequired
Include changes since this UTC calendar date.
Pagepagenumber
The page to return, starting at zero.At least 0.
Limitlimitnumber
The maximum number of changes per page.From 1 to 100.

Outputs

dataobject
The response from TrainingPeaks.
Example output
{
  "data": {
    "Deleted": [
      1
    ],
    "Modified": [
      {
        "Distance": 1,
        "Id": 1,
        "LastModifiedDate": "example",
        "StartTime": "example",
        "Title": "example",
        "TotalTime": 1,
        "WorkoutDay": "example",
        "WorkoutType": "example"
      }
    ]
  }
}

List workouts

Read the connected athlete’s workouts for a calendar date range.

Inputs

Start datestart_datedateRequired
The first TrainingPeaks calendar date.
End dateend_datedateRequired
The last TrainingPeaks calendar date.

Outputs

datalist
The response from TrainingPeaks.
Example output
{
  "data": [
    {
      "Distance": 1,
      "Id": 1,
      "LastModifiedDate": "example",
      "StartTime": "example",
      "Title": "example",
      "TotalTime": 1,
      "WorkoutDay": "example",
      "WorkoutType": "example"
    }
  ]
}

On this page