Skip to main content
Solved

Total amount of activities

  • May 28, 2023
  • 1 reply
  • 212 views

Forum|alt.badge.img+2

I'm trying to grab my total amount of activities via Strava API. I see that this endpoint:

strava.com/api/v3/athletes/<athlete id>/stats

Provides some stats like all_ride_totals, all_run_totals and all_swim_totals but I don't see the total amount of activities. Is this amount in another endpoint that I'm not familiar with? I can see this total on my profile dashboard (see screenshot), so I'm assuming that has to be somewhere. 
 

Best answer by Jan_Mantau

If it's not in the returned stats then you can't get this information via API directly yet. You would have to get all activities with /athlete/activities and count them yourself. There isn't a rule that everything you see in a profile is avalaible in the API.

View original
Did this topic help you find an answer to your question?

1 reply

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 895 replies
  • Answer
  • May 30, 2023

If it's not in the returned stats then you can't get this information via API directly yet. You would have to get all activities with /athlete/activities and count them yourself. There isn't a rule that everything you see in a profile is avalaible in the API.


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