Workouts Get Athlete Time in Zones - TrainingPeaks/PartnersAPI GitHub Wiki
Workout's time in zones for coaches
Returns a workout's time in zone data a specific athlete’s workout.
- Resource endpoint: /v2/workouts/{athleteid}/id/{id}/timeinzones
- HTTP Method: GET
- OAuth Scope Required: workouts:read
- Input:
- Athlete Id. Required
- Workout Id. Required.
Example:
Testing:
https://api.sandbox.trainingpeaks.com/v2/workouts/54321/id/123456789/timeinzones
Production:
https://api.trainingpeaks.com/v2/workouts/54321/id/123456789/timeinzones
Returns:
An array of time in zone values for a workout. There are 3 collections for time in zones for heart rate, speed and power.
Example:
{
"WorkoutId": 123456789,
"TimeInHeartRateZones": {
"TimeInZones": {
"0": {
"Seconds": 2611.8,
"Minimum": 0,
"Maximum": 105,
"Label": "Zone 1: Active Recovery"
},
"1": {
"Seconds": 2809.2,
"Minimum": 106,
"Maximum": 129,
"Label": "Zone 2: Aerobic Capacity"
},
"2": {
"Seconds": 838.8000000000001,
"Minimum": 130,
"Maximum": 146,
"Label": "Zone 3: Temp Rides"
},
"3": {
"Seconds": 0,
"Minimum": 147,
"Maximum": 163,
"Label": "Zone 4: Threshold"
},
"4": {
"Seconds": 0,
"Minimum": 164,
"Maximum": 255,
"Label": "Zone 5: VO2 Max"
}
},
"Maximum": 183,
"Threshold": 155,
"Resting": 0
},
"TimeInPowerZones": {
"TimeInZones": {
"0": {
"Seconds": 4219.8,
"Minimum": 0,
"Maximum": 167,
"Label": "Active Recovery (AR)"
},
"1": {
"Seconds": 1413,
"Minimum": 168,
"Maximum": 227,
"Label": "Aerobic Threshold (AeT)"
},
"2": {
"Seconds": 478.8,
"Minimum": 228,
"Maximum": 272,
"Label": "Tempo (Tem)"
},
"3": {
"Seconds": 98.39999999999999,
"Minimum": 273,
"Maximum": 317,
"Label": "Lactate Threshold (LT)"
},
"4": {
"Seconds": 33.6,
"Minimum": 318,
"Maximum": 362,
"Label": "Aerobic Capacity (AeC)"
},
"5": {
"Seconds": 15,
"Minimum": 363,
"Maximum": 2000,
"Label": "Anaerobic Capacity (AnC)"
}
},
"Maximum": 0,
"Threshold": 250,
"Resting": 0
},
"TimeInSpeedZones": {
"TimeInZones": {
"0": {
"Seconds": 3159,
"Minimum": 0,
"Maximum": 3.2679738562091503,
"Label": "Zone 1"
},
"1": {
"Seconds": 282.6,
"Minimum": 3.2679738562091503,
"Maximum": 3.7037037037037033,
"Label": "Zone 2"
},
"2": {
"Seconds": 57.599999999999994,
"Minimum": 3.7037037037037033,
"Maximum": 3.9840637450199203,
"Label": "Zone 3"
},
"3": {
"Seconds": 1.7999999999999998,
"Minimum": 3.9840637450199203,
"Maximum": 4.219409282700421,
"Label": "Zone 4"
},
"4": {
"Seconds": 0,
"Minimum": 4.219409282700421,
"Maximum": 4.366812227074235,
"Label": "Zone 5a"
},
"5": {
"Seconds": 0,
"Minimum": 4.366812227074235,
"Maximum": 4.694835680751173,
"Label": "Zone 5b"
},
"6": {
"Seconds": 0,
"Minimum": 4.694835680751173,
"Maximum": 1000,
"Label": "Zone 5c"
}
},
"Maximum": 0,
"Threshold": 4.219409282700421,
"Resting": 0
}
}