03-09-2023 23:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-09-2023 23:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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

03-10-2023 23:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


03-10-2023 23:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

03-13-2023 02:35 - edited 03-13-2023 02:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-13-2023 02:35 - edited 03-13-2023 02:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

03-13-2023 10:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-13-2023 10:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?

