08-07-2024 21:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-07-2024 21:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
When I am reaching the rate limit per hour with response error 429 or also before I want to access the values given in the response header as described here: https://dev.fitbit.com/build/reference/web-api/developer-guide/application-design#Rate-Limits
The values are not part of the response in python 3.smth and import fitbit.
- Fitbit-Rate-Limit-Limit: The quota number of calls.
- Fitbit-Rate-Limit-Remaining: The number of calls remaining before hitting the rate limit.
- Fitbit-Rate-Limit-Reset: The number of seconds until the rate limit resets.
08-13-2024 06:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



08-13-2024 06:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Chrisatsg
I'm not that familiar with python programming. However, I have researched several python-related code pages and they all state using "response.headers" to retrieve the header values. Here's an example.
Are you attempting this and not getting the response headers from the activity endpoint?
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

