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

How to get all valid Fitbit activities

Hi, 
 
`GET /1/user/-/activities/list.json` returns some activities not in `GET /1/activities.json` response.
 
Example activities:
* Workout (Fitbit's Activity Id = 3000)
* Outdoor Bike (Fitbit's Acitivty Id = 1071)

 

I suspected it is because they are private custom activities created by users.
However, it seems not to be the case because Outdoor Bike as an example,
 
* Other users also have it as Fitbit's Activity Id = 1071
* It is what Fitbit device automatically tracked, and not created manually.
 
Probably automatically trackable one won't show up on `GET /1/user/-/activities/list.json`.


How can we know all activities including automatically tracked one?
 
Ref)
https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-logs-list
https://dev.fitbit.com/build/reference/web-api/activity/#activity-types 
 
Thank you.

Best Answer
0 Votes
9 REPLIES 9

Probably automatically trackable one won't show up on `GET /1/user/-/activities/list.json`.

 

ops, `GET /1/activities.json` 

Best Answer
0 Votes

Hi @takkyuuplayer,

 

Welcome to the forums!

 

I've done some testing on my end and can confirm the behavior you are seeing. However, it does not appear that all auto_recognized activities are being excluded from the Browse Activities endpoint, just certain ones.

 

While I can confirm that "Workout - 3000" and "Outdoor Bike - 1071" are not appearing in the response, "Walk - 90013" and "Run - 9009" are both auto_recognized activities are returned in the browse activity endpoint.

 

I'll need to reach out to our Engineering team to get additional clarification on the behavior we are seeing to get a better understanding of why certain activities are not being returned in this endpoint. Once I get more information, I'll post here.

 

Let me know if you have any questions in the meantime.

 

Best Answer

Hi, @JohnFitbit 

 

Thanks for checking. Did you get a response from the engineering team?

If the investigation will take a long time, it'll be great if you can provide me all the activities that are public (i.e. non-custom activity created by users).

 

Thank you.

Best Answer
0 Votes

@takkyuuplayer I haven't heard anything from our team yet, and I apologize for the delays. I'll try to reach out to them again to see if they can provide me with an update. I'm unable to let you know which types of activities show up in the list since the results I see tend to be mixed and inconsistent. Once I get further clarification on the expected behavior, I will post here and let you know.

 

Let me know if you have any additional questions in the meantime.

Best Answer
0 Votes

Hi @JohnFitbit 

 

Did you get further information from the team?

 

Thanks

Best Answer
0 Votes

Hi @takkyuuplayer,

 

Unfortunately, I have not yet received an update. I'll continue to push for updates but I can promise you a time frame of when this will be looked into. 

 

In the meantime, could you tell me the importance of finding these activities in the browse activity type endpoint? Maybe I can suggest a workaround for your use case.

Best Answer
0 Votes

Hi, @JohnFitbit 

 

> could you tell me the importance of finding these activities in the browse activity type endpoint?

It doesn't have to be the endpoint. I want to know all possible activities that can be in `GET /1/user/-/activities/list.json` response except for user-defined ones, to import those activities to our web service properly.

 

For example, we import activity_id = 90001, 20048, 90002, 55001, 16030, 1070 as "cycling". However, 1071 (Outdoor Bike) wasn't in the `GET /1/activities.json` response, so we hadn't noticed that there was an extra activity that should be mapped to cycling until we got inquiry from our end users; Why their Outdoor Bike in Fitbit app isn't synced

 

So does workout(id = 3000). I'm afraid there are any other activities that we are missing and I'd like to know about all the possible activities.

 

Thank you.

Best Answer
0 Votes

Hi @JohnFitbit 

 

Do you have any updates from the engineering team?

 

Thanks

Best Answer
0 Votes

We don't need the list anymore. 

 

We worked around by logging unknown activity ids.

 

Thanks for the support

Best Answer
0 Votes