Skip to main content
Question

how to pull activity information from all athletes via API

  • July 31, 2023
  • 1 reply
  • 162 views

Forum|alt.badge.img+2

I need to be able to access the routes, to later search for the GPX of each Athlete associated with my club, and thus be able to recover all the statistics to consolidate

name, date, hour, local, km, gpx

The api I'm using is: GET https://www.strava.com/api/v3/athletes/:athleteId/routes?page=1&per_page=200 but I get Forbidden

Is there any way to search for the information of the athletes associated with my club?

paleloser
Forum|alt.badge.img+12
  • Hub Climber
  • August 1, 2023

AFAIK, currently there's no way for doing this. I've opened several threads to try find ways of making this work but had no response:

Here I requested adding an endpoint to the API so a logged in user could fetch the activities of the athletes he/she is following:

https://communityhub.strava.com/t5/developer-discussions/following-athletes-activities/td-p/9374

And here I propose adding the Athlete ID to the club activities. This way, as a member of a club you would be able to list the activities for your club and therefore correlate them to their athletes:

https://communityhub.strava.com/t5/developer-discussions/clubathlete-does-not-include-athlete-id/td-p/9378

The only solution we've find for this so far is having all athletes granting access to your app. Then you can either listen to the webhooks or poll periodically for activities. But IMHO this is the worst user experience for a lot of scenarios.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings