Actions41
- Activity Actions
- Athlete Actions
- Club Actions
- Gear Actions
- Route Actions
- Segment Actions
- Segment Effort Actions
- Stream Actions
- Upload Actions
- Web Session (Undocumented) Actions
Stream → Get Activity Streams
AI-generatedSummary
Retrieve specific data streams for a given Strava activity by specifying the activity ID and the types of streams desired.
Inputs
- Activity ID (required) — The identifier of the activity to retrieve streams for.
- Stream Keys (required) — The types of streams to return, such as altitude, cadence, distance, heart rate, etc.
- Key By Type — Whether to return the streams organized as a dictionary keyed by stream type (default true).
Output shape
a JSON object containing the requested streams for the specified activity
The response structure can be a dictionary mapping stream types to their values if 'Key By Type' is true; otherwise, it is a list of stream objects. At least one stream key must be provided.
Examples
Example 1: Get altitude and distance streams for an activity
Provide the Activity ID, select 'Altitude' and 'Distance' as stream keys, and keep 'Key By Type' enabled to get a dictionary of streams keyed by type.