08-06-2020 18:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-06-2020 18:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am curious about the difference between the /activity/* and /activity/tracker/* resource paths. I read the suggested article at https://community.fitbit.com/t5/Web-API-Development/what-does-activities-steps-get/td-p/717210, but was wondering if you could clarify.
Example: calories
1. When you say that the activity/tracker/calories time series does not include manually logged calories, does that mean it does include calories from activities that are automatically determined by the device? For example, when my Versa2 knows that I took a run.
2. If that is true, does the activity/tracker/calories include (and therefore duplicate) calories that are reported via /activities/date?
Put another way, is there and overlap, and if so, how would I avoid duplication between data from Daily Activity Summary and Activity Time Series requests? Is it a case of we should use one or the other, but not both?
Thanks,
Jeff Humphry
Answered! Go to the Best Answer.

- Labels:
-
Subscriptions API
Accepted Solutions
08-07-2020 10:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



08-07-2020 10:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The steps, calories, etc. recorded for a specific exercise are including in the daily total and would be reflected with the /activities/* and /activities/tracker/* endpoints. To see the number of steps that were not part of a specific activities, you would subtract the recorded exercise steps from the Daily Activity Summary totals. If activity data is manually entered or comes from the 3rd party application, that data might not appear in the "tracker" data. To confirm the source of the exercise data, you'll need to execute the Get Activity Log List endpoint, https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-logs-list, and look at the element names "logType" and "manualValuesSpecified".
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

08-07-2020 03:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



08-07-2020 03:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The data returned from /activity/ includes all of the data recorded by the device, manually entered or from 3rd party applications and we record the source of that data. The data returned from /activity/tracker pulls out that subset of data that was recorded by the device only. There should not be any duplication of data. If there is overlapping data, we do reconcile it before storing.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

08-07-2020 05:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-07-2020 05:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks Gordon for the clarification.
Understand the difference now between /activities/* and activities/tracker/* series. Thanks!
One more question if you please: Are the data points (steps, calories, ...) that are returned for discreet activities from the Daily Activity Summary endpoint (/activities/date) also included in the data returned from the Activity Time Series endpoints (/activities/* and activities/tracker/*).
That is, if I only wanted steps that were not part of discreet activities, would I need to subtract steps (for the day) returned by /activities/date from those returned by /activities/steps or activities/tracker/steps?
Thanks,
Jeff

08-07-2020 10:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



08-07-2020 10:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The steps, calories, etc. recorded for a specific exercise are including in the daily total and would be reflected with the /activities/* and /activities/tracker/* endpoints. To see the number of steps that were not part of a specific activities, you would subtract the recorded exercise steps from the Daily Activity Summary totals. If activity data is manually entered or comes from the 3rd party application, that data might not appear in the "tracker" data. To confirm the source of the exercise data, you'll need to execute the Get Activity Log List endpoint, https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-logs-list, and look at the element names "logType" and "manualValuesSpecified".
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

08-07-2020 15:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-07-2020 15:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks Gordon. Very helpful.

