03-01-2019 02:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-01-2019 02:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hello, world!
Today I'm facing a not documented error returned by the Web API and reported in the following posts:
https://community.fitbit.com/t5/Web-API-Development/FitBit-api-error-max-days/m-p/2485990#M8620
https://community.fitbit.com/t5/Web-API-Development/Web-API-Error/m-p/1586614#M6406
I wanted to reproduce and to confirm the error by myself, taking advantage of today's date, which is 1st of March of 2019.
I want to collect the data from 1st of January of 2016, but it exceeds the maximum limit, established by the mentioned API, which is 1094 days (3 years), attacking the following URI:
https://api.fitbit.com/1/user/-/activities/steps/date/today/2016-01-01.json
Considering the error, the minimal date I'd be able to retrieve the data is 2nd of March of 2016. If I'd pass the 1st of March of 2016 as the date, the API would return the error mentioned in the title.
I hope the development team will warn the developers about this behavior in the documentation in the future.
Regards.
03-19-2019 18:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-19-2019 18:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for the feedback, @ilyabakhlin. I'll put in a request to add this type of information to the documentation.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

