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

How to get user´s pace/speed from Fitbit API

Hello everyone. I am developing a web application that uses fitbit Web API to get data from my charge HR. I am getting parameters like steps, distance, sleep logs... But I want to know if the API provides an endpoint to get walking speed in km/h or mph.

 

I would calculate it from distance walked per minute but it would not be that accurate, as we do not walk constantly during whole minute in most cases.

 

I appreciate your help. Thanks.

Best Answer
4 REPLIES 4

Hi @angelrc96,

 

Check out the endpoint /1/user/-/activities/list.json.  If the user recorded an activity on the tracker, such as "treadmill", the speed should be returned for that activity.

 

Gordon

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

I’m interested in speed in mph too. I’d like to see speed average and a points along the track. 

Best Answer
0 Votes

Interested. I don’t understand the directions. 

Best Answer
0 Votes

Hi @mauryj 

 

First, the user needs to use a Fitbit device that supports GPS.   To record the average speed and GPS, the user needs to initiate the run or walk exercise recording on the Fitbit device.   Afterwards, you'll need to use 2 endpoints to get the data

 

  1. https://dev.fitbit.com/build/reference/web-api/activity/get-activity-log-list/ will return the average speed
  2. https://dev.fitbit.com/build/reference/web-api/activity/get-activity-tcx/ will return the GPS coordinates

Let me know if you have further questions

Gordon

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