08-25-2022 01:46
08-25-2022 01:46
Hi there, I would like to know if it's possible to fetch summary data over using an endpoint
e.g. /1/user/[user-id]/hrv/date/[startDate]/[endDate]/all.json
e.g./1.2/user/[user-id]/sleep/date/[startDate]/[endDate].json
with the date range being as long as a year or more e.g. startDate = 2021-08-01, endDate = 2022-08-22
Is there a maximum date range limit that Fitbit API has for fetching such summary data?
08-25-2022 16:34
08-25-2022 16:34
Hi @lyqht
I think you published this same question in multiple places, which is not necessary. We answer the forums and our help page regularly. As the documentation states,
HRV supports a date range of 30 days
Sleep supports a date range of 100 days
Best,
Gordon
09-05-2022 19:45
09-05-2022 19:45
Hi @Gordon-C ,
For both HRV, Breathing Rate and Spo2, does fitbit API allows the consumer to retrieves the data as far back in the past as possible? i.e. user has data since 1 Mar 2022, but only authorized the 3rd party app on 1 Aug 2022. 3rd party app is able to retrieve data since 1 Mar 2022.
09-06-2022 07:46
09-06-2022 07:46
Hi @faruqtw
Once the user consents to share their data with your application, you have the ability to query the user's historical data as far back as data is available. In this case, you should be able to query the HRV, BR and SpO2 data since 1 Mar 2022.
Gordon