05-10-2024 22:01
05-10-2024 22:01
Dear Fitbit API Team,
I'm writing on behalf of AarogyaMitra, a non-profit hosting a challenge to promote healthy habits among doctors. We're developing an app using your API to track participants' step counts.
We anticipate around 600 to 6000 participants, with the API being accessed at least 6,000 to 60,000 times daily to retrieve step data.
Please provide details on:
Understanding any request limitations will help us optimize our app's functionality.
Thank you for your guidance.
Answered! Go to the Best Answer.
05-13-2024 13:10
05-13-2024 13:10
Sorry if I wasn't clear and I apologize fr any misunderstanding.
The rate limit is 150 API calls per user per hour, not per client. With that in mind, your application should be able to capture all the necessary data well under the limits for all of your users, especially if you are only capturing step data. I've listed a few use case scenarios for how to collect step data based on the examples you provided:
Note: If you need to see daily step counts and step counts recorded from activities separately, you'll need to do additional scripting for getting the difference in steps returned for activities and daily step totals in the Get Daily Activity Summary endpoint. For example, if the daily step count recorded shows 11k steps and the user performed a run that day with 3000 steps taken, you can determine that the user took 8k steps outside of activities.
05-12-2024 23:44
05-12-2024 23:44
Hi @AniketHosamani,
Welcome to the forums!
05-13-2024 00:06
05-13-2024 00:06
Dear John,
Thank you for your response. Regarding the fitness challenge, our main requirement is to retrieve only the "steps" data of the participating users. The challenge rules state that the user with the highest average number of steps throughout the challenge will be declared the winner. And "daily" appreciation in our community with the highest steps
One concern I have is related to the API rate limiting. As per the API documentation, we can make a maximum of 150 requests per hour, which translates to 3,600 API calls per day (150 * 24 hours). This could potentially be an issue if more than 3,600 users are participating in the challenge, as we would not be able to retrieve data for all users on a daily basis.
One potential solution could be to limit the number of user data retrievals since we can collect step data from previous dates as well. However, we still need to display the highest daily step count every day, which might not be feasible if we cannot retrieve data for all users on a daily basis.
Could you please suggest an alternative approach or a workaround to address this API rate-limiting concern while still meeting the challenge requirements?
Fitbit is a well-made app for us to find alternatives!
Thank you for your assistance
05-13-2024 13:10
05-13-2024 13:10
Sorry if I wasn't clear and I apologize fr any misunderstanding.
The rate limit is 150 API calls per user per hour, not per client. With that in mind, your application should be able to capture all the necessary data well under the limits for all of your users, especially if you are only capturing step data. I've listed a few use case scenarios for how to collect step data based on the examples you provided:
Note: If you need to see daily step counts and step counts recorded from activities separately, you'll need to do additional scripting for getting the difference in steps returned for activities and daily step totals in the Get Daily Activity Summary endpoint. For example, if the daily step count recorded shows 11k steps and the user performed a run that day with 3000 steps taken, you can determine that the user took 8k steps outside of activities.