Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mismatch a total number of steps between summary data with a specific date and intraday-data

There are two ways to get a daily total steps using fitbit web API.

- first, request daily step data by API with a specific date (daily-summary)

- second, summation of step intraday-data with a specific date (intraday-data)

 

but sometimes, two results( total number of steps per day) are different even in the same date.

 

also, when i check number of steps in fitbit app, total number of steps are different with a total number of steps represented on the step intra-day graph.

 

Am I missing something?

Why those two numbers are different?

 

1) daily-summary

https://api.fitbit.com/1/user/-/activities/steps/date/today/1m.json

2) intraday-data

https://api.fitbit.com/1/user/-/[resource-path]/date/[date]/1d/[detail-level].json

 

 

Best Answer
0 Votes
1 REPLY 1

Hi @sjsj1 

 

In the documentation, we describe the reason.   See https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-intraday-time-series.

 

Note: Any discrepancies between time series detail-level totals vs daily summary totals is likely due to how the device calculates on-wrist and off-wrist data. On-wrist data is defined as data collected while the device is worn. On-wrist data is also referred to as Intraday data. Off-wrist data is defined as data collected while the device is not worn. For example, step data can be collected if the device was in a bag while driving down a bumpy road. By design, daily summary totals include on-wrist totals and off-wrist totals; while Intraday totals include on-wrist totals only.
Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes