01-24-2022 02:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-24-2022 02:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I've connected to the fitbit API for my own personal data, mainly as a personal project so I can teach myself coding and to try and get better.
It was previously working, but yesterday I accidentally breached the APi limits (put the API call in a for each :facepalm: ) and it stopped working - yesterday there was an error message about invalid token.
I waited until today but it is still not working. is there a 24 hour re-set for limits? How do i get back up and running?
Answered! Go to the Best Answer.
Accepted Solutions
01-28-2022 08:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-28-2022 08:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @Gordon-C,
I have resolved now, it was my error (naming two functions the same, which meant that the authorisation wasn't working).
Still learning!
Thanks for your reply.
Kevin
01-27-2022 08:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-27-2022 08:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Hektik909
The API limit is 150 API calls per user per hour and it resets at the top of the hour. It would help to have the entire token error message. It's possible the access token has expired. If so, you'll need to use the refresh token to obtain a new access token and refresh token.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

01-28-2022 08:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-28-2022 08:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hi @Gordon-C,
I have resolved now, it was my error (naming two functions the same, which meant that the authorisation wasn't working).
Still learning!
Thanks for your reply.
Kevin
