Fitbit – Unofficial Perl API and CSV Download
The other week I received my Fitbit and have been in geek heaven ever since. Fitbit is a tiny magical device($99 USD) that automatically tracks your fitness and sleep statistics. Throughout the day it will track your calories burned, steps taken, distance traveled, your activity level, and even track your sleep patterns. All of this data is synced wirelessly through your base station to Fitbit’s website where you can get very detailed daily and historical graphs. The main benefit is that you can be conscious of and keep track of your fitness level, food your eating, and how well you’re sleeping so you can make better choices throughout the day.
The Fitbit team is working hard on manufacturing and distribution and have future plans for releasing an official API. Although the website does offer most of the features you’ll need, you can not download your data. The goals is to have an API that will allow you to do this and also integrate some other applications. I spent some time coding last weekend and have create an OO Perl API to access all Fitbit information and even download historical data in CSV format. I’ve setup a ‘Fitbit Hack’ project. Check out: