Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing weight data via the Google Fit REST API

Tags:

google-fit

For the last 6 months I've been entering my weight into Google Fit, I now want to get my data out.

Accessing the Google Fit REST API hasn't been an issue. Finding my weight data amongst the all the accessible data has stumped me however.

Any pointers gratefully appreciated.

like image 802
Dogsbody Avatar asked Apr 09 '15 20:04

Dogsbody


People also ask

How do I use Google Fit REST API?

Request an OAuth 2. Go to the Google API Console. Select a project, or create a new one. Use the same project for the Android and REST versions of your app. Click Continue to enable the Fitness API.

Does Google Fit track weight?

See your weight over timeAt the bottom left, tap Home. Scroll down and tap Weight. At the top, adjust the time frame for the graph.

Does Google Fit have an API?

Connect with Google Fit. Google Fit provides Android and REST APIs to help developers build smarter health and wellness apps. Google Fit APIs can help you discover new insights users want to share with you.


1 Answers

I can get all weight data I found API request for all weight data https://www.googleapis.com/fitness/v1/users/me/dataSources/derived:com.google.weight:com.google.android.gms:merge_weight/datasets/0-1443194884000000000

Last set is Start time and end time (in nanoseconds). Let me know if you have issue for weight Data. May be this query will help you.

like image 189
Bhavin Chauhan Avatar answered Sep 28 '22 09:09

Bhavin Chauhan