stravalib.client.Client.get_effort_streams¶
- Client.get_effort_streams(effort_id, types=None, resolution=None, series_type=None)[source]¶
Returns an streams for an effort.
https://developers.strava.com/docs/reference/#api-Streams-getSegmentEffortStreams
Streams represent the raw data of the uploaded file. External applications may only access this information for activities owned by the authenticated athlete.
Streams are available in 11 different types. If the stream is not available for a particular activity it will be left out of the request results.
- Streams types are: time, latlng, distance, altitude, velocity_smooth,
heartrate, cadence, watts, temp, moving, grade_smooth
- Parameters
effort_id (int) – The ID of effort.
types (list) – (optional) A list of the the types of streams to fetch.
resolution (str) – (optional, default is ‘all’) indicates desired number of data points. ‘low’ (100), ‘medium’ (1000), ‘high’ (10000) or ‘all’.
series_type (str) – (optional, default is ‘distance’. Relevant only if using resolution either ‘time’ or ‘distance’. Used to index the streams if the stream is being reduced.
- Returns
An dictionary of
stravalib.model.Streamfrom the effort.- Return type