Get activity time series
get_activity_streamsRetrieve downsampled second-by-second activity data (heart rate, pace, cadence, altitude, power) to analyze pacing, HR drift, and effort changes over time. Optionally include GPS coordinates.
Instructions
Get second-by-second data of one activity (heart rate, pace/speed, cadence, altitude, distance, power), downsampled to a compact table: each row averages a time window. Use it to analyse pacing, HR drift or how effort changed during the session. GPS coordinates are only included when "latlng" is requested explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Activity id, e.g. "i123456789" (from list_activities or search_activities). | |
| end | No | Only up to this elapsed time (seconds or "m:ss"). | |
| start | No | Only from this elapsed time (seconds or "m:ss"). | |
| types | No | Stream types. Default: distance, heartrate, velocity_smooth, cadence, altitude, watts. Others include temp, respiration, grade_smooth, latlng (GPS). | |
| max_points | No | Maximum rows (default 120). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| columns | Yes | ||
| rows_count | Yes | ||
| activity_id | Yes | ||
| source_points | Yes | ||
| seconds_per_row | No |