I am currently pulling data from Daily Activity Summary (https://dev.fitbit.com/build/reference/web-api/activity/) and have several questions about the following fields:
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.
Hi @sleepy_dave,
Apologies for the very late response.
@sswift Thanks for the suggestion, we are aware that this is a widely requested item and is being considered.
I hope this helps. Please let me know if you have any other questions.
Best AnswerI've been searching for the same thing, and @JohnFitbit I appreciate your response here, but it doesn't seem to be accurate. Here's what the Fitbit Activity API reports for me for yesterday (omitting other fields):
https://api.fitbit.com/1/user/-/activities/date/YYYY-MM-DD.json
"summary": {
"activityCalories": 3468,
"caloriesBMR": 1774,
"caloriesOut": 4601,
"marginalCalories": 2320
}
Clearly the caloriesOut element is NOT the total sum of activityCalories + caloriesBMR (which would be 5242 not 4601). For what it's worth I didn't manually log anything, all the data is from my tracker, though I also didn't start/stop activities on the tracker, so the activities it captured were just ones it deduced from the data.
I've also not found a definition for marginalCalories.
Best Answer
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.
Hi @ammulder
Let me double-check with engineering on this. While the generalized calculation is caloriesOut = caloriesBMR + activityCalories, it's possible our internal algorithms changes a bit.
I don't have any historical information on what marginalCalories is. We did research this topic last year and worked with our research and engineering teams, but couldn't come up with a concrete answer at the time. I can look into it again.
Hi @Gordon-C , were you able to get a response from engineering?
I had to laugh a little, thinking, we're all developers here, maybe you can just post the code! 😉
Best AnswerI searched the forum for "marginalCalories", and I see a post elsewhere that this field is deprecated and should be ignored.
Best Answer