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

Fetch tcx file (or json/xml) using Web API

ANSWERED

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 

dev fitbit api reg form.PNG

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @RBPasumarthi 

 

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)
Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
6 REPLIES 6

Hi @RBPasumarthi ... Are there specific fields that you have questions about?

 

Gordon

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

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

RBPasumarthi_0-1613060887685.png

 

kindly let me know if i can API as developer to my own data and some archival data

 

thanks

Raveendra

 

Best Answer
0 Votes

Hi @RBPasumarthi 

 

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)
Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer

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

Best Answer
0 Votes

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

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

Hi Gordan,

 

thank you so much. Infact I was trying to fetch with consent only. 

Thanks a lot

Raveendra 

Best Answer
0 Votes