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

Im trying to relate the sports id with the sport or activitys name in the app

Hi everyone,

Im new to this forum and im not very familiar with the api or programming, im rn doing my internship in product, but i need help with a small thing. 

I have a list of all the sports/activities that fitbit supports, but i have it all by the id number, is there any documentation or something that you have developed that could help me match those sports id with the actual sport or activity name?

 

Any help or orientation would help, even some programming stuff, i have devs on my team who may help.

 

Thanks 😄

Best Answer
0 Votes
1 REPLY 1

Hi @Perr1n 

 

Welcome to the forums!   There are 2 ways you can do this.

  1. You can use the Get Activity Type endpoint and provide the activityId.   The endpoint will return the associated activityName.   See https://dev.fitbit.com/build/reference/web-api/activity/get-activity-type/
  2. You can download our entire list of activities that contain the activityIds and the associated activityNames by calling the Get All Activity Types endpoint.   See https://dev.fitbit.com/build/reference/web-api/activity/get-all-activity-types/.  

Best,

Gordon

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