Skip to main content
Question

API : filter athlete activity by type


Forum|alt.badge.img+5

Hi everyone,


I’m working on a little dashboard to do some stats on my « bicycle to work » activities (i.e. global distance, fuel not used, etc) and I was wondering if there is a way to add a parameter to the getLoggedInAthleteActivities request so it only returns activities matching a specific type.


In my case it would by only cycling activities for example since I don’t use running or yoga activities to do my stats.


Thanks for your replies

4 replies

Forum|alt.badge.img+2

I dont think there's such param rn, I would just download all activities and filter locally by type or sport_type


Forum|alt.badge.img+5
  • Author
  • Hub Rookie
  • 2 replies
  • June 7, 2023

That's already what I'm doing.

But it would be nice to prevent getting activities that I don't use at all.


Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 895 replies
  • June 7, 2023

As you can get 200 activities at once I fail to see the big deal in getting unwanted activities with them.


Forum|alt.badge.img+5
  • Author
  • Hub Rookie
  • 2 replies
  • June 9, 2023

Since it's not seem to be possible to filter activities by type for the moment, I created an idea request here

You can upvote it if you too this feature would help you !


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings