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

Limit on Interval data range

ANSWERED

I try to extract activity time series data by date range. However, there is a limit on how far back I can go in number of days and this differs from individual to individual. For some subjects I can extract 693 days of data, for other subjects it differs and I can't find the exact limit. Is this specified somewhere?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I know with some of the activity resources, you can only query a certain amount of data which is approximately 1M bytes.   This would explain why you can query X amount of days for one user by not the next.   My recommendation is to reduce your interval to 3 - 6 months.   This should prevent you from hitting any type of response size restriction.

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

View best answer in original post

Best Answer
4 REPLIES 4

Hi @KULKver 

 

I will clarify this the documentation.   In the meantime, which resource are you querying with the activity time series endpoint?   Some of the resource have different restrictions.

 

Gordon

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

I'm querying steps, distance, calories, etc., almost everything that can be queried. For all of these activities, I provide a begin and end date. And often the time period between begin and end date is too large causing the error that too many data points are being requested.

Best Answer
0 Votes

I know with some of the activity resources, you can only query a certain amount of data which is approximately 1M bytes.   This would explain why you can query X amount of days for one user by not the next.   My recommendation is to reduce your interval to 3 - 6 months.   This should prevent you from hitting any type of response size restriction.

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

That's good to know, thanks!

Best Answer
0 Votes