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

The heart rate API "activities/heart" not giving me any hear-rate data

The request of API call bellow.

 

curl https://api.fitbit.com/1/user/-/activities/heart/date/today/1d/1min/11:50/12:00.json -H "Authorization: Bearer ....."

 

Giving me the data but not included any hear-rate record? 

Is there any thing I missing?

 

part of the response:

"

{
    categories =     (
                {
            activities =             (
                                {
                    accessLevel = PUBLIC;
                    activityLevels =                     (
                                                {
                            id = 3016;
                            maxSpeedMPH = "-1";
                            mets = "8.5";
                            minSpeedMPH = "-1";
                            name = "6 - 8 inch step";
                        },
                                                {
                            id = 3017;
                            maxSpeedMPH = "-1";
                            mets = 10;
                            minSpeedMPH = "-1";
                            name = "10 - 12 inch step";
                        }
                    );
                    hasSpeed = 0;
                    id = 90004;
                    name = "Aerobic step";
                },
                                {
                    accessLevel = PUBLIC;
                    hasSpeed = 0;
                    id = 3015;
                    mets = "6.5";
                    name = "Aerobic, general";
                },
....

"

 

 

Best Answer
0 Votes
1 REPLY 1

@JerryZhou wrote:

The request of API call bellow.

 

curl https://api.fitbit.com/1/user/-/activities/heart/date/today/1d/1min/11:50/12:00.json -H "Authorization: Bearer ....."

 


That's not a valid URL. You want: https://api.fitbit.com/1/user/-/activities/heart/date/today/1d/1min/time/11:50/12:00.json

Best Answer
0 Votes