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

HeartRate Time Series Web API

Hello there,

 

Can someone answer me? I see that the heartrate time series api has two types of ways to request :

  1. GET https://api.fitbit.com/1/user/[user-id]/activities/heart/date/[date]/[period].json

  2. GET https://api.fitbit.com/1/user/[user-id]/activities/heart/date/[base-date]/[end-date].json

In both the ways when I request for my past data ( anything other than the current day ) I don't seem to get the HeartRateZones with minutes.

Example Response :

 "heartRateZones": [
                    {   "max": 94,
                        "min": 30,
                        "name": "Out of Range"
                    }
....
]

 When I request for the current day (today or with exact date) I get the zones with minutes. Am I missing somethinhg? Do I need to make any Application level changes (manage apps) ? Please suggest some solution for this !

Best Answer
0 Votes
5 REPLIES 5

This seems to be working for me. I tried:
https://api.fitbit.com/1/user/-/activities/heart/date/today1d.json

https://api.fitbit.com/1/user/-/activities/heart/date/2015-10-16/1d.json (a month ago)

 

Do you have heart rate data from a device on the days in the past?

Best Answer
0 Votes

Yes I do. I am sure of whats wrong

Best Answer
0 Votes

Capture your API request (with a tool like Runscope) and share it with us. Be sure to redact your access token before posting.

Best Answer
0 Votes

I think that the heart rate intraseries is inherently broken anyway. I've used it in a web application and some of the data was truly baffling, such as a mid-50s male having a heart rate over 190 constantly, every day at the same time. We can't use the exertion details because of that, so we just use average resting heart rate.

Best Answer
0 Votes

That does sound unusual, but the time series is not inherently broken. Perhaps that user has a bad device.

Best Answer
0 Votes