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

API weight

Hi, a few weeks ago I in obtaining data about users began to return only zero values​​.

I need to get actual user weight.

 

Request URL: http://api.fitbit.com/1/user/-/body/date/2014-08-10.json

Response: {"body":{"bicep":0,"bmi":0,"calf":0,"chest":0,"fat":0,"forearm":0,"hips":0,"neck":0,"thigh":0,"waist":0,"weight":0},"goals":{"weight":80}}

 

In my profil on Fitbit the weight is set to non-zero value, but from API I receive zero value. 

I want to ask, if there was samo API changes a I need to change my call, or it there is something wrong. Or is there better way how to get user weight? Please could you help me?

 

Thanks, Petr.

Best Answer
0 Votes
3 REPLIES 3

Please sent your used ID to my in private message. I'll check  it out.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Ok, so for the date that you check your weight you don't have any entries. The API is only able to return logged or measured by ARIA weight for particular date. If you don't enter any weight for that date you will get 0.

If you want to know your up to date weight for today you may also use /1/user/-/profile.json endpoint which will return to you calculated weight for current day regardless to the fact if you did not log any weight for current date or not. See https://wiki.fitbit.com/display/API/API-Get-User-Info for more details.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Hi @ibahdanau,

I followed the same steps you mentioned about using the /1/user/-/profile.json endpoint for getting weight from user's profile. I still get weight as 0.

Please help!

 

TIA

Flex | Charge HR | Surge | Windows Phone | Android | OnePlus
Best Answer
0 Votes