07-28-2020 10:33
07-28-2020 10:33
The sleep efficiency is returned by the Web Api sleep log endpoint (https://dev.fitbit.com/build/reference/web-api/sleep/#get-sleep-logs). However the value of this "efficiency" property is different than the sleep score shown on the android app for the same day. Why are these values different? For one day I see a sleep score on the android app as 80, whereas via the web api it shows as 95.
07-30-2020 15:00
07-30-2020 15:00
Hi @OliverBernal,
Welcome to the forums!
The "efficiency" element uses an algorithm based on collected sleep metrics to determine how efficient the user slept. Unfortunately, I'm not able to disclose which metrics it uses to output the value you see in the API response.
Let me know if you have any other questions.
08-04-2020 05:59
08-04-2020 05:59
Hi JohnFitbit, thanks for the response. However, are you able to shed any light on why the API efficiency value is different than the score value on the app? That's the key part that is not clear to me -- shouldn't they be the same value?
thanks,
-Oliver
08-05-2020 12:27
08-05-2020 12:27
Sleep efficiency score and sleep score are 2 different algorithms. Sleep score is currently not available through the Web APIs.