Skip to main content
Question

missing activity id from 'get_logged_in_athlete_activities'


Forum|alt.badge.img+3

When I use the python API to get the activities from the logged in user, I want to display the heart rate as well, which i don't get in the summary and thats already annoying.

So I need to make a separate call to the activity/{id}. But now I find out that i don't get the ID in the summary either. I've tried to upload_id but thats not working either. 

Does anyone have a solution for this?

2 replies

ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • 246 replies
  • February 6, 2024

ID should definitely be included in the summary, it's the first parameter listed @ https://developers.strava.com/docs/reference/#api-models-SummaryActivity.

I'm not familiar with the Python library you're using to access the API, I just did a quick test with postman and I see an ID for every activity returned. I also see the fields has_heartrate, average_heartrate, and max_heartrate if those are useful for what you're trying to do to avoid the extra call to activity/{id}. 


Forum|alt.badge.img+3
  • Author
  • Hub Rookie
  • 6 replies
  • February 7, 2024

yea it is with a regular http request, but its not through the python package. I've solved it by just making a regular call now towards the api


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