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

Date range on sleep API?

Hi,

 

I'm trying to use sleep API to get detailed sleep info. However, this API doesn't seem to take a date range - which means I can only fetch detailed sleep data for a single day. If I call the same API multiple times to get data for many dates, it's very likely to hit the 150 hourly rate limit. So, can we put a date range on this API?

https://wiki.fitbit.com/display/API/API-Get-Sleep

 

An alternative is the time series API, which can take a date range - however it does not provide detailed info like which exact minutes did user fall asleep.

https://wiki.fitbit.com/display/API/API-Get-Time-Series

Running, swimming, developing Wristband Manager for Fitbit users.
Best Answer
0 Votes
1 REPLY 1

Hello,

https://wiki.fitbit.com/display/API/API-Get-Time-Series is capable to return almost all the data that is returned by https://wiki.fitbit.com/display/API/API-Get-Sleep.

 

Fitbit API doesn't have functionality that will display which exact minutes did user fall asleep.

 

 

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes