get_activity_streams
Retrieve downsampled per-second activity streams—power, heart rate, cadence, speed, altitude, distance—to chart or analyze a time window at a chosen resolution.
Instructions
Downsampled per-second data of one Activity, from its Activity file, to chart or reason about: one array per field, each value the mean of one bucket of resolution_sec_used seconds from start_sec (the last bucket may be shorter). Units: power W, heart_rate bpm, cadence rpm, speed m/s, altitude m, distance m from the start. At most 500 points per field: a finer request is served at the smallest resolution that fits. A field the Activity doesn't have is listed in missing_fields; a bucket with no data is null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Which columns to return. | |
| end_sec | No | End, in seconds from the start (after start_sec; default the end of the Activity). | |
| start_sec | No | Start, in seconds from the start (default 0). | |
| activity_id | Yes | An Activity id as returned by list_activities. | |
| resolution_sec | No | Bucket length in seconds (at least 1). |