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

Receiving empty ecgReadings from web api

Using this call

 

curl -X GET "https://api.fitbit.com/1/user/-/ecg/list.json?afterDate=<valid_date>&sort=desc&limit=10&offset=0" -H "accept: application/json" -H "authorization: Bearer <valid_token>

 

on a valid and attached to a device user I receive this response:

 

{"ecgReadings":[],"pagination":{"afterDate":"<valid_date>","limit":10,"next":"","offset":0,"previous":"","sort":"DESC"}}

 

No data inside ecgReadings.

Someone knows why and how to solve?

Best Answer
0 Votes
1 REPLY 1

Hi @baldodavi,

Welcome to the forums!

Can you confirm if the user you're pulling ECG data from had physically initiated an ECG reading on the days you specified? Unlike steps and heart rate data, ECG is not recorded on an all day basis. This means that you won't be able to pull the data at any given time unless a reading was actively taken that day. The Fitbit user needs to open the ECG app on their supported Fitbit device and initiate an ECG session. See "What is the Fitbit ECG app?"

When an an ECG reading is taken by the user, only then will the data be available to pull.

Best Answer
0 Votes