Skip to content


Subversion checkout URL

You can clone with
Download ZIP
FitBit Python Library
Branch: master
Failed to load latest commit information. fixed oauth verifier issue fixed oauth verifier issue

A python library for the FitBit API

Didn't see one that fitted my needs so I build my own.


Edit the file with your consumer key and secret.

import fitbit
z = fitbit.FitBit()

Make a request token:

auth_url, auth_token = z.GetRequestToken()

Visit auth url, authenticate and get the code & verifier:

access_token = z.GetAccessToken(code, auth_token, oauth_verifier)

Store the access_token for later usage. You can now call the API with it:

response = z.ApiCall(access_token, apiCall='/1/user/-/activities/log/steps/date/today/7d.json')

All responses for the functions are received in JSON but are also available in XML.

Something went wrong with that request. Please try again.