Skip to main content
Question

API : filter athlete activity by type

  • Jun 1, 2023 10:43 PM UTC
  • 4 replies
  • 125 views

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
  • Hub Rookie
  • Jun 6, 2023 9:46 PM UTC

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
  • Jun 7, 2023 8:09 AM UTC

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
Forum|alt.badge.img+26
  • Hub Powerhouse
  • Jun 7, 2023 1:35 PM UTC

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
  • Jun 9, 2023 5:20 PM UTC

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 !