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

Web API

Can Web Api retrieve data from a large number of users?
and whether FitBit can retrieve data from other platforms, for example from Mifitness

Best Answer
0 Votes
3 REPLIES 3

Hi @Riz1l,

Welcome to the forums!

Yes, the Web API can pull data from a group of users as long as they have consented to share data with your application. Consent is obtained when you provide users with an authorization url containing your Terms of Service and Privacy Policy, and they'll select which data to share with your application.

We don't have any integrations with Mifitness to my knowledge, so we can't read their data. However, Mifitness can integrate with the Fitbit Web API and read & write user data to their application should they choose to integrate.

Best Answer
0 Votes

Thank you for wanting to respond.
I have a project, to monitor employee sleep duration,
starting from the time he sleeps until the time he wakes up, then the data is sent to my local server (maybe like a subscription).
Later the data sent to my local server will be sleep data, employee name and employee NIK,
is that possible?

Best Answer
0 Votes

Yes, you can gather a user's sleep data with the Get Sleep Log by Date endpoint. In terms of of the employee name and NIK, which i assume is similar to a unique employee ID, those values will need to be mapped out in your application code. A way to do this is by associating the Fitbit user's user id (which can be obtained from an access token after conent) and map it to the employee. You can do this by having the employee log into a company portal, then redirect them into the Fitbit authorization flow. After consent, parse the access token you receive for the user and it will contain their unique Fitbit ID along with how long you have access to their data and the scopes they shared with your application.

Best Answer
0 Votes