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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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.
Best AnswerHi 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
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
Sleep efficiency score and sleep score are 2 different algorithms. Sleep score is currently not available through the Web APIs.
Best Answer