get_activity_streams
Retrieve second-by-second time-series data for an activity, including power, heart rate, cadence, speed, and altitude, to enable detailed workout analysis and visualization.
Instructions
Get time-series data streams for an activity.
Returns second-by-second data for various metrics like power, heart rate, cadence, speed, altitude, etc. This data is essential for detailed workout analysis and visualization.
Available stream types:
watts: Power data
heartrate: Heart rate data
cadence: Cadence (rpm or spm)
velocity_smooth: Smoothed speed
altitude: Elevation
distance: Cumulative distance
time: Time stamps
latlng: GPS coordinates
temp: Temperature
moving: Moving status
grade_smooth: Gradient
Args: activity_id: The unique ID of the activity streams: Optional list of specific stream types to fetch
Returns: JSON string with time-series data streams
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| streams | No | List of stream types (e.g., ['watts', 'heartrate', 'cadence']). If not specified, all streams are fetched. | |
| activity_id | Yes | Activity ID to fetch streams for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |