cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.

Count of ActivityTotal using the API

itsmrchiptoyou
Mt. Kenya

Reading the API docs, Under 'All Models' you have listed 'ActivityTotal’ with a  ‘count’ parameter 

https://developers.strava.com/docs/reference/#api-models-ActivityTotal

 
What I am hoping to get is just total number of activities I have logged on Strava. 

While I know I can do this by calling https://www.strava.com/api/v3/athlete/activities. The problem there is that I would have to paginate to get all the responses which in my case takes a long time. 

So if there is a way to just get the total number of activities in the account by a count of ActivityTotal then that would be a big help. 

 

1 REPLY 1

Jan_Mantau
Superuser
Superuser

You could use the endpoint /athletes/{id}/stats but you will only get counts for rides, runs and swims.

Ready, Get Set, Go!

Welcome to the Community - here is your guide to help you get started!


Know how to use Community


Understand Community Settings