08-31-2022 14:29
08-31-2022 14:29
Hello,
I am looking to determine how many minutes, given a date, a user spent in each heartRateZone.
I've identified two endpoints that work for my use case:
- Get Daily Activity Summary (via `summary : heartRateZones : minutes`)
- Get Heart Rate By Time Series (via `activities-heart : value : HeartRateZone : minutes`)
Issue premise:
Issue:
The `heartRateZone` data between these two endpoints (also validated with other users and other days) is very different, when I expected them to be the same.
Is it my misunderstanding that the `heartRateZone` minutes should be the same between these two endpoints?
Notes:
Thanks for your time,
Mike
Here are the JSON results from both endpoints.
Daily Activity Summary (abbreviated):
{
"activities": [],
"summary": {
"heartRateZones": [
{
"caloriesOut": 380.76492,
"max": 114,
"min": 30,
"minutes": 192,
"name": "Out of Range"
},
{
"caloriesOut": 686.42038,
"max": 139,
"min": 114,
"minutes": 127,
"name": "Fat Burn"
},
{
"caloriesOut": 107.26456,
"max": 169,
"min": 139,
"minutes": 11,
"name": "Cardio"
},
{
"caloriesOut": 0,
"max": 220,
"min": 169,
"minutes": 0,
"name": "Peak"
}
]
}
}Heart Rate (abbreviated):
{
"activities-heart": [
{
"value": {
"customHeartRateZones": [],
"heartRateZones": [
{
"caloriesOut": 2131.21576,
"max": 114,
"min": 30,
"minutes": 1389,
"name": "Out of Range"
},
{
"caloriesOut": 390.59346000000005,
"max": 139,
"min": 114,
"minutes": 51,
"name": "Fat Burn"
},
{
"caloriesOut": 0,
"max": 169,
"min": 139,
"minutes": 0,
"name": "Cardio"
},
{
"caloriesOut": 0,
"max": 220,
"min": 169,
"minutes": 0,
"name": "Peak"
}
],
"restingHeartRate": 66
}
}
]
}
09-07-2022 11:49
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.
09-07-2022 11:49
Thank you for reporting this issue. Let me see if I can get some clarity on the algorithm used for those endpoints.
Gordon
Best Answer