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 @onesimo,
Welcome to the forums!
When testing the sleep logs by date range endpoint with a date range of 2017-01-01 to 2021-01-01, I get the following error:
{
"errors": [
{
"errorType": "validation",
"fieldName": "endDate",
"message": "Max date range is 100 days"
}
]
I hope this helps!
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 @onesimo,
Welcome to the forums!
When testing the sleep logs by date range endpoint with a date range of 2017-01-01 to 2021-01-01, I get the following error:
{
"errors": [
{
"errorType": "validation",
"fieldName": "endDate",
"message": "Max date range is 100 days"
}
]
I hope this helps!
The range can be up to 100 days, but you can request data for a "practically" unlimited period in the past. There is a date when the user joined FitBit(you can get that date in the prile endpoint), and since then there is a possibility to receive data. However, if you request for a period before that date, you will not get an error, but rather an empty result set.
Best Answer