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

403 error while invoking API for time series heart rate data

Our requirement is to get the hourly heart rate data for a demo application for a client .

Below is the url of the application that we are specifically trying to make
GET https://api.fitbit.com/1/user/<username>/activities/heart/date/today/today/1s/time/11:03/12.03.json
We get a response code of 403 - forbidden access.

I learn from the API documentation (https://dev.fitbit.com/docs/heart-rate/) that access is given only upon request to certain applications
I have shared the application url and the client ID through email - sender pallavi

Can you please grant access? Also, I have seen the link https://dev.fitbit.com/docs/basics/#personal that calls can be made by 'owner of the app'.
What does this mean? Is this feature going to be available soon?

As stated above, the requirement really is to get the current hourly heart rate through an API call. Any alternatives that you suggest are welcome

Best Answer
0 Votes
7 REPLIES 7

Access to Heart Rate data requires OAuth 2.0. Are you using OAuth 1.0 and what is the body of the error response you are getting? If you are using OAuth 2.0, did you request the heartrate scope?

 

Personal app type is coming soon as noted on the docs. The owner of the app refers to the user who registered the application on dev.fitbit.com.

Best Answer
0 Votes

Hi Dan,

 

Thanks for your response. I am very much using oAuth 2.0 . Below url to request access.

 

https://www.fitbit.com/login?redirect=%2Foauth2%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3D229...

 

I am successfully getting the day-wise heart rate data through another API call.

Best Answer
0 Votes

Dan,

 

Here is the list I got from the forum that elaborates that special access permissions is needed to the API in order to invoke it by client programs like ours.

 

https://community.fitbit.com/t5/Web-API/How-can-I-get-minute-and-second-level-data/td-p/324362/

 

I followed all the steps listed out there. Request you to arrange for access to this API at the earliest.

The API calls are not for any commercial purpose. We are simply demonstrating capability of our platform with fitbit device.

Eagerly looking forward to your response..

Best Answer
0 Votes

Dan : I am awaiting your response on my request to get access to the intra day heart rate data. I have sent a reminder through email as well to api@fitbit.com.

Kindly do the neeful.

Best Answer
0 Votes

The support request ticket request number that I received is #06993002 on email

Best Answer
0 Votes

Please wait for a reply to your support case, thanks.

Best Answer
0 Votes

Hi, Its been 15 days since I first requested and our project is on hold. May I request you to expedite and request access to the API..

Best Answer
0 Votes