02-11-2021 05:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-11-2021 05:49
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi Team,
I am trying to fetch .tcx files(or xml of mine and friends) using API , could you please help on the process to follow. In that quest, I landed on dev.fitbit.com and trying to register my app(attached the image of registation form) . could you help me by providing some idea on that. I can't manully upload from my dashboard as i have around 300-400 activities done in all these years (since 2016).
Many thanks in advance!
Thanks
Raveendra
Answered! Go to the Best Answer.

- Labels:
-
Subscriptions API
Accepted Solutions
02-11-2021 08:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-11-2021 08:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Yes, you can download you're own current and historical TCX files using the APIs. See https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-tcx. The data you will receive should be similar to this
- activity sport
- Id
- Lap StartTime
- TotalTimeSeconds
- DistanceMeters
- Calories
- Intensity
- TriggerMethod
- Track
- Time (in 1 min intervals)
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
02-11-2021 08:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-11-2021 08:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @RBPasumarthi ... Are there specific fields that you have questions about?
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

02-11-2021 08:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-11-2021 08:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi Gordon,
first of all thanks for your reply. i am looking for all the fields in the .tcx file. i quickly exported a .gpx file ( my fitbit .tcx that was sync'd to strava) and below are the fields , so i am looking for all the fields in the .tcx file
kindly let me know if i can API as developer to my own data and some archival data
thanks
Raveendra

02-11-2021 08:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-11-2021 08:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Yes, you can download you're own current and historical TCX files using the APIs. See https://dev.fitbit.com/build/reference/web-api/activity/#get-activity-tcx. The data you will receive should be similar to this
- activity sport
- Id
- Lap StartTime
- TotalTimeSeconds
- DistanceMeters
- Calories
- Intensity
- TriggerMethod
- Track
- Time (in 1 min intervals)
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
02-11-2021 09:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-11-2021 09:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi Gordon,
thanks, this is immense help. could you also help on these two things.
1. can i get another user's data with his/her permision?
2. can i get random data of mutliple users (some stale and unused data) for an academic project?
thanks again,
Raveendra

02-12-2021 08:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-12-2021 08:46
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
You can retrieve other people's data but only after they consent to share their data with your application using the authorize endpoint. See https://dev.fitbit.com/build/reference/web-api/oauth2/#obtaining-consent
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
02-12-2021 10:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

02-12-2021 10:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi Gordan,
thank you so much. Infact I was trying to fetch with consent only.
Thanks a lot
Raveendra

