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

Heart Rate intraday Data for current day

My application is a personal application.  I require the realtime heart rate data for my application.  

 

Today is 11/03/2021

When I run the API call for yesterday I get:

https://api.fitbit.com/1/user/XXXXXX/activities/heart/date/2021-11-02/2021-11-02/1min/time/00:45/00:...

{"activities-heart":[{"customHeartRateZones":[],"dateTime":"2021-11-02","heartRateZones":[{"caloriesOut":5.8709999999999996,"max":116,"min":30,"minutes":5,"name":"Out of Range"},{"caloriesOut":0,"max":144,"min":116,"minutes":0,"name":"Fat Burn"},{"caloriesOut":0,"max":178,"min":144,"minutes":0,"name":"Cardio"},{"caloriesOut":0,"max":220,"min":178,"minutes":0,"name":"Peak"}],"value":"54.67"}],"activities-heart-intraday":{"dataset":[{"time":"00:45:00","value":53},{"time":"00:46:00","value":54},{"time":"00:47:00","value":55},{"time":"00:48:00","value":56},{"time":"00:49:00","value":55},{"time":"00:50:00","value":55}],"datasetInterval":1,"datasetType":"minute"}}

 

The problem is that if I try to run the same API for the current day: 

https://api.fitbit.com/1/user/XXXXXX/activities/heart/date/2021-11-03/2021-11-03/1min/time/00:45/00:...

I get:

{"activities-heart":[{"customHeartRateZones":[],"dateTime":"2021-11-03","heartRateZones":[{"caloriesOut":5.8709999999999996,"max":116,"min":30,"minutes":5,"name":"Out of Range"},{"caloriesOut":0,"max":144,"min":116,"minutes":0,"name":"Fat Burn"},{"caloriesOut":0,"max":178,"min":144,"minutes":0,"name":"Cardio"},{"caloriesOut":0,"max":220,"min":178,"minutes":0,"name":"Peak"}],"value":"0"}],"activities-heart-intraday":{"dataset":[],"datasetInterval":1,"datasetType":"minute"}}

 

I can not get my data for the current day.  Is there a way to do this?

 

 

Best Answer
0 Votes
1 REPLY 1

Hi @CooperMy 

 

Real-time heart rate data is not available through the Web APIs.  The data is only available after the user has synced their device with the mobile application.   Were you wearing the device between 00:45 - 00:50, and have you synced your device with the mobile application after that time?

 

Gordon

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