TrainingPeaks
App · 6 actions
Read your TrainingPeaks athlete profile, zones, workouts and metrics.
Actions
| Action | What it does |
|---|---|
| Get a workout | Read a workout by its ID. |
| Get training zones | Read the connected athlete’s configured training zones. |
| Get your athlete profile | Read the connected athlete’s profile and settings. |
| List athlete metrics | Read measurements such as body weight and resting heart rate over a date range. |
| List changed workouts | Find workouts changed or deleted since a calendar date. |
| List workouts | Read the connected athlete’s workouts for a calendar date range. |
Get a workout
Read a workout by its ID.
Inputs
- Workout ID
workout_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 date
start_datedateRequired - The first TrainingPeaks calendar date.
- End date
end_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
- Since
sincedateRequired - Include changes since this UTC calendar date.
- Page
pagenumber - The page to return, starting at zero.At least 0.
- Limit
limitnumber - 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 date
start_datedateRequired - The first TrainingPeaks calendar date.
- End date
end_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"
}
]
}