Skip to main content
Answered

API Stats for other sports as in profile "My stats"

  • March 16, 2026
  • 1 reply
  • 39 views

Hello!

I’ve seen that in Strava profile I can see my stats for my major sports - for me Run, Hike, Walk and Yoga as can seen there:
 

But when I call API for Athlete Stats, I can only get Run, Bike and Swim - no mention of other sports. I’ve seen that I can get list of all acitivities for used by API - set after param in query to 1.1.{currentYear}, filter relevant sport type and them cumulate distance and elevation but I think this approach is overkill (download 300+ activities in December just to get elevation gain for hiking in this year...). Another question is if’s possible to insert into 

$ http get "https://www.strava.com/api/v3/athlete/activities?before=&after=&page=&per_page=" "Authorization: Bearer [[token]]"

new param: &sport_type=hiking

Best answer by Jan_Mantau

It’s not really overkill to get the list of activities, you can retrieve 200 activities at once with each call. I would advice to do it that way because I can’t remember that requests for API changes from normal users were ever considered.

1 reply

Jan_Mantau
Superuser
Forum|alt.badge.img+27
  • Superuser
  • Answer
  • March 16, 2026

It’s not really overkill to get the list of activities, you can retrieve 200 activities at once with each call. I would advice to do it that way because I can’t remember that requests for API changes from normal users were ever considered.