Get activity time distribution
get_activity_histogramView time spent at each heart rate, pace, or power level in an activity, with ranges and share of total. Analyze intensity distribution for training insights.
Instructions
Get how much time was spent at each heart rate, pace or power level in one activity (a histogram with ranges, time and % of total). Finer-grained than time in zones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Activity id, e.g. "i123456789" (from list_activities or search_activities). | |
| metric | Yes | What to bucket by. | |
| bucket_size | No | Bucket width: bpm (default 5), seconds of pace (default 15) or watts (default 25). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | Yes | ||
| buckets | Yes |