Skip to main content

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. 
 

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