Curious about our API? Connect with our developers to share ideas, knowledge, and feedback
Recently active
Hey all - is there a way to return upcoming club event activities? I didn't see it in the documentation. Appreciate any advice. Thx!
Hello Strava Community,I'm experiencing an issue with the "Get Activity Streams (getActivityStreams)" method. When an activity lasts more than 5-6 hours, the response includes an excessive amount of data, resulting in a 500 server error. Is there a way to limit the number of data points returned to prevent this heavy response?I understand that different stream types (keys) can be queried individually by passing them as parameters, allowing us to request data like distance, time, heart rate, watts, etc., separately instead of all at once. However, even when querying individually, we're still encountering a 500 error for long activities. With the increasing popularity of long endurance sports, where athletes cover distances of 200 miles or more, we can expect very large activities, even in training sessions.For instance, Garmin provides an option to restrict the number of data points returned, which reduces the data load. While this results in less accurate data, it is often sufficient f
I'm developing a web app to fetch athletes activities in daily basic ( eg cycling) using API. While fetching API im not able to fetch date/time of activity and Athlete ID. Even I contacted strava help but they dint helped and said to refer community forum. Do someone have answer or reference to this issue. ( I hope strava limits are to ensure security) . Is there any way?
In https://developers.strava.com/docs/reference/ there are examples in C# using the com.strava.api.v3.api libraries, but where download the libraries from?I tried downloading from https://github.com/tdao7/.Net-Strava-API and some api calls work, but it is different from the examples in the documentation and other api calls don't work.
HelloI want to create app for me and my friends - around 10 people.We want to share out activities within this app but it will be only for our private usage. We want to scale some results within different types of activities and create ranking who made the longest distance.So I need to store in my private database three information from Strava: date, distance, athlete name.Is it possible to store such information in private database? Because I found in API Agreement such statement: “your Developer Applications are prohibited from storing any Strava Data”
Hello, We have a swimming app and have a limit at 999 for number of athletes allowed to connect. We reached this limit. How to get past it? How to raise the limit? Thanks a lot
Hey,During the Auth process, we are requesting (amongst others) the scope activity:write. Is there a way to determine if the user deselected (or indeed kept selected) this permission during the Auth Process? Either in the response back from in the auth process, or, at a later date with a separate API request? At present, the only way I can see how to determine it is to try to write and catch the Unauthorised Error (a pretty ugly way to do it!). Thanks
Hi there 👋As a developer an a Strava user, it will be very helpful to add an optional parameter to the getLoggedInAthleteActivities request so it only returns activities matching a specific type.For example, if an app only use Strava API for bike stats, it could only get the activities matching the type "Bike".Thanks for your attention! 😁
I have a new user connected to my app two days ago. Out of the sudden I am reciving batches and batches of webhook events for activities updates. The updates are: {"visibility":"everyone"}Activities to be updated are from 2014, 2015, 2016 and so on. I have asked the user how she did it. And she says she have changed the account visibility about 2 weeks ago.So my question is are those events are still coming from that change 2 weeks ago (before connecting to my app) or there is some other logic behind such webhooks behavior?
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
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.