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

Regarding source of any data collection for Web API

ANSWERED

Can fitbit Web API provide source device information for any data? For example, when I will fetch daily activity summary, is it possible to know from which device these data are collected from (e.g., pixel watch, fitbit charge 5). 

 

I have gone through the web api documentation of fitbit. I haven't seen any information for source information. The device endpoint only give us a list of device that is connected with the profile. So my assumption is that fitbit does not provide the source data. 

 

[Update:] I have found that `get weight log` and `get body fat log` both API call provide source field (e.g., API, Aria, Withings). But I cannot find source field from other API.  

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @diptopol 

 

The Web API is not designed to return specifically which Fitbit device provided the data.   There are some ways to can try to determine the source, but these would not be exact.

 

1. If the user consents to the "settings" scope, you can query the Get Devices endpoint to see which devices are paired to the account and use the last sync time to estimate which device the user is wearing.

2. Some of the endpoints will return the generalize the source of the data.  For example, the Get Activity Log List's logType response element can return the source of the recorded exercise as being either auto_detected, manual, mobile_run, tracker, or the name of the 3rd party application.   The Sleep log's logType response element can tell you if the source of the data is auto_detected or manually entered.  The Body endpoint's source element can tell you if the data came from the API, Aria, AriaAir, or Withings

 

Gordon

 

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

View best answer in original post

Best Answer
3 REPLIES 3

Hi @diptopol - it would seem unlikely to get the source device for non shared data input.

 

Even so, requesting a full data export from the web profile might show something, but never noticed the device being quoted, though wasn't looking. 

 

It can take quite a while to retrieve the full history.

 

Login, on the web browser,  click the gear icon top right, select the device, under data export, Export Your Account Archive, request data.

Author | ch, passion for improvement.

Best Answer
0 Votes

Hi @diptopol 

 

The Web API is not designed to return specifically which Fitbit device provided the data.   There are some ways to can try to determine the source, but these would not be exact.

 

1. If the user consents to the "settings" scope, you can query the Get Devices endpoint to see which devices are paired to the account and use the last sync time to estimate which device the user is wearing.

2. Some of the endpoints will return the generalize the source of the data.  For example, the Get Activity Log List's logType response element can return the source of the recorded exercise as being either auto_detected, manual, mobile_run, tracker, or the name of the 3rd party application.   The Sleep log's logType response element can tell you if the source of the data is auto_detected or manually entered.  The Body endpoint's source element can tell you if the data came from the API, Aria, AriaAir, or Withings

 

Gordon

 

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

Thank you for your reply. It makes sense. I just wanted to verify my understanding. 

Best Answer
0 Votes