Skip to main content
Answered

HeartRate

  • January 9, 2023
  • 2 replies
  • 43 views

Forum|alt.badge.img+2
Hello
In my application I want to retrieve the heart rate for an activity: the time spent in each zone.
I use: "https://www.strava.com/api/v3/athlete/activities?per_page=200"
Indeed there is the average and maximum frequency. But I would like the time for each HR zone Z1 to Z5.

There is this:
"https://www.strava.com/api/v3/athlete/zones" "Authorization: Bearer [[token]]"
But I don't see the link with the Activity ID.

Do you have options.

Thanks very much

Best answer by Elliott

Hey there, 

The endpoint you linked to (...athlete/zones) will get you the athlete's HR zones. If you'd like to know how much time was spent in each zone for an activity, this is the endpoint you're after. 

Cheers! 

 

2 replies

Forum|alt.badge.img+22
  • Community Manager
  • Answer
  • January 17, 2023

Hey there, 

The endpoint you linked to (...athlete/zones) will get you the athlete's HR zones. If you'd like to know how much time was spent in each zone for an activity, this is the endpoint you're after. 

Cheers! 

 


Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • January 27, 2023

Thank you very much, I'm working on it today.😉 😉