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

One call to get them all?

Is there any way to get all data for a user using only one call? Something like:

 

/1/user/[user-id]/combineddata/date/date/all/all.json

/1/user/[user-id]/combineddata/date/date/intraday/all.json

 

Best Answer
0 Votes
3 REPLIES 3

Hi @JHultman  - it depends on what you are trying to do. Such a volume of data, if it were possible, might take too long and possibly cause the program to crash.

 

If you are only interested in the data for yourself in the web dashboard you can request the complete archive of data from the data export tab. Then use regular methods to process the relevant information of interest.

Author | ch, passion for improvement.

Best Answer
0 Votes

Well, I am designing a clinical study with about 300 individuals where the goal is to get _all_ data and this means we need to:

 

1. Get the data automatically (created an app for this)

2. Get the data on a regular basis.  

 

This means that today i would have to make about 45 calls per individual / day and this is not a very effective way to get the data and was wondering if there is (or could be) any more effective way to do this. 

 

As i request to get yesterdays data i have no real need to get the "actual data right now" and a way could be to get some kind of prepared archive data in one chunk from the fitbit servers. 

Best Answer
0 Votes
Well, we a conducting a clinical study with about 300 participants, and want as good as all available data for a year per participant.

This means that we will need to spread out the calls for each user during time as we would be doing more than 50 calls per hour. This includes intraday data as well.

In cases like this a full export is a better sollution i believe and dont see any problems why it should not be an option. At least to get the data grouped to minimize the amount of calls.

This could be limited to 1 or 2 days behind to make it possible for fitbit to pre-generate and cache the data to save resources and IO perhaps?
Best Answer
0 Votes