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

What is the maximum date range to fetch summary data from Fitbit?

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?

Best Answer
0 Votes
3 REPLIES 3

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

 

 

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

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.

Best Answer
0 Votes

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

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