get_activity_streams
Retrieve time-series data for a Garmin activity, including heart rate, speed, altitude, and more, with optional field selection and bucketed averaging.
Instructions
Time series for one activity — heart rate, pace, altitude and so on.
Args: activity_id: The activity's id. fields: Which series to return. Defaults to heart_rate, speed and altitude. Available: heart_rate, speed, altitude, cadence, power, distance, temperature, grade, lat, lon, vertical_oscillation, stance_time, step_length, respiration_rate. max_points: How many points per series (default 200, capped at 2000).
Series are averaged into buckets rather than returned raw — a three-hour ride holds around 11 000 samples per channel. Output is columnar: {"heart_rate": [...], "elapsed_s": [...]}.
Because the series is smoothed, its own highest and lowest values
understate the real ones. Read peaks from true_range, which is
computed over every sample.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| max_points | No | ||
| activity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||