The Fitbit API can be used to read and write data for a user's activity, food logging and personal data. In order to fully integrate, you will need to log in or sign up with the Fitbit platform, register for an API key, and use that key to drive interaction on behalf of an authenticated user.
The Fitbit API, currently in BETA and under construction, allows 3rd-party apps to get and modify a Fitbit user's data. For most API calls, apps must first be authenticated using OAuth Authentication as described in The OAuth 1.0 Protocol (draft-hammer-oauth-10). Apps can also subscribe to any changes in a user's data. This allows apps to be updated in near real-time.
For instance, Website A wants to integrate with Fitbit.com so that Website A's users can integrate their Fitbit data into Website A.
There is a user Joe, who has an account on both Website A and Fitbit.com. First, Joe allows Website A to access and modify his Fitbit data. Once this authentication occurs, Website A can freely make HTTP calls to get and to modify Joe's data. Website A can also subscribe to any changes in Joe's data. For instance, when Joe updates his daily step count, Fitbit.com automatically notifies Website A of this change via an HTTP callback.
Quick Start Guide
- Register a new application and get an API consumer key and secret.
- The API consumer key and secret will give your application access to Fitbit.
- You will register and manage your application as a Fitbit user.
- Use one the available client API libraries that encapsulate the low-level HTTP calls
Learn how these clients work by clicking the URLs above and/or reading Anatomy of a Fitbit Client Application.
If you are using a language not supported above or would like to see the details of the underlying HTTP protocol, please see the following:
- OAuth Authentication API shows you how to authenticate your application to access a user's data
- Resource Access API explains each of the API calls to get or retrieve a user's data
- Subscriptions API explains how to subscribe to changes in a user's data and how to implement a callback that handles update notifications
For help, join the developer forum to interact with the Fitbit Developer Network community.