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

Can request SpO2 but not HRV and breathing rate

ANSWERED

I am using the Fitbit API for Python (by Orcas). Recently, breathing rate, SpO2 and HRV have been added to the Web API but I am only able to request SpO2. I have added respiratory_rate and oxygen_saturation to the scope of my session and the Fitbit device is a Charge 4. The following url request for SpO2 gets returned successfully with a JSON:

 

https://api.fitbit.com/1/user/-/spo2/date/2021-10-20/2022-06-22.json

 

However, if I do the same for breathing rate and HRV as in the following requests hereunder, I receive a 404 Not Found exception. I'm not able to find any explanation since the url has the same structure as on the official Web API examples. I would be very grateful for a solution! 😁

 

https://api.fitbit.com/1/user/-/br/date/2021-10-20/2022-06-22.json 
https://api.fitbit.com/1/user/-/hrv/date/2021-10-20/2022-06-22.json

 

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @KULKver 

 

The new interval endpoints only support a date range of 30 days.   See https://dev.fitbit.com/build/reference/web-api/breathing-rate/get-br-summary-by-interval/.   Please reduce your interval period and let me know if that works.

 

Gordon

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

View best answer in original post

Best Answer
1 REPLY 1

Hi @KULKver 

 

The new interval endpoints only support a date range of 30 days.   See https://dev.fitbit.com/build/reference/web-api/breathing-rate/get-br-summary-by-interval/.   Please reduce your interval period and let me know if that works.

 

Gordon

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