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

Intraday Request Approved - Unable to Access Intraday Data

ANSWERED

Hello,

Case Number: 00110194
Client ID: 23PX7J

We have submitted the research application for intraday data access, and have received an email saying that our application has been approved.

I would like to verify that our application has been given the correct permissions to access intraday data. We've set the proper permissions when authorizing our application, but the API response either doesn't include the intraday data, or doesn't allow it.

Here are some examples with the following endpoints:
"https://api.fitbit.com/1/user/-/activities/heart/date/today/1d/1min.json"
"https://api.fitbit.com/1/user/-/spo2/date/today/all.json"

Heart:
{'activities-heart': [{'value': {'customHeartRateZones': [], 'heartRateZones': [{'caloriesOut': 1933.3363, 'max': 118, 'min': 30, 'minutes': 1430, 'name': 'Out of Range'}, {'caloriesOut': 52, 'max': 144, 'min': 118, 'minutes': 10, 'name': 'Fat Burn'}, {'caloriesOut': 0, 'max': 176, 'min': 144, 'minutes': 0, 'name': 'Cardio'},{'caloriesOut': 0, 'max': 220, 'min': 176, 'minutes': 0, 'name': 'Peak'}], 'restingHeartRate': 67}, 'dateTime': [date]}], 'requested_date': '[date]'}

SpO2:
Error fetching spo2 data for [date]: API client is not authorized by Fitbit to access the resource requested. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process.

I've replaced the real date in the above output because it would not let me make the post otherwise, for some reason.

Thank you!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @blakelawyer 

Enabling intraday for your client ID is a manual process.  When your research application is approved, the intraday functionality is not automatically enabled.   I have just enabled intraday for the client ID submitted in your intraday request.   You should start receiving the intraday data for the endpoints referenced in your post.

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

View best answer in original post

Best Answer
0 Votes
4 REPLIES 4

Make sure you're using 'client' or 'server' (and not 'personal') application type when trying to access other users' data.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

server.png

My application type is Server. It was Server when I failed to access intraday data earlier.

Best Answer
0 Votes

Hi @blakelawyer 

Enabling intraday for your client ID is a manual process.  When your research application is approved, the intraday functionality is not automatically enabled.   I have just enabled intraday for the client ID submitted in your intraday request.   You should start receiving the intraday data for the endpoints referenced in your post.

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

Thank you! I can receive intraday data now! I appreciate you clarifying that it's a manual process, even after hearing your research application is approved.

Best Answer
0 Votes