03-28-2019 15:12
03-28-2019 15:12
Hi all,
I'm using the endpoint https://api.fitbit.com/1/user/[user-id]/activities/date/[date].json to get the daily summary. In that endpoint, I can get the restingHeartRate but not the averageHeartRate. Am I missing something?
03-28-2019 19:40
03-28-2019 19:40
Hi @StErMi
The averageHeartRate value is displayed by the Get Activity Log List endpoint, https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-logs-list. It looks like the value is returned when the logType = "tracker", not "manual".
03-29-2019 01:22
03-29-2019 01:22
I would like to avoid requesting more than 1 call just to get information.
1) My question is: shouldn't that information be available in the Daily Activity Summary?
2) From where the Fitbit app get that info? (the average HR displayed by the Fitbit Android App)
3) Should I use the endpoint you have suggested and taken just the latest activity as a reference for the most recent average hr?
04-01-2019 15:49
04-01-2019 15:49
Hi @StErMi,
I understand using 2 endpoints to get the necessary data is not ideal. I can submit an enhancement request to engineering asking for this averageHeartRate to be added to the Get Daily Activity Summary endpoint. There is no guarantee this enhancement will be addressed. If it is, I'll update this post.
In the meantime, it's best that you pull the information from the endpoint suggested.