get_activity_intervals
Retrieve per-interval metrics for an Intervals.icu activity—power, HR, cadence, speed, intensity, custom fields—plus optional stream stats or planned-step matches for laps/efforts.
Instructions
Use for per-interval numbers of one activity (laps or detected efforts): power, HR, cadence, speed, intensity, custom interval fields and groups.
Cadence follows the sport: steps per minute on foot (2 x the stored per-leg value), rpm otherwise. stream_types adds start/end/min/max/mean/delta of any stream per interval from the recorded samples, e.g. stamina drop or a second power meter (list_activity_streams shows what exists). include_planned_types shows the planned step matched to each interval and the time beyond the plan; the Intervals.icu type is kept. Without intervals use analyze_climbs. Read-only; 2 API calls, +1 for streams, +1 for a paired event. Methods: intervals://methods/activity-data, intervals://methods/execution (get_guide).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_id | Yes | Activity id, e.g. i123456789 | |
| detail_level | No | compact = one line per interval; standard = full block per interval; full adds every custom stream when stream_types is empty | standard |
| stream_types | No | Comma-separated streams to evaluate per interval, e.g. Stamina,secondary_power; custom = custom streams + secondary_power; all = every stream | |
| output_format | No | text, or json (raw intervals and groups with custom fields, stream statistics, planned step) | text |
| planned_workout_doc | No | Workout document {"steps": [...]} to match against; implies include_planned_types | |
| include_custom_fields | No | List the athlete's custom interval fields per interval | |
| include_planned_types | No | Show the planned step matched to each interval (paired event or planned_workout_doc) |