10-27-2022 06:09 - edited 10-27-2022 18:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-27-2022 06:09 - edited 10-27-2022 18:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello.
I want to import my HRV data from fitbit charge5 device.
https://dev.fitbit.com/build/reference/web-api/heartrate-variability/get-hrv-summary-by-date/
I can check the api address that can get HRV from the above address, and I want to get it according to the address form.
This will result in
{'hrv': []}
An empty list is output like this.
(Encodied_ID is personal information, so it was not posted on the question site. It is implemented in the code.)
If I look up the fitbit manual, it says that Charge5 provides sleep time HRV data, is this a feature that is not yet supported?
If I'm going to post a question to the fitbit developer community about this, where should I put it?
Thanks for posting the answer.
*My execution environment is Colaboratory.
10-27-2022 06:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-27-2022 06:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
My code is
import requests
# Get HRV Summary by Date
hrv_1d = requests.get("https://api.fitbit.com/1/user/"+ENCODED_ID+"/hrv/date/yyyy-mm-dd.json", headers=header).json()
hrv_1d
The part was filled in with the desired day.(ex. this year oct 15th)

10-31-2022 13:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



10-31-2022 13:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @J22222
Posting the code as you did is perfectly fine. Thank you!
There are several conditions required for the device to collect HRV data.
- In the mobile application, you need to select the "Health Metrics" tile and consent to collecting the HRV data.
- You need to have a minimum of 3 hours of sleep. The sleep log generated must be a sleep stages log. See Collecting HRV Data.
- In the mobile application under "Health Metrics", check to see if HRV data is collected. If it is, then the data should be available through the Web API. If data is not available, then we were not able to generate HRV data for that period of sleep and the endpoint will return an empty set.
Best,
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

11-02-2022 22:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

11-02-2022 22:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Is Health Metrics a service that requires a premium subscription to use? Or can I use it for free if I am a charge5 user?

11-04-2022 10:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



11-04-2022 10:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @J22222
From what I can tell, looking at the data in the Health Metrics tile does not require a premium membership.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

