get_activity_histogram
Compute an activity's time distribution by power, heart rate, pace, or grade-adjusted pace buckets to reveal polarization, time above FTP, and pace spread. Returns seconds and % per bucket.
Instructions
Use for the time distribution of one activity independent of zone definitions: how polarised a ride was, time above FTP, the pace spread of a run.
Returns the seconds and % of recorded time in each power (W), heart rate (bpm), pace or grade-adjusted pace bucket, as computed by Intervals.icu; pace and GAP buckets are speeds in m/s shown with the pace range. bucket_size applies to power and hr only. Read-only, one API call. Method: intervals://methods/comparisons (get_guide).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | No | power (W), hr (bpm), pace or gap (grade-adjusted pace); pace and gap buckets are m/s | power |
| activity_id | Yes | Activity id, e.g. i123456789 | |
| bucket_size | No | Bucket width in W (power, default 25) or bpm (hr, default 5); not for pace or gap | |
| output_format | No | json = machine-readable, all fields | text |