Curious about our API? Connect with our developers to share ideas, knowledge, and feedback
Recently active
Hi, I am trying to implement Strava webhook but I need to call the subscription API first to create a webhook subscription. I keep getting the following error for some reason even though I am doing everything according to the webhooks documentation:{ "message": "Bad Request", "errors": [ { "resource": "PushSubscription", "field": "callback url", "code": "not verifiable" } ]}This is my callback url:https://app.6amrun.com/api/1.1/wf/strava_webhook_live
I would like a faster method of querying a detailed representation for a list of Strava activities. I can make a single query via:/activities/{id}However, I have 1000 activities and need to make a seperate call for each acitivity id. And this takes too long.It would be nice to be able to query on a list of activity ids. Is this possible?Side note: The same question was stated nicely on another forum. I did not write it, but will link for clarity.
Hello,I created a website to show my activities on my website.This works great. It shows a map with my followed routes.But is it possible to hide my activities on the strava-app itself and not on my website?So only myself can look at strava and other strava users can only look at my website?Thnx in advanced.
Hi, I would like to know how to make a query on a segment using the API, and how to filter with the parameters that appear in the sorting table. For example: https://www.strava.com/segments/16956881
The API docs says that both getActivityById and getRouteById should return both a map.polyline and map.summary_polyline. However, my activities only have a polyline and don't have a summary_polyline. My routes, meanwhile, only show summary_polyline and no polyline. Am I missing something?Also, does anyone have a good description between polyline and summary_polyline?
My understanding is that the only way to register multiple apps is to create an account for each, as a single account cannot be associated with more than one app. As such I set up a new account, however was unable to register my new app as I did not have permission to access strava.com/settings/api. In the UI this appeared as the "My API Application" button not being present. I was unable to find any documentation discussing this, but then decided to sign up for the trial subscription and it worked fine from then on.This seems wrong as devs surely should not be expected to create and subscribe to a new account if they are woking on multiple apps as I am. Also there is no mention of this being a feature of a sub, if it were intentional.Perhaps I am missing something or if not, could someone from Strava please help clarify the rational here?
Hello,In the API is the Activity.total_elevation_gain field populated with Strava-corrected elevation or the elevation data originally recorded by the device / app? The documentation just states: "The activity's total elevation gain." Thanks
Hi all, I've noticed that my webhook is called 3 times when an activity is added or edited. Any reason why this is? There's obviously only one webhook setup at the strava side. I see them in my server logs with something like 7 minutes between them. There are push notifications in my app based on information from the webhook, so now people are getting multiple notifications. What can I do to debug this? My server responds with an empty json response within the specified 2 seconds. Thanks.
Wondering if someone could help - I'm trying to obtain totals for an athlete. I have managed to get all activities, but would also like totals.This is the following code I am using:stats_url = f"https://www.strava.com/api/v3/athletes/{client_id}/stats?" f"access_token={access_token}" statsresponse = requests.get(stats_url) stats = statsresponse.json() print('Stats API:', stats_url) ride_total_year_calculated = round(stats['ytd_ride_totals']['distance']/1000,1 ) When copy and pasting the URL I get the following response: {"message":"Forbidden","errors":[]} I'm obviously doing something really stupid here, but can't see it right now! For further info, the following works:activities_url = f"https://www.strava.com/api/v3/athlete/activities?" f"access_token={access_token}" print('RESTful API:', activities_url) response = requests.get(activities_url, params=params) print(len(response.json())) for i in range(0,len(response.json())): acti
Bonjour,Voici une idée concernant le développement des KOM et de la ludification des activités sportives sur STRAVA. Je me suis posé la question s'il était possible d'établir des KOM millésimés (KOM-2023 / KOM-2024 ....) en conservant également le KOM général qui se base sur la meilleure performance de tout temps sur un segment. Cela permettrai d'offrir la possibilité à chacun de décrocher un KOM annuel sur les segments. Celui-ci remis en jeu à chaque nouvelle année un peu comme l'esprit d'une course ou il existe un record de tout temps (le KOM général) et un vainqueur par édition (KOM Annuel ou KOM Millésimé).Cordialement,Pierre KOCH TRANSLATION: Good morning,Here is an idea regarding the development of KOMs and the gamification of sports activities on STRAVA. I asked myself the question if it was possible to establish vintage KOMs (KOM-2023 / KOM-2024....) while also retaining the general KOM which is based on the best performance of all time in a segment. This will ma
Hola, alguien utiliza otra app que no sea la de Motorola para sincronizar las actividades a strava??? Hoy dejo de andar me pide migrar a otra app pero la misma no está disponible en mi país!!! TRANSLATION: Hello, does anyone use another app other than Motorola's to synchronize activities with Strava??? Today I stopped walking and it asks me to migrate to another app but it is not available in my country!!!
Hello, I have a problem with strava authentication. When the user logs in for the first time everything goes well. However, during subsequent connections it still requires authorization to connect to the Strava account instead of directly connecting it to my application. The approval_prompt parameter is of course "auto". I don't see where the problem could be. Thanks in advance
The Strava API Brand Guidelines state:> You must link back to all original Strava data sources presented in your applicationIs there any documentation that gives any more detail on how to do this? When I first read this I had assumed that the API responses would provide links back to the Strava resource, but that doesn't appear to be the case.Some questions:- Is it okay to link back to the Strava web app, or does it have to link to the precise resource?- On mobile, should this link to the Strava mobile app (deep link), or to the Strava web app?- How can we know the url to link to?
I have written a python script to modify the visibility of all my recorded activities from "only_me" to "everyone". The script works and the return from the api indicates that the update was performed successfully. However in reality the privacy flag is not changed. Is that a limitation of the api?
Migrated Content
I'm calling athletes/{id}/routes in swagger and receiving a 403 error. I have successfully authorized myself with read_all permissions. FWIW, everything I try in swagger returns a 403.
I'm having difficulty erasing my location information from the profile -> location. Despite attempting to set it as blank, it keeps reverting to the previously entered location.
Hi there,When sending a .gpx file through https://www.strava.com/api/v3/uploads route, my moving time is identical as the elapsed time. In the .gpx file, there are clearly timestamps that have power, cadence and other data as 0, where I literally stopped cycling. In the graphs, I see that power data is correct for that period, but still moving time is equal to elapsed time. Is there something I'm missing in the Upload API? Will happily provide gpx files if needed.Best regards,Marijo
I'm super curious how developers are bootstrapping their data.When starting a new app, I want to bootstrap my database with my personal history. So rather than simply leveraging webhooks, I want to first read in past events. This is impossible with the current rate limits. What do most people do to solve this problem?Thanks!
I developed a web aplications where i can check the distance and deliver the medals to the riders who complete the distance but yesterday the client_id is not allowed to get the data from the post consult in the api, can you help me to know if is posible use the api to this objetive? thanks very much
Howdy folks! I have an issue I simply cannot figure out. I am trying to stream data from an activity. I am using postman to test my queries. As we can see, the activity is real and works. The key has read all and read permissions for activities via scope=read,read_all,activity:read_all,activity:read,profile:read_allHowever, the stream query is not working. Any insights would be super appreciated.
I was interested to see the new feature Custom Waypoints on Strava Routes! I'm wondering how an app using the Strava REST API can query for the custom waypoints.What I tried:A request to https://www.strava.com/api/v3/athlete/routes didn't show the custom waypoints I addedFrom https://www.strava.com/api/v3/routes/3153006196918182754 I don't see the custom waypoints eitherI was hoping I could use the custom waypoints to remind myself with things like "double check if this road should be marked private in openstreetmap." (That's the main reason I use my custom web app: it shows my strava route overlaid with openstreetmap layers for e.g. private roads, fixme tags, etc.)I don't think the official Strava Android app shows the custom waypoints either: I choose a route before starting recording a run, and the waypoints aren't visible yet.If there's some "developer roadmap" of when we can expect the android app and/or API to support custom waypoints, I'd love to see it!
Redacted
Hello, we are using STRAVA's api and in need to get the data of the user (even the data he had before authorizing our app). Is it possible or do you only allow us to get the data of the user that has been synced or uploaded to Strava after him/her authorizing our app?Thanks.
Is it possible to check GPS distance from List Athlete Activities (getLoggedInAthleteActivities) API?
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.