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.
Today, Fitbit announced three exciting new products: Charge, Charge HR, and Surge. We're also excited to announce that the Fitbit API will provide access to the all day heart rate and GPS data from these devices. These data types will be accessible exclusively via OAuth 2.0. We'll be sharing more information about these new endpoints and our OAuth 2.0 transition in the coming months.
As announced in August, connections to api.fitbit.com will be restricted to HTTPS connections on November 3, 2014. TLS will be required on all api.fitbit.com endpoints, including all steps of OAuth.
TLS creates a secure communication channel between your application and Fitbit's API, ensuring user data is not accessed or tampered by unauthorized parties. If your application uses HTTP plaintext connections, you need to update it to use HTTPS immediately. Applications still using HTTP plaintext connections will stop functioning on November 3, 2014. The Fitbit API will return a HTTP 403 error to all non-TLS requests.
For most applications, changing "http://" to "https://" is all that is necessary to comply with this change.
Less than 5% of third-party Fitbit API requests are using XML. Going forward, new endpoints will be optimized for and exclusively available in JSON.
The following API endpoints are deprecated and will be removed at a future date:
All measurements except fat and weight will be removed from:
If you have questions about this notice, please post here.
–The Fitbit API Team
Best Answer
@JeremiahFitbit wrote:All measurements except fat and weight will be removed from:
@JeremiahFitbit I thought that the extra measurements were going to be maintained and still available for us by existing users, just that new users wouldn't be able to use them. Is that not going to be the case with the APIs?
Best Answer
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.
@Michael wrote:
@JeremiahFitbit I thought that the extra measurements were going to be maintained and still available for us by existing users, just that new users wouldn't be able to use them. Is that not going to be the case with the APIs?
Marking these endpoints as deprecated means that we're not planning future development of them and that third-party developers should not create new integrations with them.
Best Answer
@JeremiahFitbit wrote:
@Michael wrote:@JeremiahFitbit I thought that the extra measurements were going to be maintained and still available for us by existing users, just that new users wouldn't be able to use them. Is that not going to be the case with the APIs?
Marking these endpoints as deprecated means that we're not planning future development of them and that third-party developers should not create new integrations with them.
But your announcement doesn't just say they will be marked as deprecated, it says that the additional measurements will be removed from them. That is a big difference.
Best Answer
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.
Here at Fitbit we focused on providing as much easy-to-use API for developers as it possilbe. Our aim is that all developers who use Fitbit API can easy understand data structure even without reading documentation.
Due to different natures of JSON and XML we are required now to have two different serialization approaches: one for JSON and other one for XML.
Since most of our users are using JSON(around 98%) and we decided to focus and polish JSON serialization and deprecate XML.
Overall ourdays development community tends to get rid of XML since there are more advantages of JSON over XML then XML over JSON.
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.
Chetan wrote:
When you say "OAuth 2.0 transition", do you still intend to support OAuth 1.0 in the near future? Is there a timeline when you intend to stop supporting 1.0?
We do not plan on deprecating OAuth 1.0a for quite awhile.
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.
@SetpointHealth wrote:
Why in the world would you depreciate XML? Does it really add that much overhead on your side that you're goign to make 5% of us change our code?
Actually, yes, supporting both XML and JSON does add notable overhead when done properly. It's impossible to programatically optimize responses in both JSON and XML.
This announcement does NOT require you to change your code. All existing endpoints will continue to support XML.
However, when you want to take advantage of the new features and endpoints that we haven't announced yet, you'll need to use JSON.
Best Answer
@Starlight71701 wrote:
I would like to know if the Charge Hr will be waterproof like the Flex ?
Hi, you have posted in the incorrect forum; we talk about the Fitbit API in here. Please post in the Charge HR forum https://community.fitbit.com/t5/Charge-HR/bd-p/chargeHR
Thanks!
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.
There are no plans on sadding upport for direct BLE communication API.
Best Answer
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.
Several people have asked about GPX and TCX export. The API will support TCX export, as it allows us to combine GPS and heart rate data. The GPX format is being considered.
We know that you want this feature now and we can't wait to share it. Given the more sensitive nature of GPS, this export will be an OAuth 2 feature and apps will have to ask for explicit permission. When we have our OAuth 2 ready for beta testing, you'll be able to start using this feature.
"the Fitbit API will provide access to the all day heart rate and GPS data from these devices"
I'm a bit confused by this. Will the API provide access to data from individually logged runs, or just a total for the whole day?
Best Answer