Get activity best efforts
get_activity_best_effortsFind best efforts in an activity, such as peak 5-minute power or fastest 1 km, by selecting a stream and one duration or distance.
Instructions
Find best efforts within an activity - e.g. peak 5-min power, fastest 1km. Requires a stream to measure and exactly one of duration or distance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream | Yes | Stream to measure, which must exist on the activity - see its `stream_types`. e.g. watts, heartrate, velocity_smooth, distance. Note "pace" is NOT valid; use velocity_smooth. | |
| distance | No | Effort length in meters, e.g. 1000 for fastest 1km | |
| duration | No | Effort length in seconds, e.g. 300 for peak 5-minute | |
| activity_id | Yes | The activity ID |