find_similar_intervals
Find earlier activities with intervals matching a target length and % FTP intensity, or similar to a reference activity's main set, ranked by comparability.
Instructions
Use to find earlier activities with intervals of a given length and intensity (% of FTP), or like the main set of a reference activity, ranked by comparability.
Pass min/max_secs and min/max_intensity, or reference_activity_id (window from its main set: length ±25 %, intensity ±8 points of FTP; explicit values win; only the 365 days before it unless start_date is given). Returns per activity date, sport, interval summary, load, FTP at the time, gear, power meter, compliance and a comparability score 0-100 with reasons. Sport defaults to one family (other families are counted, "all" keeps every sport); watts of different power meters are not comparable, use % of FTP. Read-only; one API call (+2 with a reference, +1 gear catalog). Details: get_activity_intervals; same workout over time: compare_workouts. Method: intervals://methods/comparisons (get_guide).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum activities returned | |
| target | No | Workout target type (not the sport); omit for any | |
| gear_id | No | Only activities on this gear id (get_gear_list) | |
| sort_by | No | Default comparability with a reference, else date (newest first) | |
| end_date | No | Last day YYYY-MM-DD; default no limit | |
| max_reps | No | Maximum matching repetitions per activity | |
| max_secs | No | Longest interval (s); required without reference_activity_id | |
| min_reps | No | Minimum matching repetitions per activity | |
| min_secs | No | Shortest interval (s); required without reference_activity_id | |
| ftp_range | No | Only activities with FTP at the time in "low-high" W, e.g. "225-240" | |
| athlete_id | No | Default: the configured athlete | |
| start_date | No | First day YYYY-MM-DD; default 365 days before the reference, else no limit | |
| sport_types | No | Comma-separated activity types or "all"; default the sport family of the reference or of most results | |
| max_intensity | No | Highest % of FTP, 0-300 (rounded up) | |
| min_intensity | No | Lowest % of FTP, 0-300 (rounded down) | |
| output_format | No | json = machine-readable, all fields | text |
| ftp_tolerance_pct | No | FTP difference in % to the reference or newest result flagged as other FTP context | |
| reference_activity_id | No | Activity whose main work set defines the search window and the ranking |