04-20-2021 19:51
04-20-2021 19:51
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 Answer04-30-2021 07:42
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
04-30-2021 07:42
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.
Best Answer