Designed by athletes, for athletes, Strava's mobile app and website connect millions of runners and cyclists through the sports they love.
Go to siteThe Strava API lets you tap into the robust data from Strava's fitness app, which is a playground for athletes worldwide to track their workouts. With Pipedream, you can automate actions based on activities uploaded to Strava, such as running, biking, or swimming. Imagine syncing workout data to spreadsheets for analysis, auto-posting achievements to social media, or integrating with calendar apps for better scheduling. Pipedream's serverless platform makes it a breeze to create workflows that can listen for Strava webhooks, process data, and trigger actions in countless other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
strava: {
type: "app",
app: "strava",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.strava.com/api/v3/athlete`,
headers: {
Authorization: `Bearer ${this.strava.$auth.oauth_access_token}`,
},
})
},
})
Sync Strava Activities to Google Sheets for Analysis: Whenever a new activity is uploaded to Strava, a Pipedream workflow can be triggered, capturing relevant data like duration, distance, and pace. It then formats and sends this data to a Google Sheets document for tracking and further analysis. This can be invaluable for coaches and athletes looking to visualize progress over time.
Share Completed Workouts on Twitter: Leverage the social aspect of workouts by automatically sharing your completed Strava activities on Twitter. Once an activity is saved on Strava, Pipedream triggers a workflow that extracts the details of the workout and posts a custom message along with stats to your Twitter account, celebrating your achievements and encouraging followers.
Integrate Workout Data with a Custom Slack Bot: Keep your team or coach updated by sending a Slack message containing key workout details immediately after you finish an activity. With Pipedream, you can create a workflow that captures Strava activity details and uses a Slack bot to post those details in a designated channel or direct message. This keeps your fitness community engaged and informed in real-time.
Returns the given activity that is owned by the authenticated athlete. See the docs
Returns the activities of an athlete for a specific identifier. See the docs
Returns the activity stats of an athlete. Only includes data from activities set to Everyone visibilty. See the docs
Updates the given activity that is owned by the authenticated athlete. See the docs
Strava uses OAuth authentication. When you connect your Strava account, Pipedream will open a popup window where you can sign into Strava and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Strava API.
Pipedream requests the following authorization scopes when you connect your account:
read
activity:write
activity:read
activity:read_all
GET
http://www.strava.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.comma_separated_scopes}}
&
approval_prompt=force
POST
https://www.strava.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://www.strava.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}