Skip to main content
Answered

Total amount of activities

  • May 28, 2023
  • 1 reply
  • 1075 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.

1 reply

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 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.