10-24-2023 03:14
10-24-2023 03:14
Hello, everyone,
At the moment I am using this api:
https://dev.fitbit.com/build/reference/web-api/intraday/get-activity-intraday-by-interval
I am not experiencing any technical errors whatsoever, just different values in my app than in the fitbit app. In the response json, to retrieve the steps I am using the "value" inside "activities-steps" assuming that this contains the sum of the "dataset" values inside "activities-steps-intraday".
The documentation of which:
| activities-<resource> : value | The specified resource's daily total. |
And I thought it was the total for the day relating only to the requested time interval, but given the inconsistency of the data, I am beginning to think that this value relates to the whole day, and not just the specific time interval requested.
Are you aware of this information? Should I instead add up all the "values" contained in the various "datasets" to get the precise figure?
Thanks in advance.
Answered! Go to the Best Answer.
10-31-2023 10:09
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
10-31-2023 10:09
Hi @Kirus
It appears the activities-resource : value is the number of steps during the time period specified. It is not the total steps taken during the day. I will update the documentation to reduce any confusion.
Thanks!
10-31-2023 10:09
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
10-31-2023 10:09
Hi @Kirus
It appears the activities-resource : value is the number of steps during the time period specified. It is not the total steps taken during the day. I will update the documentation to reduce any confusion.
Thanks!