"Fitbit" (Service Connection)
Connect your Fitbit account to the Wolfram Language to analyze Fitbit data like steps, calories, sleep, and body measurements.
Connecting & Authenticating
Requests
User Data
"UserData" — information about the authenticated user
Activity
"ActivityData" — activity on the specified date
"Date" | (required) | activity date |
Activity Time Series
"MinutesVeryActiveTimeSeries" — daily number of very active minutes
"MinutesFairlyActiveTimeSeries" — daily number of fairly active minutes
"MinutesLightlyActiveTimeSeries" ▪ "MinutesSedentaryTimeSeries" ▪ "MinutesVeryActivePlot" ▪ "MinutesFairlyActivePlot" ▪ "MinutesLightlyActivePlot" ▪ "MinutesSedentaryPlot"
"StartDate" | (required) | beginning of time span | |
"EndDate" | (required) | end of time span |
Steps
"StepsTimeSeries" — daily number of steps taken
"StepsPlot" — plot of daily step totals
"DistanceTimeSeries" — daily total distance traveled
"DistancePlot" — plot of daily distance totals
"ElevationTimeSeries" ▪ "ElevationPlot" ▪ "FloorsTimeSeries" ▪ "FloorsPlot"
"StartDate" | (required) | beginning of time span | |
"EndDate" | (required) | end of time span |
Calories and Food
"FoodList" — list of food consumed on the specified day
"Date" | (required) | date |
Calories and Food Time Series
"CaloriesTimeSeries" — daily number of calories burned
"CaloriesInTimeSeries" — daily calories consumed
"CaloriesBMRTimeSeries" — daily basal metabolic rate
"ActivityCaloriesTimeSeries" — daily calories burned during activities
"CaloriesPlot" ▪ "CaloriesInPlot" ▪ "CaloriesBMRPlot" ▪ "ActivityCaloriesPlot" ▪ "WaterTimeSeries" ▪ "WaterPlot"
"StartDate" | (required) | beginning of time span | |
"EndDate" | (required) | end of time span |
Sleep
"SleepData" — sleep details for a given date
"Date" | (required) | date |
Sleep Time Series
"SleepCalendar" — a plot showing the user's sleep schedule and efficiency
"SleepDensityTimeline" — a 24-hour timeline showing the user's sleep pattern
"StartDate" | (required) | beginning of time span | |
"EndDate" | (required) | end of time span |
Sleep Time Series
"MinutesAsleepTimeSeries" — daily minutes of sleep
"MinutesAwakeTimeSeries" — minutes spent awake in bed
"TimeInBedTimeSeries" — daily time spent in bed
"SleepEfficiencyTimeSeries" — daily sleep efficiency
"BedTimes" — a list of sleep starting times
"MinutesAsleepPlot" ▪ "MinutesAwakePlot" ▪ "TimeInBedPlot" ▪ "SleepEfficiencyPlot" ▪ "AwakeningsCountTimeSeries" ▪ "AwakeningCountPlot" ▪ "MinutesAfterWakeupTimeSeries" ▪ "MinutesAfterWakeupPlot" ▪ "MinutesToFallAsleepTimeSeries" ▪ "MinutesToFallAsleepPlot" ▪ "SleepList"
"StartDate" | (required) | beginning of time span | |
"EndDate" | (required) | end of time span |
Record Weight
"RecordWeight" — post a weight measurement
"Date" | (required) | date | |
"Weight" | (required) | user’s weight |
Body Measurements Time Series
"WeightTimeSeries" — daily weight measurements
"BMITimeSeries" — daily body mass index calculation
"BodyFatTimeSeries" — daily body fat percentage
"WeightPlot" ▪ "BMIPlot" ▪ "BodyFatPlot"
"StartDate" | (required) | beginning of time span | |
"EndDate" | (required) | end of time span |