03-16-2023 11:57 PM
I’m using the Strava api’s and having the free subscription, I need to calculate the burned calories of the activity/sport I’m doing,
But I didn’t find any api to fetch all the sports/activities, do anyone suggest any api where I can give the activity name/ sport name like running, swimming, HIIT etc with the time duration and in response it can provide the burned calories in the time period.
Solved! Go to Solution.
03-19-2023 08:20 PM
Strava includes the calories burned as one of the fields in DetailedActivity (which you can retrieve using getActivityById), the field is simply called 'calories'.
If you are trying to calculate a general number of calories burned in an activity for a specific amount of time (as opposed to an already recorded activity), that isn't likely to be accurate as it is dependent on several other factors. See https://support.strava.com/hc/en-us/articles/216917097-Calorie-Calculation for some details on Strava's calculation.
03-19-2023 08:20 PM
Strava includes the calories burned as one of the fields in DetailedActivity (which you can retrieve using getActivityById), the field is simply called 'calories'.
If you are trying to calculate a general number of calories burned in an activity for a specific amount of time (as opposed to an already recorded activity), that isn't likely to be accurate as it is dependent on several other factors. See https://support.strava.com/hc/en-us/articles/216917097-Calorie-Calculation for some details on Strava's calculation.
03-28-2023 05:27 AM
Hi @ActivityFix ,Thanks for the details but where I can find all the activities id, I just want to use general activities data, not those which are created by user
Welcome to the Community - here is your guide to help you get started!