Curious about our API? Connect with our developers to share ideas, knowledge, and feedback
Recently active
Hi, I'm trying to update an activity using the endpoint updateActivityById with a PUT request in Python. However, I'm consistently getting a "Resource Not Found" error. Here's my code: def update_acti(idd): activity_write_read_all_token = *** url = f'https://www.strava.com/api/v3/activities/{idd}' header = { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + activity_write_read_all_token } data = { 'gear_id' : user['shoes'] #shoes identifier, string } r = requests.put(url, headers = header, json = data).json() return r response = update_acti(***) I get an error 404 : Ressource Not Found.I first checked that the activity existed with getActivityById and it does. The user['shoes'] returns the correct gear id as a string. Even with this line commented I still get the error.Then I supposed the error came from my PUT request "syntax" or from the access token. So I tested the updateAc
Hi,I'm trying to make an script on python to upload all my old activities.Created the app on the portal, and got client_id and client secret. import os import requests import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) CLIENT_ID = "my_client_id" CLIENT_SECRET = "my_secret" REFRESH_TOKEN = "my_refresh" def get_access_token(): auth_url = "https://www.strava.com/oauth/token" payload = { 'client_id': CLIENT_ID, 'client_secret': CLIENT_SECRET, 'refresh_token': REFRESH_TOKEN, 'grant_type': "refresh_token", 'scope': 'activity:write', 'f': 'json' } print("Requesting Token... ") res = requests.post(auth_url, data=payload, verify=False) try: res.raise_for_status() access_token = res.json()['access_token'] print("Access Token = {} ".format(access_token)) return access_token except requests.exceptions.HTTPError as err: print
I've noticed that activities returned by the Get Activities endpoint have short laps removed. This also appears when viewing the activity on Strava itself, suggesting Strava may be applying some sort of processing.For context, I keep autolap (1mi) on my watch when running on a track. If autolap beeps before I cross the line, I hit the lap button again as I cross the line, then add the two times for the full mile time. My app (workoutsplitz.com) implements the same logic, and Strava's removal of these short laps is causing inaccuracies as a result. I've attached two screenshots, one from Strava and the other from Garmin, showing the differences.Strava:Garmin:Furthermore, the "reconciliation" laps are at the same pace as the prior lap, and are at a speed which is clearly not standing/walking, so it's not obvious why they are removed in the first place.Has anyone else noticed this, or found a way to get the full, unprocessed lap data?
Boa tarde , Como posso buscar todos os atletas de um determinado clube pelo get disponibilizado não traz todas as informações estou usando assim https://www.strava.com/api/v3/clubs/962795/members?page=1&per_page=200&access_token=e9166a9e5c00f4634l2685920g69db80f2bc77ba A comunidade de tem 71 membros porem esta aparecendo apenas 44 TRANSLATION: Good afternoon, How can I search for all the athletes of a particular club so that they can be made available and do not map all the information they are using as well? https://www.strava.com/api/v3/clubs/962795/members?page=1&per_page=200&access_token=e9166a9e5c00f4634l2685920g69db80f2bc77ba A community of 71 members is appearing only 44
Hello!Since a while ago, as indicated from support, Strava allows to show the steps taken in walking or hiking activities https://support.strava.com/hc/es-es/articles/13772272971533-Pasos-en-Strava.This is limited only to some devices, but it could be extended if it would be allowed to obtain the steps data from the TCX file generated by many devices.As you can see in this image https://i.imgur.com/WuLPip9.png, the steps data are contained in the <Steps> tag, inside the Extensions.LX and <Lap> structure.As Strava already displays the calorie data, it will not be too complicated to access the step data in the TCX file to display it.If this is supported, it would extend the compatibility of the step count with more devices.https://support.strava.com/hc/es-es/requests/2831801
Is the "Get Activity Streams (getActivityStreams)" failing when the activity is too long? Anyway to limit the number of coordinates you are returning? Thank you
Hello! Is it possible to generate TypeScript Client Code? I tried, but what I got is different files for the JavaScript and TypeScript versions.TSJSClient codeYou will need to have a Java runtime installed on your machine to run Swagger. To generate client code, you first need to install Swagger Codegen 2.X. On macOS, you may use Homebrew:$ brew install swagger-codegen@2 mavenTo generate code in a given language, run swagger-codegen generate and pass the following parameters:--input-spec <spec file>: Use https://developers.strava.com/swagger/swagger.json for Strava’s API--config <configuration file>: (optional) pass the settings or overrides you want the code generator to honor--lang <language>: the target programming language you seek to generate code for (running swagger-codegen by itself will print a list of available languages)--output <output directory>: where to write the resulting filesThis example w
Hello, I followed the steps at: https://developers.strava.com/docs/webhookexample/I got a callback when I requested it this morningbut return 400 reason is strava request parameter 'hub.mode' for method parameter type String is not presenti change this@RequestParam(value = "hub.mode", required = false) String modehowever when i push_subscriptions again. I never received callback from strava again。it remain “GET to callback URL does not return 200”. I also tried calling the endpoint directly
Showing invalid data
I'm trying to retrieve the waypoints of a route to generate directions but they're always returning empty. I tried both {athlete}/routes and routes/{route_id}. Is anyone else experiencing this?
When reading activity data, we can't get the step count of an activity. Even when the step count is visible in the Strava app, when retrieving the detailed activity data, there is no step count reference. Will this be added soon? Users ask us for this feature.
Hi there. I have a medium sized app and am approaching the limit for the number of connected athletes. I have completed the review form (https://share.hsforms.com/1VXSwPUYqSH6IxK0y51FjHwcnkd8) but not yet heard anything back from Strava. Does anyone know how long it usually takes for them to review connected athlete / rate limit increases?Thanks in advance.
Past Samsung Health exercise means, exercises recorded before connecting Samsung Health and Strava
Plis help i can't link apk RRtrakcs to strava
I've been working on an app integration to support link previews on Strava links. However, within the last week Strava doesn't appear to be including the meta tag for the image to enable link previews (like with the photo the user took).Example Strava link: https://strava.app.link/KFpJNkgulLb
Hi Strava,I was trying to use API Strava to fetch data from Activity Club. The all data I need is success to fetched except date information. The problem is I can't sort the data based on time & I can't make performance graph for the member of club monthly. so I would like to suggest Strava Team to add date parameter in object array API of ClubActivity to solve that problem. I also discover in discussion forum that many users have the same problem with me. https://communityhub.strava.com/t5/developer-discussions/date-is-not-getting-from-club-members/td-p/21746https://communityhub.strava.com/t5/developer-discussions/clubathlete-does-not-include-athlete-id/m-p/20614/highlight/true#M1075https://communityhub.strava.com/t5/developer-discussions/get-month-activities-of-all-members-of-a-club/td-p/19418https://communityhub.strava.com/t5/developer-discussions/clubs-endpoint-documentation-update/m-p/5884/highlight/true#M71
We will have an event throughout this year, but we don’t know how many people will actually participate. Is there any way to increase the number of athlete capacity allowed to connect to 20,000?
Call me a purist, The frequency and magnitude of using indoor riding to build elevation stats seems like an insult to the very sport of cycling itself. Example, when a rider posts 3500+ climb on a 1 hour indoor ride, a stat they never don’t achieve likewise outdoors, it seems disingenuous. Ride and climb away inside, but purist cyclist should be free to compare their stats to other riders that have shunned indoor stats as part of their overall gains. STRAVA, let’s unite and create a separate category for indoor elevation (and miles.) Indoor doesn’t factor wind, temperature and traffic etc.
Hi Team,I have an application which is fearing Strava activities of the users . The integration is working fine for most of the users; however for a few users the integration is not working and token is not getting generated. need help on the possible cause and way to solve this
I am developing a app that integrates with Strava and am in the process of converting from polling to using the webhook API. Currently it only posts updates on activity creation, deletion, or when two fields are updated, title, or type (and privacy). This is a bit underwhelming as if a user changes anything else, for example the duration or start time of the activity. This makes it impossible to sync time data with Strava without polling the API ever X duration, it would be really helpful if date related changes were included in webhook updates.If I am missing something lmk. Thank you.
Hi team, How am I able to increase my connected user limit. I've recently setup my developer account and my connected user limit is 1. Thanks
Hi!I would like to know if there is any way to filter segments by the activity_type or activities based on the type of run, like "Race" or "Long Workout".At this moment, I'm just fetching all the data and then filtering on my own server, but depending on how many activities a user has, takes some time.Thanks!
Hello there!I have created a new simple web app that provides a simple list of a athletes races. I am posting here to see if anyone would like to help in testing the app and suggest improvements, but also I was wondering how I should let Strava know that I intend for the public to use this app and to get the blessing of Strava basically?The app is available now at https://myraceindex.comYou can view my own public profile here: https://myraceindex.com/athletes/2671752
Hi,getLoggedInAthleteActivities does not include a field for descent. I understand that the fields in SummaryActivity are returned, but why is there no field containing information about the negative elevation gain during an activity. I feel that this is a central piece of information if an activity's start/end places are not the same.Are there plans to add this information? If not, how can I submit a feature request?Kind regards,Brian
Coming from https://github.com/dblock/slack-strava/issues/157. I have 3,461 users authenticated with Strava according to https://www.strava.com/settings/api, but only 1,226 are currently active. Many users were trials or dropped off the app.I'll work on de-authorizing users before deleting them, but is there a way to list authenticated users/purge these users for whom tokens weren't renewed in a long time? Any other ideas of how to deal with authorized users that aren't active and have expired tokens?
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.