Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

averageHeartRate missing from Daily Activity Summary API

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?

Best Answer
0 Votes
3 REPLIES 3

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".

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

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?

Best Answer
0 Votes

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.

 

 

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer