Strava
Connect to Strava to read athlete profiles, activities, routes, segments, clubs, streams, uploads, and workout data.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| OAuth 2.0 | oauth2 | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "STRAVA_CREATE_ACTIVITY", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("STRAVA_CREATE_ACTIVITY", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute STRAVA_CREATE_ACTIVITY --data '{ }'Tool 目录
可用 Tools
34 个可调用操作
Create an ActivitySTRAVA_CREATE_ACTIVITYCreates a manual activity for an athlete, requires activity:write scope.需要连接
Creates a manual activity for an athlete, requires activity:write scope.
认证
需要 Connected AccountTags
Upload ActivitySTRAVA_CREATE_UPLOADUploads a new data file to create an activity from. Requires activity:write scope.需要连接
Uploads a new data file to create an activity from. Requires activity:write scope.
认证
需要 Connected AccountTags
Explore segmentsSTRAVA_EXPLORE_SEGMENTSReturns the top 10 segments matching a specified query.需要连接
Returns the top 10 segments matching a specified query.
认证
需要 Connected AccountTags
Get ActivitySTRAVA_GET_ACTIVITY_BY_IDReturns the given activity that is owned by the authenticated athlete. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities. We strongly encourage you to display the appropriate attribution that identifies Garmin as the data source and the device name in your application. Please see example below from VeloViewer (that provides an attribution for a Garmin Forerunner device). 需要连接
Returns the given activity that is owned by the authenticated athlete. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities. We strongly encourage you to display the appropriate attribution that identifies Garmin as the data source and the device name in your application. Please see example below from VeloViewer (that provides an attribution for a Garmin Forerunner device). 
认证
需要 Connected AccountTags
Get Activity StreamsSTRAVA_GET_ACTIVITY_STREAMSReturns the given activity's streams. Requires activity:read scope. Requires activity:read_all scope for Only Me activities.需要连接
Returns the given activity's streams. Requires activity:read scope. Requires activity:read_all scope for Only Me activities.
认证
需要 Connected AccountTags
List Club ActivitiesSTRAVA_GET_CLUB_ACTIVITIES_BY_IDRetrieve recent activities from members of a specific club. The authenticated athlete must belong to the requested club in order to hit this endpoint. Pagination is supported. Athlete profile visibility is respected for all activities.需要连接
Retrieve recent activities from members of a specific club. The authenticated athlete must belong to the requested club in order to hit this endpoint. Pagination is supported. Athlete profile visibility is respected for all activities.
认证
需要 Connected AccountTags
List Club AdministratorsSTRAVA_GET_CLUB_ADMINS_BY_IDReturns a list of the administrators of a given club.需要连接
Returns a list of the administrators of a given club.
认证
需要 Connected AccountTags
Get ClubSTRAVA_GET_CLUB_BY_IDReturns a given a club using its identifier.需要连接
Returns a given a club using its identifier.
认证
需要 Connected AccountTags
List Club MembersSTRAVA_GET_CLUB_MEMBERS_BY_IDReturns a list of the athletes who are members of a given club.需要连接
Returns a list of the athletes who are members of a given club.
认证
需要 Connected AccountTags
List Activity CommentsSTRAVA_GET_COMMENTS_BY_ACTIVITY_IDReturns the comments on the given activity. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.需要连接
Returns the comments on the given activity. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
认证
需要 Connected AccountTags
List Segment EffortsSTRAVA_GET_EFFORTS_BY_SEGMENT_IDReturns a set of the authenticated athlete's segment efforts for a given segment. Requires subscription.需要连接
Returns a set of the authenticated athlete's segment efforts for a given segment. Requires subscription.
认证
需要 Connected AccountTags
Get EquipmentSTRAVA_GET_GEAR_BY_IDReturns an equipment using its identifier.需要连接
Returns an equipment using its identifier.
认证
需要 Connected AccountTags
List Activity KudoersSTRAVA_GET_KUDOERS_BY_ACTIVITY_IDReturns the athletes who kudoed an activity identified by an identifier. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.需要连接
Returns the athletes who kudoed an activity identified by an identifier. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
认证
需要 Connected AccountTags
List Activity LapsSTRAVA_GET_LAPS_BY_ACTIVITY_IDReturns the laps of an activity identified by an identifier. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.需要连接
Returns the laps of an activity identified by an identifier. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
认证
需要 Connected AccountTags
Get Authenticated AthleteSTRAVA_GET_LOGGED_IN_ATHLETEReturns the currently authenticated athlete. Tokens with profile:read_all scope will receive a detailed athlete representation; all others will receive a summary representation.需要连接
Returns the currently authenticated athlete. Tokens with profile:read_all scope will receive a detailed athlete representation; all others will receive a summary representation.
认证
需要 Connected AccountTags
List Athlete ActivitiesSTRAVA_GET_LOGGED_IN_ATHLETE_ACTIVITIESReturns the activities of an athlete for a specific identifier. Requires activity:read. Only Me activities will be filtered out unless requested by a token with activity:read_all.需要连接
Returns the activities of an athlete for a specific identifier. Requires activity:read. Only Me activities will be filtered out unless requested by a token with activity:read_all.
认证
需要 Connected AccountTags
List Athlete ClubsSTRAVA_GET_LOGGED_IN_ATHLETE_CLUBSReturns a list of the clubs whose membership includes the authenticated athlete.需要连接
Returns a list of the clubs whose membership includes the authenticated athlete.
认证
需要 Connected AccountTags
List Starred SegmentsSTRAVA_GET_LOGGED_IN_ATHLETE_STARRED_SEGMENTSList of the authenticated athlete's starred segments. Private segments are filtered out unless requested by a token with read_all scope.需要连接
List of the authenticated athlete's starred segments. Private segments are filtered out unless requested by a token with read_all scope.
认证
需要 Connected AccountTags
Get ZonesSTRAVA_GET_LOGGED_IN_ATHLETE_ZONESReturns the the authenticated athlete's heart rate and power zones. Requires profile:read_all.需要连接
Returns the the authenticated athlete's heart rate and power zones. Requires profile:read_all.
认证
需要 Connected AccountTags
Export Route GPXSTRAVA_GET_ROUTE_AS_GPXReturns a GPX file of the route. Requires read_all scope for private routes.需要连接
Returns a GPX file of the route. Requires read_all scope for private routes.
认证
需要 Connected AccountTags
Export Route TCXSTRAVA_GET_ROUTE_AS_TCXReturns a TCX file of the route. Requires read_all scope for private routes.需要连接
Returns a TCX file of the route. Requires read_all scope for private routes.
认证
需要 Connected AccountTags
Get RouteSTRAVA_GET_ROUTE_BY_IDReturns a route using its identifier. Requires read_all scope for private routes.需要连接
Returns a route using its identifier. Requires read_all scope for private routes.
认证
需要 Connected AccountTags
Get Route StreamsSTRAVA_GET_ROUTE_STREAMSReturns the given route's streams. Requires read_all scope for private routes.需要连接
Returns the given route's streams. Requires read_all scope for private routes.
认证
需要 Connected AccountTags
List Athlete RoutesSTRAVA_GET_ROUTES_BY_ATHLETE_IDReturns a list of the routes created by the authenticated athlete. Private routes are filtered out unless requested by a token with read_all scope.需要连接
Returns a list of the routes created by the authenticated athlete. Private routes are filtered out unless requested by a token with read_all scope.
认证
需要 Connected AccountTags
Get SegmentSTRAVA_GET_SEGMENT_BY_IDReturns the specified segment. read_all scope required in order to retrieve athlete-specific segment information, or to retrieve private segments.需要连接
Returns the specified segment. read_all scope required in order to retrieve athlete-specific segment information, or to retrieve private segments.
认证
需要 Connected AccountTags
Get Segment EffortSTRAVA_GET_SEGMENT_EFFORT_BY_IDReturns a segment effort from an activity that is owned by the authenticated athlete. Requires subscription.需要连接
Returns a segment effort from an activity that is owned by the authenticated athlete. Requires subscription.
认证
需要 Connected AccountTags
Get Segment Effort StreamsSTRAVA_GET_SEGMENT_EFFORT_STREAMSReturns a set of streams for a segment effort completed by the authenticated athlete. Requires read_all scope.需要连接
Returns a set of streams for a segment effort completed by the authenticated athlete. Requires read_all scope.
认证
需要 Connected AccountTags
Get Segment StreamsSTRAVA_GET_SEGMENT_STREAMSReturns the given segment's streams. Requires read_all scope for private segments.需要连接
Returns the given segment's streams. Requires read_all scope for private segments.
认证
需要 Connected AccountTags
Get Athlete StatsSTRAVA_GET_STATSReturns the activity stats of an athlete. Only includes data from activities set to Everyone visibilty.需要连接
Returns the activity stats of an athlete. Only includes data from activities set to Everyone visibilty.
认证
需要 Connected AccountTags
Get UploadSTRAVA_GET_UPLOAD_BY_IDReturns an upload for a given identifier. Requires activity:write scope.需要连接
Returns an upload for a given identifier. Requires activity:write scope.
认证
需要 Connected AccountTags
Get Activity ZonesSTRAVA_GET_ZONES_BY_ACTIVITY_IDSummit Feature. Returns the zones of a given activity. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.需要连接
Summit Feature. Returns the zones of a given activity. Requires activity:read for Everyone and Followers activities. Requires activity:read_all for Only Me activities.
认证
需要 Connected AccountTags
Star SegmentSTRAVA_STAR_SEGMENTStars/Unstars the given segment for the authenticated athlete. Requires profile:write scope.需要连接
Stars/Unstars the given segment for the authenticated athlete. Requires profile:write scope.
认证
需要 Connected AccountTags
Update ActivitySTRAVA_UPDATE_ACTIVITY_BY_IDUpdates the given activity that is owned by the authenticated athlete. Requires activity:write. Also requires activity:read_all in order to update Only Me activities需要连接
Updates the given activity that is owned by the authenticated athlete. Requires activity:write. Also requires activity:read_all in order to update Only Me activities
认证
需要 Connected AccountTags
Update AthleteSTRAVA_UPDATE_LOGGED_IN_ATHLETEUpdate the currently authenticated athlete. Requires profile:write scope.需要连接
Update the currently authenticated athlete. Requires profile:write scope.
认证
需要 Connected AccountTags