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

Is there an API to check if Fitbit data is synchronized?

ANSWERED

Hello!

I am a Flutter app developer.

I am currently collecting Fitbit biometric data (steps, heart rate, sleep) for my app. However, I've noticed that sleep data is not immediately available; it can only be retrieved after manually syncing through the Fitbit app. Is there an API available to check whether Fitbit data has been synchronized?

(In my experience, when I check the Fitbit app in the morning, it often shows "No sleep data," and only after syncing or waiting for some time does the sleep data appear. Is there a reason for this, and is there a solution?)

Thank you!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I think sleep stats are computed on the server based on raw(ish) data synced from the watch.

You can ascertain the most recent lastSyncTime from here.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

I think sleep stats are computed on the server based on raw(ish) data synced from the watch.

You can ascertain the most recent lastSyncTime from here.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Hi @whwndud 

If the Fitbit application is running in the background on your mobile device, then it should automatically sync every 15 minutes.   When you wake up, the device will need to determine that you are actually awake and not moving in your sleep.  So, this might take a few minutes for the device to detect.  Once the device detects you are awake, it will attempt to sync the sleep data during the next automatic sync period.  Also, there is a lot of data that is collected while you are sleeping, and it might take multiple syncs before all the data is sent to the Fitbit servers for processing.

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