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

GET Activity Log List shows different data as Fitbit App

I want to retrieve all the data from my tracked exercises for private usage and analysis.

 

I was expecting that after sending a request to the endpoint below, for example, I would see something like what I see on the "Exercises" screen of the mobile app. However, I do not get any of the running/cycling sessions and it seems I only get walking sessions. Also, it looks like the dates (parameter startTime) do not match those that I can see in the app.

 

Is this not the correct API endpoint for such a task?

 

https://api.fitbit.com/1/user/-/activities/list.json?afterDate=2020-09-28&sort=asc&limit=20&offset=2...

Best Answer
0 Votes
1 REPLY 1

Hi @orestes1906 

 

The Get Activity Log List endpoint will display all exercises including those that are recorded using SmartTrack.   I'm assuming the number of walking exercises you see were auto-generated by Smart Track.  You can determine this by seeing if logType=auto-detected.  If you parse out the activities where logType=tracker, then you will get a list of exercises that were recorded on the device, unless we auto-detected the run or cycling using SmartTrack.

 

I see you set the offset=20 in your API call.   This is not supported.  Please change the offset=0 and try again.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes