Skip to main content
Question

Count of ActivityTotal using the API

  • June 12, 2024
  • 1 reply
  • 37 views

Forum|alt.badge.img+1

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

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 916 replies
  • June 13, 2024

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


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