dev.fitbit.com

spacer Fitbit API

Skip to end of metadata
  • Page restrictions apply
  • Attachments:1
  • Added by Eric Friedman, last edited by Pavel Risenberg on Dec 01, 2011  (view change)
  • show comment hide comment
Comment: Migrated to Confluence 4.0
Go to start of metadata

Welcome to the Fitbit API

The Fitbit API is a set of protocols that can be used to read and write data for a user's tracker collections, profile data, social resources, fetch status of devices and statistical data. We are working every day on extending this list to cover more features and use cases of the Fitbit platform. The Fitbit API takes advantage of several protocols, but at the core it is the REST API. In order to fully integrate, you will need to log in or sign up with the Fitbit platform, register for an API key for your application 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 applications to get and modify a Fitbit user's data. For API calls applications must first be authenticated using OAuth Authentication as described in The OAuth 1.0 Protocol. Applications can also subscribe to any changes in a user's data. This allows on the one hand to be updated in near real-time and proceed with best workflow for the user, on the other hand subscriptions are good method to avoid hitting API rate limits.

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 or syncs the tracker device, Fitbit.com automatically notifies Website A of this change via an HTTP callback, thus Website A can fetch updated resources only when necessary.

Quick Start Guide

  1. Register a new application and get an API consumer key and secret:
    • You will register and manage your application as a Fitbit user. You need to create an account if you don't have one.
    • The API consumer key and secret will give your application access to Fitbit API.
  2. Go through the Anatomy of a Fitbit Client Application.
  3. Read about the details of the Fitbit REST API:
    • 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.
  4. Start with our reference application or complete Java client library, one of the available API example clients, use the 3d party client library or start from scratch with the OAuth library for your language:
    • Java Reference Client Application
    • Java Library (Fitbit4J) and Example Java Client
    • Example PHP Client
    • Example dotNET Client
    • Client Libraries

For help, join the developer forum to interact with the Fitbit Developer Network community (or look for Recent Changes & Announcements).

Rate Limiting

The Fitbit API is currently rate limited to ensure that we can provide stable and consistent access for all client applications. The current rate limiting quota is set at 150 calls per hour, based on either CLIENT+VIEWER (unique quota for each of the application's authorized users) or CLIENT (one for each application) as the determinant for the count of calls.

Labels:
None
Edit Labels

10 Child Pages

Page: OAuth Authentication in the Fitbit API Page: Fitbit API Client Reference Application Page: Fitbit Resource Access API Page: Fitbit Subscriptions API Page: API Response Format And Errors Page: Fitbit Partner API Page: API Localization Page: API Unit System Page: API Client Libraries Page: API Explorer

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.