12-27-2023 20:52
12-27-2023 20:52
I am trying to parse through my activity logs and am having trouble parsing through the information given. Since I am trying to reach a broad audience for my application, I need to be prepared for all Fitbit public activity types (ignoring private ones for now). When I pull from the get all activity types end point, the super long JSON response is super hard to understand and has super specific activities like coal mining and feeding cattle. I thought I kind of understood it, where there a small categories that fall into a bigger category, but ID's don't match between them (for example "treadmill" activityTypeId in my activity log: 20049 - which doesn't exist in the activity type json - and in my activity type json "treadmill" id is 90019). Another issue is that Activity Types like 'HIIT' that appear on the app, and will probably appear on my activity log DOES NOT come out in my get all activity types response. I am just trying to clean anyones activity log, be able to be prepared if each activity takes into account distance, speed, steps, etc. (or if they don't take any of these metrics into account).
Please if anyone has any guidance or help to better parse through this let me know.
Thank you.
12-27-2023 21:15
12-27-2023 21:15
I suspect this is more of a Web API question. Shall I move it to that forum for you?
12-27-2023 21:22
12-27-2023 21:22
Yes please. Thank you.
01-02-2024 13:51
01-02-2024 13:51
Hi @mmf229
My understanding of how the JSON response is structured is the same as yours: [...] there a small categories that fall into a bigger category [...]. Some of the activities listed in the Fitbit web and mobile application are unique to Fitbit and will not return in this list. I'm assuming the treadmill item you selected is one of those activities.
HIIT is not one of the default application types and should be listed as a PRIVATE type. I can double-check for you, but I think you need permissions from the user to see the private application types through the endpoint.