02-11-2021 05:49
02-11-2021 05:49
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.
02-11-2021 08:59
02-11-2021 08:59
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
02-11-2021 08:19
02-11-2021 08:19
Hi @RBPasumarthi ... Are there specific fields that you have questions about?
Gordon
02-11-2021 08:29
02-11-2021 08:29
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
02-11-2021 08:59
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
02-11-2021 09:04
02-11-2021 09:04
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
02-12-2021 08:46
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
02-12-2021 10:22
02-12-2021 10:22
Hi Gordan,
thank you so much. Infact I was trying to fetch with consent only.
Thanks a lot
Raveendra