03-26-2019 02:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-26-2019 02:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I'm just starting studying your WEB APIs to understand the proper way to retrieve Fitbit user data. Sorry if some questions might seem weird 🙂
I'm interested mainly in running/walking activities (in general "single" workouts) NOT in daily stats/sleep data and the like.
In particular, I'd like to retrieve laps data along with aggregate statistics for these kind of activities.
From what I understood, once the user grants us the right to access to his data, I should subscribe through the Subscriber API to be notified about new/updated user activities. Let's suppose there is a notification, so I should invoke the API to get the daily activity summary similar to the following one to get the activities summary:
https://api.fitbit.com/1/user/184X36/activities/date/2010-03-01.json
From the response of the previous API, I will be able to retrieve the "logId" of the activity I can use to construct the endpoint to retrieve the tcx file (if available).
From the docs, this I've just described seems the only way to retrieve the data I'm looking for.
Is this correct? Or are there other ways (other than retrieving tcx files) I can use to fetch single running workouts plus associated laps information?
Thanks in advance!
Paolo
Answered! Go to the Best Answer.
Accepted Solutions
03-26-2019 09:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-26-2019 09:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Paolopp, The process you described is correct. You might want to look at the results from Get Activity List (https://api.fitbit.com/1/user/-/activities/list.json) endpoint to see if it gives you more information that you need. This endpoint will display the actual tcx file URL for you.
"tcxLink": "https://api.fitbit.com/1/user/-/activities/20319978529.tcx"
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

03-26-2019 09:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-26-2019 09:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Paolopp, The process you described is correct. You might want to look at the results from Get Activity List (https://api.fitbit.com/1/user/-/activities/list.json) endpoint to see if it gives you more information that you need. This endpoint will display the actual tcx file URL for you.
"tcxLink": "https://api.fitbit.com/1/user/-/activities/20319978529.tcx"
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

