06-15-2022 13:18
06-15-2022 13:18
Hi,
I am using Fitbit Inspire 2 and trying to fetch some data via WebApi.
My application type is "Personal" and at first attempt to authorize I gave an access to 'All' my data.
I am able to fetch everything(hr/steps/distance/calories) except:
Error:
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 would appreciate any help with it, thanks.
P.S. 'dailyRmssd' from HRV summary is called daily, but in the Fitbit App the same data are marked as 'nightly average'. Looks strange.
06-16-2022 09:06
06-16-2022 09:06
Just to confirm, when you consented to share all of your data with your application, did you see breathing rate and HRV listed in the available scopes page?
Gordon
06-16-2022 15:01
06-16-2022 15:01
Hi @Gordon-C
No, there were no br and hrv in the listed scope page.
I have revoked access and here what it has suggested to share
So.. if these options should be here, then it's a bit strange that they hadn't been listed.
06-17-2022 02:11
06-17-2022 02:11
Hi, I have same issue when fetch the breathing rate and SpO2. and I could not find the scope for spo2 and breathing rate in the list. Do you know what scope is for spo2 and breathing rate?
06-17-2022 10:00
06-17-2022 10:00
You will need to add the breathing rate and SpO2 scopes to your authorization string. This is not required for HRV because the data set access is part of the heart rate scope. The documentation for the endpoints lists the scope you need to add at the top of the page. See
Breathing Rate: https://dev.fitbit.com/build/reference/web-api/breathing-rate/get-br-summary-by-date/
SpO2: https://dev.fitbit.com/build/reference/web-api/spo2/get-spo2-summary-by-date/
Once you add the scopes and send the user through the authorization flow again, you should see the 2 new scopes appear. The user will need to consent to the new scopes before you can access the data.
Let me know if this doesn't work for you.
06-19-2022 11:46
06-19-2022 11:46
Thanks Gordon, it worked 😊
By requesting /1/user/[user-id]/br/date/[date].json, the breathing rate is returned.
However, when requesting intraday data - /1/user/[user-id]/br/date/[date]/all.json, it returns the same error message as for hvr:
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.
06-22-2022 08:19
06-22-2022 08:19
Have you requested intraday access for this client ID? If not, you have 2 choices
Gordon
06-23-2022 04:08
06-23-2022 04:08
No, I haven't because my application type initially was set to "personal"
06-23-2022 07:33
06-23-2022 07:33
Thanks for clarifying. I'm investigating the problem.
09-14-2022 07:07
09-14-2022 07:07
Hi everyone,
We have fixed the problem where applications could not retrieve HRV and Breathing Rate intraday data for "personal" applications. We are still working on SpO2. We will update the community posts when SpO2 is available.
Gordon