Curious about our API? Connect with our developers to share ideas, knowledge, and feedback
Recently active
We are planning for the implementation of the web hook subscription.A few questions pop up:1. in the https://www.strava.com/settings/api page: Do we need to change the authorization callback domain?2. Do our users to reconnect our app to Strava?3. Does a manual exsist that guides us from the current way of polling for results to the new webhook system? Our preference is that the users will not experience any negative issues only positive such as a quicker response after a training session. Any help is welcome.
The "Crop" utility for trimming activities with GPS data is really nice, but sadly there is no update event emitted to subscribers, so 3rd party apps are not aware of the update and thus become out of sync on the activity details.This is more of a question to the Strava developers; would you consider adding such an update event to the otherwise great cropping tool?Tagging @Elliott11 hoping he might be willing to pass this on to the appropriate recipient 🙂
I have spent way too many hours trying to determine if I can use a Bearer Token to retrieve my own data. I'm know that I need to have the activity:read or activity:read_all permission to get that data. However, I have not found any way either grant that permission to my account.Is my only choice to implement the full Oauth authorization workflow and then keep track of the return tokens?Thanks-marc
Dear community,a few months ago i started with running and am using my iphone (14) with strava app to track my effort.Some trainings, my wife runs directly next to me and she uses her Apple Watch SE to track her data. We are wondering, why the strava app of my iPhone tracks more distance than her Watch.Yesterday i did a training session with 8,45 km distance but her watch tracked just 8,09 km. We started together and were running next to each other all the time. The complete training session was outdoor, with good gps connection.Did anybody else also faces this issue and can help, which device could be correct? 🙂Thanks for your help.
I'm attempting to upload a gpx file to the uploads API, but keep running into errors. I am doing this with javascript/nodejs. Unfortunately due to the deprecation of the request-json library, the strava api npm library has broken, so I'm trying to implement this with node-fetch. The code I'm using is:const content = fs.createReadStream(__dirname + '/tmp/route.gpx'); const fileForm = new FormData(); fileForm.append('file', content, { "Content-Type": "multipart/form-data", "filename": "route.gpx" }); const postBody = { file: fileForm, name: title, description, data_Type: "gpx", sport_type: sportType, external_id: externalId }; const postResponse = await fetch('https://www.strava.com/api/v3/uploads', { method: 'post', body: postBody, headers: { 'Content-Type': 'application/json', &n
I noticed a 44-minute activity recorded on Strava shows up as a 3-hour activity on my iPhone's fitness app. I suspect it might be due to the Strava API sending out an incorrect "end time." I noticed that the fitness app displays the recording time, both the start and end. It shows the end time of the activity as the time when the activity was "finished" or "saved" on Strava, and not when Strava identifies as the end of the activity, correctly classifying the rest of time as wait or a period of inactivity on the app.It could also be implemented incorrectly on the Fitness team's side, but I thought it would be best to do it here as well.
Hello,I'm trying to integrate Strava with Salesforce, and my issue is that my auth. provider in SF is giving meCallback URLhttps://***********.com/services/authcallback/stravaand as you know strava is only allowing "This field must be just a domain, no slashes or paths". How can i solve this issue?
i tried it by creating a Webhook using a python script but it was unable to verify the callback url for the webhook.. I've gotten the webhook working through Zapier for the purpose of the app, but I'm worried that when I apply to have the app recognised by strava so more people can join it that they wont accept it if it doesn't use a coded in webhook..
I am interested in developing a fitness mobile application similar to Strava. I'm looking for guidance on the essential steps and technologies required to create such an app. Specifically, I would like to know about the key features, backend infrastructure, user interface design considerations, and any other important aspects to consider when developing a fitness tracking app. Additionally, insights into integrating GPS tracking, social networking features, and performance analytics would be appreciated.Thank you.
I've had a web based app working reliably against Strava APIs for many years - the app is using the Events API to get notifications about data changes which works really well.I've been considering doing a mobile app version but am interested to know what model people have used. Do you have each instance of the app polling for new data when the user accesses the app? I can imagine hitting rate limits is an issue with a decent number of users.Is it better to have my own hosted web app dealing with the Strava data sync side of things and my mobile app then just queries my own API to get the user's latest data?Is there another model I've not considered?Thanks!
As the title suggests, could the get athlete activites call GET /athlete/activities be extended to include the activity description ?At present, to the only way to obtain the description is via a second call to get the full details for an activity, which has an impact on the overall API calls made per day
Hi! I'm trying to update the descrption of a event using the create webhook. I'm getting response 200 with the updated fields every time, but for some reason the change is only sometimes visible in the activity it self.Any pointers or ideas how to fix?
Hi everyone,I'm a beginner programmer. I am writing my master's thesis on "The motivational impact of the Strava social network on users' sports results."I created an application in Django that processes tokens, gets athletes and the activities (+comments, kudos) of people who decided to take part in the study and saves them in a database (postgresql).I experienced many difficulties when creating this application, first of all... the authorization code thanks to which I obtain access_token and refresh_token has a very short validity(I think it's only a few dozen seconds).Initially, I enrolled people in the database by texting each one individually and exchanging tokens, but after some time I started receiving "Bad Request" errors and I couldn't get their access_tokens, so their activities.For this reason, I decided to deploy this application from the local version to the server - I chose Azure (it's free for students). Deployment caused me a lot of problems and finally, I can't cope wi
Hi all,I've developed some app and while I was in development I had localhost as callback url, everything worked. Today I've deployed app on VPS on digitalocean droplet, I've bought domain and I am managing it through cloudflare (so I have https). When I try to to login to strava from my app which is deployed on that domain, I am redirected where I need to be redirected but when I take code that I got in redirect and try to get access token, I get an error:{"message": "Bad Request","errors": [{"resource": "AuthorizationCode","field": "code","code": "invalid"}]} If I set localhost for callback and get code that way and then try to get access token from postman, it works.In my settings I have my domain configured as callback domain. Can someone help?
I'm querying the Strava API with the getKudoersByActivityId request, and the SummaryAthlete objects that are being returned only have 'firstname' and 'lastname' fields. Is there a way to get more details of the athlete? I'm trying to get the profile pictures of every kudoer of an athlete.
I need to increase the number of athletes allowed to connect with the athletes in my organization, as we organize running activities. Additionally, I require access to other athletes' activity data that would enable my app to gather information for comparison and reward distribution purposes. What steps should I follow to achieve these objectives?
Hello all!,I'm using the Strava API to retrieve a list of activities for employees.API: https://developers.strava.com/docs/reference/#api-Activities-getActivityByIdI'm trying to figure out how to identify activities that are created by manually importing files on the Strava website (.tcx, .fit, .gpx). Some employees have exported activities, edited the files, and then re-uploaded them.Based on the information returned by the API, what should I rely on to determine this?I've tried to check the fields: external_id and device_name. For example, if the external_id is track(1).gpx and the device_name is Strava GPX, but upon closer inspection, if users are using Samsung or Amazfit watches, the external_id also has the value .gpx. I'm not sure if relying on device_name being Strava GPX ensures 100% certainty that the user uploaded the file on the website.Thank all.
I am making an app for the ios environment.The app supports Strava upload in gpx format.Most of the items you want are uploaded normally.However, Strava's Sport items will not be sent as desired.Below is an example.let params = ["name": StravaGPX_TitleName,"type": "(Sport[userData.Sport_Name])","sport_type": Sport[userData.Sport_Name].trimmingCharacters(in: .whitespaces),"description": "Uploaded from Masil-Tracker","data_type": "gpx"]Among the above"type": "Mountain Bike Ride""type": "MountainBikeRide""sport_type": "Mountain Bike Ride""sport_type": "MountainBikeRide"Even if you specify each oneThe Sport item on the Strava is saved as "Ride".Which code should I use to upload Strava gpxWill the items you want be designated in Strava's Sport items?
Our club uses the embed iframe html snippet to display our club's recent activity and leaderboard on our website. It was working great, but no longer dispalys any strava data, the frame is blank. Are embedded feeds no longer available?
I did a bulk export of my activity data the other day. The activities.csv file contains a numeric Bike field. Here's a little sample (I've already converted Distance to kilometers):"Activity Date","Activity Type","Kilometers","Bike""Mar 10, 2024, 6:03:02 PM","Ride","36.24","8208731.0""Mar 11, 2024, 5:09:48 PM","Ride","58.41","12267983.0""Mar 13, 2024, 4:34:40 PM","Ride","37.99","12267983.0""Mar 15, 2024, 8:31:56 PM","Ride","16.88","13980728.0""Mar 16, 2024, 1:40:17 PM","Ride","44.69","12267983.0"I haven't been able to figure out how the Bike field values map to any of my bikes. Looking in bikes.csv I see no id or key column which might be used to in a database join. My small searches in the API documenation yielded nothing either.I can manually map the numbers to my actual bikes by comparing individual records in activities.csv with what I see in my online activities, but that's clearly going to be suboptimal.There must be some way to map these values to actual bikes in an automated fa
Segue abaixo esta imagem como exemplo, estou conseguindo ter acesso ao meu token de acesso e também realizar solicitações das minhas atividades. Mas, o que não encontrei é uma forma de conseguir obter todas as parciais das minhas atividades. Alguém poderia me ajudar/orientar se é possível ter acesso via solicitação API do Strava. Se sim, me mande o link da documentação como exemplo, por favor. Obrigado! TRANSLATION: Below is this image as an example, I am able to access my access token and also make requests for my activities. But what I haven't found is a way to get all the partials of my activities. Could anyone help/guide me if it is possible to access via Strava API request. If so, send me the documentation link as an example, please. Thanks!
Hello,I'm using ActivityFix and I have created a rule that on the title add my average pace, it works but my problem is that pace is shown in the format hh:mm:ss which is very inconvenient, I was wondering if there is a way to show it in mm:ss Does anybody know ?Thanks
I searched the documentation and couldn't find how I can access partial km information.Example: 5km run1st km - 4.562nd km - 4.593rd km - 5.104th km - 5.235th km - 5.43There is a way to list all activities for a given period and have access to the following information that I included in the example above.
Tried 2 different laptops (Chromebook and Mac) and the 'create a route' section is not working. There is no map visible, the page just seems frozen. I've turned the computers off and back on again, but still no luck.Any idea to solve this? Never had a problem before
Hi! I started using strava again after summer two weeks ago but my phone keep restarting while running during an activity. This never happened to me before. Does anyone know a solution?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.