Skip to main content
Question

Athlete V3 stats API all_run_totals and others are incorrect

  • November 25, 2024
  • 8 replies
  • 275 views

Forum|alt.badge.img+2

Since last week I noticed that the all_*_totals (eg. all_run_totals) have reset on the API to start counting from 0 even though the Strava Portal clearly indicates a much higher number.

 

 

On Strava portal my all time running stats are 113

However the API https://developers.strava.com/docs/reference/#api-Athletes-getStats no returns only my most recent run count

"all_run_totals": {

  "count": 1,

  "distance": 5630.0,

  "moving_time": 2473,

  "elapsed_time": 2519,

  "elevation_gain": 86.63724517822266

},

 

How do I get this corrected?

8 replies

Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • 3 replies
  • December 2, 2024

How do I approach logging an API bug to have this resolved?


Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 895 replies
  • December 2, 2024

I tested it and you are right, these counts are wrong for every sports type. For me i.e. it shows way too few ytd runs. You could write to developers @ strava . com as they are participating only every odd months in this forum and then they mostly just refer to the documentation we know already.


Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • 3 replies
  • December 2, 2024

Thank you ​@Jan_Mantau 

I have sent them a mail. Will update when they get back to me.


Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • 3 replies
  • December 13, 2024

Strava has confirmed the issue and are working on it

Hey, 
 
Thanks for reaching out and flagging this (as well as including the link to the forums!). This has been reproduced by our team and we have opened a ticket for the bug to be addressed accordingly. 
 
Best, 
Strava API Team


Forum|alt.badge.img

i am also facing same issue with 0 stats for ytd_run_totals. i guess its the same issue as mentioned here. its affecting a large segment of users. can we get an update on the fix 


Forum|alt.badge.img
  • Hub Starter
  • 1 reply
  • December 29, 2024

Yep, also seeing the stats endpoint returning incorrect data:

https://www.strava.com/api/v3/athletes/{id}/stats

{
  biggest_ride_distance: 11101.1,
  biggest_climb_elevation_gain: 3.1999999999999997,
  recent_ride_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0,
    achievement_count: 0
  },
  all_ride_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0
  },
  recent_run_totals: {
    count: 3,
    distance: 13058.400146484375,
    moving_time: 4632,
    elapsed_time: 4726,
    elevation_gain: 70.25619125366211,
    achievement_count: 3
  },
  all_run_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0
  },
  recent_swim_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0,
    achievement_count: 0
  },
  all_swim_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0
  },
  ytd_ride_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0
  },
  ytd_run_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0
  },
  ytd_swim_totals: {
    count: 0,
    distance: 0,
    moving_time: 0,
    elapsed_time: 0,
    elevation_gain: 0
  }
}

 

Seems like this has been broken for ~1–2 weeks?

 


Forum|alt.badge.img
  • Hub Starter
  • 2 replies
  • January 8, 2025

Any updates from Strava regarding this? It’s been a month since this has stopped working, and it seems like an integral part of the API.

Thanks,

Dan


Forum|alt.badge.img+1
  • Hub Rookie
  • 3 replies
  • January 24, 2025

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