01-20-2025 19:54
01-20-2025 19:54
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!
Answered! Go to the Best Answer.
01-21-2025 09:55
01-21-2025 09:55
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.
01-20-2025 20:04
01-20-2025 20:04
Make sure you're using 'client' or 'server' (and not 'personal') application type when trying to access other users' data.
01-20-2025 21:36
01-20-2025 21:36
My application type is Server. It was Server when I failed to access intraday data earlier.
01-21-2025 09:55
01-21-2025 09:55
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.
01-21-2025 09:58
01-21-2025 09:58
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.