Skip to main content

API endpoint to retrieve fitness


Forum|alt.badge.img+1

Hi

 

In the webpage, fitness and freshness is retrieved from here

 

https://www.strava.com/fitness/{athlete_id}?range=3months&type=&source=combined

 

What is the equivalent endpoint in the API to retrieve that information?

Thanks

3 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 895 replies
  • January 2, 2025

You have to calculate everything in your app by using the suffer_score in the activities and the power values, the Strava API doesn’t provide an endpoint,


Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • 1 reply
  • January 2, 2025
Jan_Mantau wrote:

You have to calculate everything in your app by using the suffer_score in the activities and the power values, the Strava API doesn’t provide an endpoint,

Thanks! Is there any guide on how those figures are calculated?  


Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 895 replies
  • January 2, 2025

Not really, you have to do much research and then you will only get near the undisclosed Strava formulas. Basically the Relative Effort is calculated by totaling all suffer_score from the same day and then you have to use the formula “Relative Effort for today” = “Relative Effort from day before” + “Total suffer_score” / 42

The same formula can be used for the power instead of the Relative Effort, but as the Strava API doesn’t reveal the training load of the activity you have to calculate that by the formula “training load” = (weighted_average_watts/FTP)² * moving_time / 36


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