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

API Access to inspire HR data

ANSWERED

Hello,

 

I just aquired a fitbit Inspire HR and I would like to know if there is a proper way to access my data using the API. I searched for a while and I just found the API explorer, which works but seems useless if I want to do some stats in python fo exemple. By reading some posts in the forum, I learned that it's not possible to create an application for Inspire models but it should be a proper way to acces a user data right ? And How can an Inspire user authorize some app to access their data through the API ?

 

Thanks for your help, I'm new in fitbit stuff and would be happy to go further in development with that kind of devices.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @C_Shannon 

 

Yes, you can access other people's data using the Web APIs.  However, the users will need to consent to share their data with your application first.  

 

Our Web APIs support OAuth 2.0 as the security mechanism for querying Fitbit data.  Your application will execute the authorization endpoint to begin the consent process.  Once the user consents to share their data, you will be able to query their data in your application based on the terms defined in our Platform Terms of Service.   Please read the Authorization section of our documentation for more info: https://dev.fitbit.com/build/reference/web-api/oauth2/.

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

View best answer in original post

Best Answer
0 Votes
5 REPLIES 5

If you're interested in your data only, use the web api.

 

https://dev.fitbit.com/build/reference/web-api/basics/

 

You will be making a "Personal" app.

 

API here: https://dev.fitbit.com/build/reference/web-api/heart-rate/#get-heart-rate-intraday-time-series

 

 

If you're looking for some example python code, I've used this to access my data. Their repo has instructions for getting setup too.

 

https://github.com/praveendath92/fitbit-googlefit/blob/master/README.md

 

 

 

Best Answer

@SunsetRunner Thank you for responding.

 

@C_Shannon in addition to the information already provided, we have some sample code on our web site that might be helpful with getting started.  Take a look at https://dev.fitbit.com/build/reference/web-api/community-resources/.

 

Let us know if you need more information.

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

Ok, thanks for your answers.

 

But is there a way if I also want to access other people data ? Can they authorize me to acces their data through the web API ?

Best Answer
0 Votes

Hi @C_Shannon 

 

Yes, you can access other people's data using the Web APIs.  However, the users will need to consent to share their data with your application first.  

 

Our Web APIs support OAuth 2.0 as the security mechanism for querying Fitbit data.  Your application will execute the authorization endpoint to begin the consent process.  Once the user consents to share their data, you will be able to query their data in your application based on the terms defined in our Platform Terms of Service.   Please read the Authorization section of our documentation for more info: https://dev.fitbit.com/build/reference/web-api/oauth2/.

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

Ok thank you for your help.

Best Answer
0 Votes