All URIs are relative to https://www.strava.com/api/v3
Method | HTTP request | Description |
---|---|---|
GetActivityStreams | Get /activities/{id}/streams | Get Activity Streams |
GetRouteStreams | Get /routes/{id}/streams | Get Route Streams |
GetSegmentEffortStreams | Get /segment_efforts/{id}/streams | Get Segment Effort Streams |
GetSegmentStreams | Get /segments/{id}/streams | Get Segment Streams |
StreamSet GetActivityStreams(ctx, id, keys, keyByType) Get Activity Streams
Returns the given activity's streams. Requires activity:read scope. Requires activity:read_all scope for Only Me activities.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | The identifier of the activity. | |
keys | []string | Desired stream types. | |
keyByType | bool | Must be true. | [default to true] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StreamSet GetRouteStreams(ctx, id) Get Route Streams
Returns the given route's streams. Requires read_all scope for private routes.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | The identifier of the route. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StreamSet GetSegmentEffortStreams(ctx, id, keys, keyByType) Get Segment Effort Streams
Returns a set of streams for a segment effort completed by the authenticated athlete. Requires read_all scope.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | The identifier of the segment effort. | |
keys | []string | The types of streams to return. | |
keyByType | bool | Must be true. | [default to true] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StreamSet GetSegmentStreams(ctx, id, keys, keyByType) Get Segment Streams
Returns the given segment's streams. Requires read_all scope for private segments.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | The identifier of the segment. | |
keys | []string | The types of streams to return. | |
keyByType | bool | Must be true. | [default to true] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]