06-22-2022 05:51 - edited 06-22-2022 05:53
06-22-2022 05:51 - edited 06-22-2022 05:53
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
Answered! Go to the Best Answer.
06-24-2022 12:10
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
06-24-2022 12:10
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
06-24-2022 12:10
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
06-24-2022 12:10
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