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?
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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".
Best AnswerI 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?
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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.