Skip to main content
Answer

Count of ActivityTotal using the API

  • June 12, 2024
  • 1 reply
  • 92 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. 

 

Best answer by Jan_Mantau

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

1 reply

Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • Answer
  • June 13, 2024

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