Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HRV Data extraction through API

ANSWERED

Hi,

 

We just got the approval to use intraday data on our application. Sleep, steps and HR data work well. However, when I make the request

auth2_client.intraday_time_series('hrv', base_date=date)

I get the following error:
fitbit.exceptions.HTTPBadRequest: Invalid time series resource path: /hrv

What is the correct request for the hrv intraday data? I tried with the time_series as well.
Thank you

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi, thank you for the quick reply!

I managed to solve it with this line instead

        hrv_data = auth2_client.make_request(f"https://api.fitbit.com/1/user/-/hrv/date/{date}/all.json")

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Hi @Axlrou 

Would you please provide me with the python library you're using?   I suspect the HRV endpoints have not been added to that library yet, which I can help confirm.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer

Hi, thank you for the quick reply!

I managed to solve it with this line instead

        hrv_data = auth2_client.make_request(f"https://api.fitbit.com/1/user/-/hrv/date/{date}/all.json")
Best Answer
0 Votes