Strava icon

Strava

Consume the official Strava API v3. Also includes undocumented Web Session operations (marked ⚠️) that use a browser session cookie and may break without notice.

Stream → Get Activity Streams

AI-generated

Summary

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.

Links

Discussion