The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
02-05-2024 05:15 AM
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?
02-06-2024 11:14 AM
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}.
02-07-2024 05:54 AM
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
Welcome to the Community - here is your guide to help you get started!