05-08-2017 23:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-08-2017 23:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I am using the subscriptions API to retrieve steps, sleep for a user. However the step data returned by Fitbit returns a total of device logged activities and manually logged activities and looks something like this
{"activities":[{"activityId":90013,"activityParentId":90013,"activityParentName":"Walk","calories":249,"description":"Walking less than 2 mph, strolling very slowly","distance":1.2,"duration":1800000,"hasStartTime":true,"isFavorite":false,"lastModified":"2017-05-08T06:26:58.000Z","logId":7493293910,"name":"Walk","startDate":"2017-05-08","startTime":"13:56","steps":4995},{"activityId":90013,"activityParentId":90013,"activityParentName":"Walk","calories":285,"description":"Walking less than 2 mph, strolling very slowly","distance":4.199999,"duration":1800000,"hasStartTime":true,"isFavorite":false,"lastModified":"2017-05-08T06:31:42.000Z","logId":7493270821,"name":"Walk","startDate":"2017-05-08","startTime":"14:01","steps":5683}],"goals":{"activeMinutes":30,"caloriesOut":2833,"distance":8.05,"floors":10,"steps":10000},"summary":{"activeScore":-1,"activityCalories":531,"caloriesBMR":1704,"caloriesOut":2181,"distances":[{"activity":"Walk","distance":1.2},{"activity":"Walk","distance":4.199999},{"activity":"total","distance":5.83},{"activity":"tracker","distance":1.43},{"activity":"loggedActivities","distance":5.399999},{"activity":"veryActive","distance":4.2},{"activity":"moderatelyActive","distance":0},{"activity":"lightlyActive","distance":1.63},{"activity":"sedentaryActive","distance":0}],"elevation":27.43,"fairlyActiveMinutes":0,"floors":9,"lightlyActiveMinutes":51,"marginalCalories":384,"sedentaryMinutes":912,"steps":7893,"veryActiveMinutes":30}}
I want to find out from this response whether the user has manually added a activity or it was tracked by device. How do I go about doing that ? I dont see any parameter in the activities array which specifies its a manually added activity log.
Answered! Go to the Best Answer.

- Labels:
-
Subscriptions API
Accepted Solutions
05-09-2017 12:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



05-09-2017 12:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@Pushparaj The activities returned from the Get Daily Activity Summary endpoint are manually logged activities, but might be easier if you use the Get Activity Logs List endpoint instead. There's a logType (e.g. manual) that will tell you what type of activity it is, along with other details.

05-09-2017 12:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



05-09-2017 12:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@Pushparaj The activities returned from the Get Daily Activity Summary endpoint are manually logged activities, but might be easier if you use the Get Activity Logs List endpoint instead. There's a logType (e.g. manual) that will tell you what type of activity it is, along with other details.

05-18-2017 01:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-18-2017 01:20
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
So andrew can I assume that all the activities returned in Get Daily Activity Summary endpoint are manually logged activities

05-18-2017 01:21 - edited 05-18-2017 01:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-18-2017 01:21 - edited 05-18-2017 01:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am asking because we had one user who had steps added using MyFitnessPal and the user claimed it was not manually added but tracked using her device. Check this screenshot.

05-18-2017 11:42 - edited 05-18-2017 11:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



05-18-2017 11:42 - edited 05-18-2017 11:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@Pushparaj wrote:
So andrew can I assume that all the activities returned in Get Daily Activity Summary endpoint are manually logged activities
@Pushparaj Yes.
To address your other point:
Sure, the user may not have manually logged the activity themselves (they could have recorded it through another app), but when MyFitnessPal sends the activity to Fitbit via the API, it's considered a manually logged activity, and will show up as such on Fitbit's side.
Both activities shown in the screenshot were sent from MFP, which means a Fitbit device didn't track those activities.

