02-05-2020 23:22
02-05-2020 23:22
Hello,
I am using Fitbit API for getting user's active calories. But somehow I am getting the value of active calories is 0 and my dashboard showing me I burned 932 (any value) calories till today (06th Feb 2020).
I am using API is:
https://api.fitbit.com/1/user/[user_id]/activities/activityCalories/date/2020-02-01/2020-02-06.json
Response is:
{
"activities-activityCalories" = (
{
dateTime = "2020-02-01";
value = 0;
},
{
dateTime = "2020-02-02";
value = 0;
},
{
dateTime = "2020-02-03";
value = 0;
},
{
dateTime = "2020-02-04";
value = 0;
},
{
dateTime = "2020-02-05";
value = 0;
},
{
dateTime = "2020-02-06";
value = 0;
}
);
}
Help me out with this. Why I am not getting the correct response?
02-06-2020 10:36 - edited 02-06-2020 10:37
02-06-2020 10:36 - edited 02-06-2020 10:37
Hi @parthpatel,
Welcome to the forums!
It sounds like you are confusing your activityCalories and caloriesBMR with each other.
If you are seeing the same 932 calories consistently each day, this is your base calories burned (caloriesBMR) from being sedentary (sitting, resting) every day. Your BMR is based off your personal information (age, gender, weight). Calories you receive from moderate and intense activities are considered activityCalories, and will be added on top of your caloriesBMR to provide you with total calories for the day. If you haven't performed any moderate/intense activities, it is expected that this endpoint return 0 values.
See "Calorie Time Series Differences" here
Hope this helps. Please let me know if you have any questions.